#include <mitkRectWidgetModel2D.h>
Inherits mitkWidgetModel2D.
Inheritance diagram for mitkRectWidgetModel2D:
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 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 () |
int | GetWidth () |
float | GetTrueWidth () |
int | GetHeight () |
float | GetTrueHeight () |
int | GetLeft () |
float | GetTrueLeft () |
int | GetRight () |
float | GetTrueRight () |
int | GetBottom () |
float | GetTrueBottom () |
int | GetTop () |
float | GetTrueTop () |
void | GetStartPoint (int &sx, int &sy) |
void | GetTrueStartPoint (float &sx, float &sy) |
void | GetStartPoint (int p[2]) |
void | GetTrueStartPoint (float p[2]) |
void | GetEndPoint (int &ex, int &ey) |
void | GetTrueEndPoint (float &ex, float &ey) |
void | GetEndPoint (int p[2]) |
void | GetTrueEndPoint (float p[2]) |
bool | IsValid () |
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) |
mitkRectWidgetModel2D is a 2D widget for displaying a rectangle in an image scene. It can respond the mouse events and return the current width and height of this rectangle. 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 bottom of the rectangle in screen space.
|
|
Get the end point of the rectangle in screen space.
|
|
Get the end point of the rectangle in screen space.
|
|
Get the height of the rectangle in screen space.
|
|
Get the left of the rectangle in screen space.
|
|
Get mask image where the value of widget region is 255 and the rest is 0.
Reimplemented from mitkWidgetModel2D. |
|
Get the right of the rectangle in screen space.
|
|
Get the start point of the rectangle in screen space.
|
|
Get the start point of the rectangle in screen space.
|
|
Get the top of the rectangle in screen space.
|
|
Get the true bottom of the rectangle in source model space.
|
|
Get the true end point of the rectangle in source model space.
|
|
Get the true end point of the rectangle in source model space.
|
|
Get the true height of the rectangle in source model space.
|
|
Get the true left of the rectangle in source model space.
|
|
Get the true right of the rectangle in source model space.
|
|
Get the true start point of the rectangle in source model space.
|
|
Get the true start point of the rectangle in source model space.
|
|
Get the true top of the rectangle in source model space.
|
|
Get the true width of the rectangle in source model space.
|
|
Get name string of unit.
|
|
Get the width of the rectangle in screen space.
|
|
If the widget model is valid.
|
|
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.
|