#include <mitkWidgetModel.h>
Inherits mitkModel.
Inherited by mitkWidgetModel2D, and mitkWidgetModel3D.
Inheritance diagram for mitkWidgetModel:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
virtual void | Pick (const WidgetNames &names)=0 |
virtual void | Release ()=0 |
virtual void | Select (mitkScene *scene) |
void | OnMouseDown (int mouseButton, bool ctrlDown, bool shiftDown, int xPos, int yPos) |
void | OnMouseUp (int mouseButton, bool ctrlDown, bool shiftDown, int xPos, int yPos) |
void | OnMouseMove (bool ctrlDown, bool shiftDown, int xPos, int yPos, int deltaX, int deltaY) |
virtual void | SetSourceModel (mitkDataModel *model) |
mitkDataModel * | GetSourceModel () |
virtual void | SetScene (mitkScene *scene)=0 |
virtual void | SetView (mitkView *view) |
virtual bool | IsOpaque () |
virtual bool | IsActive () |
bool | IsMouseLeftButtonDown () |
bool | IsMouseRightButtonDown () |
bool | IsMouseMiddleButtonDown () |
void | UpdateObservers () |
virtual void | Update ()=0 |
Protected Member Functions | |
virtual void | _onMouseDown (int mouseButton, bool ctrlDown, bool shiftDown, int xPos, int yPos)=0 |
virtual void | _onMouseUp (int mouseButton, bool ctrlDown, bool shiftDown, int xPos, int yPos)=0 |
virtual void | _onMouseMove (bool ctrlDown, bool shiftDown, int xPos, int yPos, int deltaX, int deltaY)=0 |
mitkWidgetModel is an abstract class used to represent a 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.
|
Deal with mouse down event. Should be implemented in the concrete classes.
Implemented in mitkAngleWidgetModel2D, mitkAngleWidgetModel3D, mitkClippingPlaneWidgetModel, mitkEllipseWidgetModel2D, mitkLineWidgetModel2D, mitkLineWidgetModel3D, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, mitkRectWidgetModel2D, and mitkReslicePlaneWidgetModel. |
|
Deal with mouse move event. Should be implemented in the concrete classes.
Implemented in mitkAngleWidgetModel2D, mitkAngleWidgetModel3D, mitkClippingPlaneWidgetModel, mitkEllipseWidgetModel2D, mitkLineWidgetModel2D, mitkLineWidgetModel3D, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, mitkRectWidgetModel2D, and mitkReslicePlaneWidgetModel. |
|
Deal with mouse up event. Should be implemented in the concrete classes.
Implemented in mitkAngleWidgetModel2D, mitkAngleWidgetModel3D, mitkClippingPlaneWidgetModel, mitkEllipseWidgetModel2D, mitkLineWidgetModel2D, mitkLineWidgetModel3D, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, mitkRectWidgetModel2D, and mitkReslicePlaneWidgetModel. |
|
Get the source model to which this widget attach.
|
|
Whether this widget is active.
|
|
Whether the left button of the mouse is down.
|
|
Whether the middle button of the mouse is down.
|
|
Whether the right button of the mouse is down.
|
|
Whether this model is opaque.
Implements mitkModel. |
|
Deal with mouse down event.
|
|
Deal with mouse move event.
|
|
Deal with mouse up event.
|
|
Maintain the selection status when this widget is picked.
Implemented in mitkAngleWidgetModel2D, mitkAngleWidgetModel3D, mitkClippingPlaneWidgetModel, mitkEllipseWidgetModel2D, mitkLineWidgetModel2D, mitkLineWidgetModel3D, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, mitkRectWidgetModel2D, and mitkReslicePlaneWidgetModel. |
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkModel. Reimplemented in mitkAngleWidgetModel2D, mitkAngleWidgetModel3D, mitkClippingPlaneWidgetModel, mitkEllipseWidgetModel2D, mitkLineWidgetModel2D, mitkLineWidgetModel3D, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, mitkRectWidgetModel2D, mitkReslicePlaneWidgetModel, mitkWidgetModel2D, and mitkWidgetModel3D. |
|
Maintain the selection status when this widget is released. Implemented in mitkAngleWidgetModel2D, mitkAngleWidgetModel3D, mitkClippingPlaneWidgetModel, mitkEllipseWidgetModel2D, mitkLineWidgetModel2D, mitkLineWidgetModel3D, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, mitkRectWidgetModel2D, and mitkReslicePlaneWidgetModel. |
|
Use select mode to render this model.
Reimplemented from mitkModel. |
|
Set the scene which contains this model.
Implemented in mitkWidgetModel2D, and mitkWidgetModel3D. |
|
Associate this widget with a model.
Reimplemented in mitkClippingPlaneWidgetModel, mitkPseudocolorWidgetModelEx, mitkReslicePlaneWidgetModel, mitkWidgetModel2D, and mitkWidgetModel3D. |
|
Set the view which contains this model.
|
|
Update the parameters of the widget. Implemented in mitkAngleWidgetModel3D, mitkClippingPlaneWidgetModel, mitkLineWidgetModel3D, mitkPseudocolorWidgetModelEx, mitkReslicePlaneWidgetModel, mitkWidgetModel2D, and mitkWidgetModel3D. |
|
Update the observers for calling from outside (e.g. by a manipulator). |