#include <mitkEllipseWidgetModel2D.h>
Inherits mitkWidgetModel2D.
Inheritance diagram for mitkEllipseWidgetModel2D:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
virtual int | Render (mitkScene *scene) |
virtual void | Pick (const WidgetNames &names) |
virtual void | Release () |
void | SetCenterPoint (int scx, int scy) |
void | SetCenterPoint (float cx, float cy) |
void | SetCenterPoint (float p[2]) |
void | SetRadius (float xr, float yr) |
void | SetRadius (float r) |
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) |
void | SetUnitName (const string &name) |
const string & | GetUnitName () |
float | GetArea () |
float | GetPerimeter () |
void | GetCenterPoint (float &tx, float &ty) |
void | GetCenterPoint (int &ix, int &iy) |
void | GetSemiMajorMinorAxis (float &ta, float &tb) |
void | GetSemiMajorMinorAxis (int &a, int &b) |
virtual mitkVolume * | GetRegionMask () |
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) |
mitkEllipseWidgetModel2D is an ellipse widget used in 2D scenes which can respond the mouse events to change its statuses and return the information about itself (e.g. center coordinates, area ...). It is supposed to be attached to a 2D data model (e.g. mitkImageModel) and add to a 2D scene (e.g. mitkImageScene), or 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 area of this ellipse.
|
|
Get the integral coordinates of the center point in the original image.
|
|
Get the physical coordinates in the object space of the center point.
|
|
Get the perimeter of the ellipse.
|
|
Get mask image where the value of widget region is 255 and the rest is 0.
Reimplemented from mitkWidgetModel2D. |
|
Get the integral length of the semimajor and minor axis in the original image.
|
|
Get the physical length of the semimajor and minor axis in the object space.
|
|
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 the center point of this ellipse in object space.
|
|
Set the center point of this ellipse in object space.
|
|
Set the center point of this ellipse.
|
|
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 the radiuses of the ellipse to the same value (i.e the ellipse is a circle).
|
|
Set the radiuses of the ellipse.
|
|
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.
|