#include <mitkAngleWidgetModel2D.h>
Inherits mitkWidgetModel2D.
Inheritance diagram for mitkAngleWidgetModel2D:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
virtual int | Render (mitkScene *scene) |
virtual void | Pick (const WidgetNames &names) |
virtual void | Release () |
void | SetStartPoint (float p[2]) |
void | SetStartPoint (float x, float y) |
void | SetStartPoint (int sx, int sy) |
void | SetEndPoint0 (float p[2]) |
void | SetEndPoint0 (float x, float y) |
void | SetEndPoint0 (int sx, int sy) |
void | SetEndPoint1 (float p[2]) |
void | SetEndPoint1 (float x, float y) |
void | SetEndPoint1 (int sx, int sy) |
float | GetAngleInDegree () |
float | GetAngleInRadian () |
Protected Member Functions | |
virtual void | _onMouseDown (int mouseButton, bool ctrlDown, bool shiftDown, int xPos, int yPos) |
virtual void | _onMouseUp (int mouseButton, bool ctrlDown, bool shiftDown, int xPos, int yPos) |
virtual void | _onMouseMove (bool ctrlDown, bool shiftDown, int xPos, int yPos, int deltaX, int deltaY) |
mitkAngleWidgetModel2D is a 2D widget for measuring angles. It can respond the mouse events and return the current angle in units of degrees or radian. It is supposed to be attached to a 2D data model (e.g. mitkImageModel) and add to a 2D scene (e.g. mitkImageScene), and in other conditions the display could be improper.
|
Deal with mouse down event.
Implements mitkWidgetModel. |
|
Deal with mouse move event.
Implements mitkWidgetModel. |
|
Deal with mouse up event.
Implements mitkWidgetModel. |
|
Get the value of angle in degree.
|
|
Get the value of angle in radian.
|
|
Maintain the selection status when this widget is picked.
Implements mitkWidgetModel. |
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkWidgetModel2D. |
|
Maintain the selection status when this widget is released. Implements mitkWidgetModel. |
|
Render this model.
Reimplemented from mitkModel. |
|
Set ont end point of the angle.
|
|
Set ont end point of the angle in object coordinate.
|
|
Set ont end point of the angle in object coordinate.
|
|
Set the other end point of the angle.
|
|
Set the other end point of the angle in object coordinate.
|
|
Set the other end point of the angle in object coordinate.
|
|
Set the start point of the angle.
|
|
Set the start point of the angle in object coordinate.
|
|
Set the start point of the angle in object coordinate.
|