#include <mitkLineWidgetModel3D.h>
Inherits mitkWidgetModel3D.
Inheritance diagram for mitkLineWidgetModel3D:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
mitkLineWidgetModel3D (float point0[3], float point1[3]) | |
virtual int | Render (mitkScene *view) |
virtual void | Pick (const WidgetNames &names) |
virtual void | Release () |
void | SetUnits (float ux, float uy, float uz) |
void | SetUnits (float units[3]) |
float | GetLineLength () |
void | SetUnitName (const string &name) |
const string & | GetUnitName () |
virtual void | Update () |
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) |
mitkLineWidgetModel3D is a line widget used in a 3D 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 3D data model (e.g. mitkVolumeModel, mitkSurfaceModel) and add to a 3D view (e.g. mitkScene), and in other conditions the display could be improper.
|
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 length of this line.
|
|
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 mitkWidgetModel3D. |
|
Maintain the selection status when this widget is released. Implements mitkWidgetModel. |
|
Render this model.
Reimplemented from mitkModel. |
|
Set name string of unit.
|
|
Set unit length on axes.
|
|
Set unit length on axes.
|
|
Update the parameters of the widget. Reimplemented from mitkWidgetModel3D. |