#include <mitkWidgetModel2D.h>
Inherits mitkWidgetModel.
Inherited by mitkAngleWidgetModel2D, mitkEllipseWidgetModel2D, mitkLineWidgetModel2D, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, and mitkRectWidgetModel2D.
Inheritance diagram for mitkWidgetModel2D:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
virtual void | SetScene (mitkScene *scene) |
virtual void | SetSourceModel (mitkDataModel *model) |
void | SetUnits (float ux, float uy) |
void | SetUnits (float units[2]) |
void | SetColor (float r, float g, float b, float a=1.0) |
void | SetColor (int r, int g, int b, int a=255) |
virtual void | Update () |
virtual mitkVolume * | GetCurrentImage () |
virtual mitkVolume * | GetRegionMask () |
mitkWidgetModel2D is an abstract class used to represent a 2D widget entity (e.g. a line or an angle) in a rendering scene. It can make responses to the mouse events and manipulate the mitkDataModel to which it attaches.
|
Get the slice data which currently displayed by the source model (a mitkImageModel).
|
|
Get mask image where the value of widget region is 255 and the rest is 0.
Reimplemented in mitkEllipseWidgetModel2D, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, and mitkRectWidgetModel2D. |
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkWidgetModel. Reimplemented in mitkAngleWidgetModel2D, mitkEllipseWidgetModel2D, mitkLineWidgetModel2D, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, and mitkRectWidgetModel2D. |
|
Set the color of the widget when it is not active. The value range is from 0 to 255.
|
|
Set the color of the widget when it is not active. The value range is from 0.0 to 1.0.
|
|
Set the scene which contains this model.
Implements mitkWidgetModel. |
|
Associate this widget with a model.
Reimplemented from mitkWidgetModel. Reimplemented in mitkPseudocolorWidgetModelEx. |
|
Set unit length on axes.
|
|
Set unit length on axes.
|
|
Update the parameters of the widget. Implements mitkWidgetModel. Reimplemented in mitkPseudocolorWidgetModelEx. |