#include <mitkReslicePlaneWidgetModel.h>
Inherits mitkWidgetModel3D.
Inheritance diagram for mitkReslicePlaneWidgetModel:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
mitkReslicePlaneWidgetModel (coord_type v0x, coord_type v0y, coord_type v0z, coord_type v1x, coord_type v1y, coord_type v1z, coord_type cx, coord_type cy, coord_type cz) | |
virtual int | Render (mitkScene *scene) |
virtual void | Pick (const WidgetNames &names) |
virtual void | Release () |
virtual void | SetSourceModel (mitkDataModel *model) |
void | SetPlanePosition (coord_type v0x, coord_type v0y, coord_type v0z, coord_type v1x, coord_type v1y, coord_type v1z, coord_type cx, coord_type cy, coord_type cz) |
void | SetPlaneOpacity (float opacity) |
void | SetSliceOpacity (float opacity) |
float | GetPlaneOpacity () |
float | GetSliceOpacity () |
void | SetVolumeData (mitkVolume *vol) |
mitkVolume * | GetVolumeData () |
void | SetSliceImageWidth (int width) |
void | SetSliceImageHeight (int height) |
int | GetSliceImageWidth () |
int | GetSliceImageHeight () |
void | GetLeftBottomPoint (coord_type &x, coord_type &y, coord_type &z) |
mitkVector const * | GetLeftBottomPoint () |
void | GetRightBottomPoint (coord_type &x, coord_type &y, coord_type &z) |
mitkVector const * | GetRightBottomPoint () |
void | GetRightTopPoint (coord_type &x, coord_type &y, coord_type &z) |
mitkVector const * | GetRightTopPoint () |
void | GetLeftTopPoint (coord_type &x, coord_type &y, coord_type &z) |
mitkVector const * | GetLeftTopPoint () |
virtual void | Update () |
void | EnableReslice (bool enable=true) |
void | DisableReslice () |
void | SetColorTable (mitkColorTable *ct) |
mitkColorTable * | GetColorTable () |
void | EnablePseudocolor (bool enable=true) |
void | DisablePseudocolor () |
bool | IsResliceEnabled () |
bool | IsPseudocolorEnabled () |
void | StoreEnableState () |
mitkVolume * | GetReslicedImage () |
void | RotateRadAroundXAxisOfPlane (float angle) |
void | RotateRadAroundYAxisOfPlane (float angle) |
void | RotateRadAroundZAxisOfPlane (float angle) |
void | RotateDegAroundXAxisOfPlane (float angle) |
void | RotateDegAroundYAxisOfPlane (float angle) |
void | RotateDegAroundZAxisOfPlane (float angle) |
void | TranslatePlane (float tx, float ty, float tz) |
void | SetPlaneCenter (float ox, float oy, float oz) |
void | GetPlaneNormal (float &nx, float &ny, float &nz) |
void | GetPlaneNormal (float n[3]) |
void | SetUnitName (const string &name) |
const string & | GetUnitName () |
float | GetRotatedAngleRad () |
float | GetRotatedAngleDeg () |
float | GetMovedDistance () |
float | GetVertMoveFromStart () |
float const * | GetStartOrigin () |
void | GetStartOrigin (float so[3]) |
bool | IsBallSelected () |
bool | IsLineSelected () |
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) |
mitkReslicePlaneWidgetModel is a 3D widget for re-slice plane. It can clip the source model at an arbitrary position and along an arbitrary direction, and at the same time, reconstruct the slice of the transection and display it on the clipping plane.
The clipping rectangle plane is initialized by its left-bottom point, right-bottom point and center point in the constructor of this class.
|
A constructor. The parameters specify a rectangle in the model space via its left-bottom point, right-bottom point and center point.
|
|
Deal with mouse down event.
Implements mitkWidgetModel. |
|
Deal with mouse move event.
Implements mitkWidgetModel. |
|
Deal with mouse up event.
Implements mitkWidgetModel. |
|
Display pseudo-color display for re-slice. |
|
Disable re-slice (do not reconstruct the slice of the transection). |
|
Enable pseudo-color display for re-slice.
|
|
Enable re-slice (reconstruct the slice of the transection and display it on the clipping plane).
|
|
Get color table.
|
|
Get the left-bottom point of the re-slice rectangle plane in the model space.
|
|
Get the left-bottom point of the re-slice rectangle plane in the model space.
|
|
Get the left-top point of the re-slice rectangle plane in the model space.
|
|
Get the left-top point of the re-slice rectangle plane in the model space.
|
|
Get moved distance since mouse button is pressed.
|
|
Get the normal of the plane.
|
|
Get the normal of the plane.
|
|
Get the opacity of the plane.
|
|
Get current re-sliced image.
|
|
Get the right-bottom point of the re-slice rectangle plane in the model space.
|
|
Get the right-bottom point of the re-slice rectangle plane in the model space.
|
|
Get the right-top point of the re-slice rectangle plane in the model space.
|
|
Get the right-top point of the re-slice rectangle plane in the model space.
|
|
Get the rotated angle of the plane in degree (around x/y axis) since mouse button is pressed.
|
|
Get the rotated angle of the plane in radian (around x/y axis) since mouse button is pressed.
|
|
Get the image height of the reconstructed slice.
|
|
Get the image width of the reconstructed slice.
|
|
Get the opacity of the reconstructed slice.
|
|
Get the start origin (start plane center) of the plane.
|
|
Get the start origin (start plane center) of the plane.
|
|
Get name string of unit.
|
|
Get vertical movement from the start position (plane center).
|
|
Get the source volume data for reconstructing slice.
|
|
Whether any one of the balls is selected.
|
|
Whether any one of the lines is selected.
|
|
Test if the pseudo-color function is enabled. |
|
Test if the re-slice function is enabled. |
|
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. |
|
Rotate the plane around the x axis of the plane. This function is provided for convenience. It behaves essentially like RotateRadAroundXAxisOfPlane(), but the parameter angle is in degree.
|
|
Rotate the plane around the y axis of the plane. This function is provided for convenience. It behaves essentially like RotateRadAroundYAxisOfPlane(), but the parameter angle is in degree.
|
|
Rotate the plane around the z axis of the plane. This function is provided for convenience. It behaves essentially like RotateRadAroundZAxisOfPlane(), but the parameter angle is in degree.
|
|
Rotate the plane around the x axis of the plane. |z / y left top | / right top o---------|--+-----------o / | / / / |/ / x / o-----------+----> / / / / o------------------------o left bottom right bottom
|
|
Rotate the plane around the y axis of the plane. |z / y left top | / right top o---------|--+-----------o / | / / / |/ / x / o-----------+----> / / / / o------------------------o left bottom right bottom
|
|
Rotate the plane around the z axis of the plane. |z / y left top | / right top o---------|--+-----------o / | / / / |/ / x / o-----------+----> / / / / o------------------------o left bottom right bottom
|
|
Set color table.
|
|
Set the center of the plane.
|
|
Set the opacity of the plane.
|
|
Set the position of this plane. The parameters specify a rectangle in the model space via its left-bottom point, right-bottom point and center point.
|
|
Set the image height of the reconstructed slice.
|
|
Set the image width of the reconstructed slice.
|
|
Set the opacity of the reconstructed slice.
|
|
Associate this widget with a data model.
Reimplemented from mitkWidgetModel3D. |
|
Set name string of unit.
|
|
Set the source volume data for reconstructing slice.
|
|
Store enabled states of the widget's re-slice and pseudo-color function, these states will be restored after rendering of the widget model. |
|
Translate the plane with translation vector (tx, ty, tz).
|
|
Update the parameters of the widget. Reimplemented from mitkWidgetModel3D. |