#include <mitkModel.h>
Inherits mitkObject.
Inherited by mitkDataModel, and mitkWidgetModel.
Inheritance diagram for mitkModel:
Public Types | |
enum | RenderMode { Rough, Medium, Refined } |
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
void | VisibilityOn (void) |
void | VisibilityOff (void) |
void | SetVisibility (int isVisible) |
int | GetVisibility (void) const |
virtual int | Render (mitkScene *scene) |
virtual void | Select (mitkScene *scene) |
void | SetOrigin (float x, float y, float z) |
void | SetOrigin (float origin[3]) |
float const * | GetOrigin (void) const |
void | GetOrigin (float origin[3]) const |
void | SetTranslation (float x, float y, float z) |
void | SetTranslation (float trans[3]) |
float const * | GetTranslation (void) const |
void | GetTranslation (float trans[3]) const |
void | SetRotation (float x, float y, float z) |
void | SetRotation (float rot[3]) |
void | SetRotation (const mitkQuaternion &q) |
void | SetRotation (float ax, float ay, float az, float angle) |
mitkQuaternion const * | GetRotation (void) const |
void | GetRotation (float rot[3]) const |
void | GetRotation (float &ax, float &ay, float &az, float &angle) const |
void | SetScale (float sx, float sy, float sz) |
void | SetScale (float scale[3]) |
void | SetScale (float scale) |
float const * | GetScale (void) const |
void | GetScale (float scale[3]) const |
void | GetModelMatrix (mitkMatrix *m) |
void | GetModelMatrix (float m[16]) |
mitkMatrix const * | GetModelMatrix () |
void | GetInverseOfModelMatrix (mitkMatrix *m) |
void | GetInverseOfModelMatrix (float m[16]) |
mitkMatrix const * | GetInverseOfModelMatrix () |
float const * | GetBounds () |
void | GetBounds (float bounds[6]) |
void | GetBounds (float &xMin, float &xMax, float &yMin, float &yMax, float &zMin, float &zMax) |
float const * | GetCenter () |
void | GetCenter (float c[3]) |
float | GetLength () |
void | Reset () |
void | ModelToWorld (float const modelPoint[4], float worldPoint[4]) |
void | WorldToModel (float const worldPoint[4], float modelPoint[4]) |
virtual bool | IsOpaque ()=0 |
bool | GetDataModifyStatus () const |
void | SetDataModifyStatus (bool isModify) |
void | SetRenderMode (RenderMode mode) |
void | SetRenderModeToRough () |
void | SetRenderModeToMedium () |
void | SetRenderModeToRefined () |
RenderMode | GetRenderMode () const |
mitkModel is an abstract class used to represent an entity in a rendering scene.
|
The enumeration for render mode. |
|
Get the bounds for this Prop3D as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
|
|
Get the bounds for this Prop3D as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
|
|
Get the bounds for this Prop3D as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
|
|
Get the center of the bounding box in world coordinates.
|
|
Get the center of the bounding box in world coordinates.
|
|
Get the status of source data.
|
|
Get the inverse of model matrix.
|
|
Get the inverse of model matrix.
|
|
Get the inverse of model matrix.
|
|
Get the length of the diagonal of the bounding box.
|
|
Return a reference to the model's 4x4 composite matrix. Get the matrix from the position, origin, scale and orientation this matrix is cached, so multiple GetMatrix() calls will be efficient.
|
|
Return a reference to the model's 4x4 composite matrix. Get the matrix from the position, origin, scale and orientation this matrix is cached, so multiple GetMatrix() calls will be efficient.
|
|
Return a reference to the model's 4x4 composite matrix. Get the matrix from the position, origin, scale and orientation this matrix is cached, so multiple GetMatrix() calls will be efficient.
|
|
Get the origin of the model. This is the point about which all rotations take place.
|
|
Get the origin of the model. This is the point about which all rotations take place.
|
|
Get the render mode of this model.
|
|
Get the rotation of the model.
|
|
Get the rotation of the model. (obsolete, just provided for convenience.)
|
|
Get the rotation of the model.
|
|
Get the scale of the model.
|
|
Get the scales of the model.
|
|
Get the translation of the model.
|
|
Get the translation of the model.
|
|
Get the visibility of this model.
|
|
Whether this model is opaque.
Implemented in mitkImageModel, mitkOrthogonalImageModel, mitkSurfaceModel, mitkVolumeModel, and mitkWidgetModel. |
|
Transform a point from object(model) coordinate to world coordinate.
|
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkObject. Reimplemented in mitkAngleWidgetModel2D, mitkAngleWidgetModel3D, mitkClippingPlaneWidgetModel, mitkDataModel, mitkEllipseWidgetModel2D, mitkImageModel, mitkLineWidgetModel2D, mitkLineWidgetModel3D, mitkOrthogonalImageModel, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, mitkRectWidgetModel2D, mitkReslicePlaneWidgetModel, mitkSurfaceModel, mitkVolumeModel, mitkWidgetModel, mitkWidgetModel2D, and mitkWidgetModel3D. |
|
Render this model.
Reimplemented in mitkAngleWidgetModel2D, mitkAngleWidgetModel3D, mitkClippingPlaneWidgetModel, mitkEllipseWidgetModel2D, mitkImageModel, mitkLineWidgetModel2D, mitkLineWidgetModel3D, mitkOrthogonalImageModel, mitkPolygonWidgetModel2D, mitkPseudocolorWidgetModel, mitkPseudocolorWidgetModelEx, mitkRectWidgetModel2D, mitkReslicePlaneWidgetModel, mitkSurfaceModel, and mitkVolumeModel. |
|
Reset all the geometric transformation |
|
Selecting object in interactive mode using widgets.
Reimplemented in mitkWidgetModel. |
|
Set the status of source data.
|
|
Set the origin of the model. This is the point about which all rotations take place.
|
|
Set the origin of the model. This is the point about which all rotations take place.
|
|
Set render mode. It's just a hint to the renderer. The final result of rendering relies on the actual implementation of render algorithm.
|
|
Set render mode to medium mode. It's just a hint to the renderer. The final result of rendering relies on the actual implementation of render algorithm.
|
|
Set render mode to refined mode. It's just a hint to the renderer. The final result of rendering relies on the actual implementation of render algorithm.
|
|
Set render mode to rough mode. It's just a hint to the renderer. The final result of rendering relies on the actual implementation of render algorithm.
|
|
Set the rotation of the model.
|
|
Set the rotation of the model.
|
|
Set the rotation of the model.
|
|
Set the rotation of the model.
|
|
Set the scales in x, y and z axes of the model to the same value.
|
|
Set the scale of the model.
|
|
Set the scale of the model.
|
|
Set the translation of the model.
|
|
Set the translation of the model.
|
|
Set the visibility of this model.
|
|
Set the visibility of this model off. |
|
Set the visibility of this model on. |
|
Transform a point from world coordinate to object(model) coordinate
|