#include <mitkLineWidgetModel2D.h>
Inherits mitkWidgetModel2D.
Inheritance diagram for mitkLineWidgetModel2D:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
mitkLineWidgetModel2D () | |
mitkLineWidgetModel2D (float startPoint[2]) | |
virtual int | Render (mitkScene *scene) |
virtual void | Pick (const WidgetNames &names) |
virtual void | Release () |
float | GetLineLength () |
void | SetUnitName (const string &name) |
const string & | GetUnitName () |
void | SetStartPoint (float point[2]) |
void | SetStartPoint (float x, float y) |
void | SetStartPoint (int sx, int sy) |
void | SetMovePoint (float point[2]) |
void | SetMovePoint (float x, float y) |
void | SetMovePoint (int sx, int sy) |
void | SetEndPoint (float point[2]) |
void | SetEndPoint (float x, float y) |
void | SetEndPoint (int sx, int sy) |
int | GetPointsSetNum () |
void | GetStartPoint (float &tx, float &ty) |
void | GetStartPoint (int &ix, int &iy) |
void | GetEndPoint (float &tx, float &ty) |
void | GetEndPoint (int &ix, int &iy) |
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) |
mitkLineWidgetModel2D is a line widget used in 2D scene which can respond the mouse events to change the line status and return the current length of the line. 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.
|
The default constructor. |
|
One and only constructor of mitkLineWidgetModel3D.
|
|
Deal with mouse down event.
Implements mitkWidgetModel. |
|
Deal with mouse move event.
Implements mitkWidgetModel. |
|
Deal with mouse up event.
Implements mitkWidgetModel. |
|
Get the integral coordinates of the end point in the original image.
|
|
Get the physical coordinates in the object space of the end point.
|
|
Get length of this line.
|
|
Get how many points have been set.
|
|
Get the integral coordinates of the start point in the original image.
|
|
Get the physical coordinates in the object space of the start point.
|
|
Get name string of unit.
|
|
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 position of the end point.
|
|
Set position of the end point in the object space.
|
|
Set position of the end point in the object space.
|
|
Set position of the moving end point.
|
|
Set position of the moving end point in the object space.
|
|
Set position of the moving end point in the object space.
|
|
Set position of the start point.
|
|
Set position of the start point in the object space.
|
|
Set position of the start point in the object space.
|
|
Set name string of unit.
|