#include <mitkScene.h>
Inherits mitkSceneBase.
Inherited by mitkImageScene.
Inheritance diagram for mitkScene:
Public Member Functions | |
const int * | GetViewPort () |
void | GetViewPort (int vp[4]) |
virtual void | InitGL () |
virtual void | DestroyGL () |
virtual void | ResizeGL (int newX, int newY) |
virtual void | RenderGL () |
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) |
virtual void | OnMouseWheel (bool ctrlDown, bool shiftDown, int xPos, int yPos, int delta) |
void | SetBackColor (unsigned char rColor, unsigned char gColor, unsigned char bColor) |
void | SetBackColor (float rColor, float gColor, float bColor) |
void | SetBackColor (int rColor, int gColor, int bColor) |
void | GetBackColor (float &rColor, float &gColor, float &bColor) |
void | GetBackColor (unsigned char &rColor, unsigned char &gColor, unsigned char &bColor) |
void | GetBackColor (int &rColor, int &gColor, int &bColor) |
virtual void | ResetScene () |
virtual void | Translate (float deltX, float deltY, float deltZ) |
virtual void | Rotate (float deltX, float deltY, float deltZ) |
virtual void | Rotate (float ax, float ay, float az, float angle) |
virtual void | Rotate (const mitkQuaternion &q) |
virtual void | SetRotation (float x, float y, float z) |
virtual void | SetRotation (float ax, float ay, float az, float angle) |
virtual void | SetRotation (const mitkQuaternion &q) |
virtual void | Scale (float delt) |
virtual mitkManipulator * | CreateManipulator () |
void | SetManipulator (mitkManipulator *mani) |
void | AddModel (mitkModel *model) |
void | RemoveModel (mitkModel *model) |
void | RemoveModel (int i) |
void | RemoveAllModels () |
void | RemoveAllModel () |
mitkModel * | GetModel (int i) |
mitkList * | GetModels () |
int | GetModelCount () |
int | GetNumberOfPropsRendered () |
void | SetCamera (mitkCamera *cam) |
mitkCamera * | GetCamera () |
void | SetDefaultLight (mitkLight *lit) |
mitkLight * | GetDefaultLight () |
mitkLight * | GetLight () |
void | AddAdditionalLight (mitkLight *lit) |
void | RemoveAdditionalLight (int idx) |
void | RemoveAdditionalLight (mitkLight *lit) |
void | RemoveAllAdditionalLights () |
int | GetAdditionalLightCount () |
mitkLight * | GetAdditionalLight (int idx) |
void | AlignScene () |
float * | GetZbufferData (int x1, int y1, int x2, int y2) |
void | GetZbufferData (int x1, int y1, int x2, int y2, float *buffer) |
unsigned char * | GetPixelData (int xOffset, int yOffset, int width, int height) |
void | GetPixelData (int xOffset, int yOffset, int width, int height, unsigned char *buffer, int packAlignment=4, bool swapRGB=false) |
void | GetPixelData24 (int xOffset, int yOffset, int width, int height, unsigned char *buffer, int packAlignment=4, bool swapRGB=false) |
void | GetPixelData32 (int xOffset, int yOffset, int width, int height, unsigned char *buffer, bool swapRGB=false) |
void | SetSelected (bool isSelected) |
bool | GetSelected () |
float | GetTranslateSpeed () |
float | GetTranslationX () |
float | GetTranslationY () |
float | GetTranslationZ () |
void | GetTranslation (float trans[3]) |
const mitkQuaternion & | GetRotation () |
float | GetScale () |
void | EnableLoD () |
void | DisableLoD () |
bool | IsLoDEnabled () |
bool | IsModelsModified () |
bool | IsCameraModified () |
bool | IsAdditionalLightModified () |
mitkScene is a 3d scene to display 3D surface rendered or volume rendered image. To display 3d images, you must create one or several models (either mitkSurfaceModel or mitkVolumeModel) firstly, then add them using the function
AddModel()
|
Add an additional light to this scene.
|
|
Add a model to this scene for display. Scene can contain many models, including surface model, volume model and widget model, and display them simultaneity. So scene provides a set of functions to manage the models.
|
|
|
|
Create a default manipulator for the mouse events processing. Subclass can override this function to create a proper manipulator. Reimplemented in mitkImageScene. |
|
Free OpenGL resources Reimplemented from mitkSceneBase. |
|
Disable LoD rendering mode.
|
|
Enable LoD rendering mode.
|
|
Get the idx'th additional light.
|
|
Get the count of additional lights.
|
|
Get the background color of this scene.
|
|
Get the background color of this scene.
|
|
Get the background color of this scene.
|
|
Get the camera of this scene.
|
|
Get the default light of this scene.
|
|
Provided for back compatibility, just the same as SetSliceNum(). |
|
Get the model in specified position.
|
|
Get the model count in this scene.
|
|
Get the list of models in this scene.
|
|
|
|
Get frame buffer data (RGB pixel data) in the specified region. This function is provided for convenience. It does the same thing as GetPixelData24().
|
|
Get frame buffer data in the specified region.
|
|
Get frame buffer data (RGB pixel data) in the specified region.
|
|
Get frame buffer data (RGBA pixel data) in the specified region.
|
|
Get the Rotation of the scene.
|
|
Get the scale of the scene.
|
|
Set the selected status of this scene. If scene is selected, it will be added a red frame.
|
|
|
|
Get the translation of the scene.
|
|
Get the translation along x-axis of the scene.
|
|
Get the translation along y-axis of the scene.
|
|
Get the translation along z-axis of the scene.
|
|
Get the viewport of this scene. Not all of the area of a scene is used to display the image. Only the viewport is used to display the image. The position and size of viewport are calculated automatically according to the size of image.
|
|
Get the viewport of this scene. Not all of the area of a scene is used to display the image. Only the viewport is used to display the image. The position and size of viewport are calculated automatically according to the size of image.
|
|
Get z buffer data in the specified region.
|
|
Get z buffer data in the specified region.
|
|
Initialize OpenGL variables and resources. Reimplemented from mitkSceneBase. Reimplemented in mitkImageScene. |
|
Check whether there is a modified additional light
|
|
Check whether the camera has been modified
|
|
Test if the LoD mode is enabled.
|
|
Check whether there is a modified model
|
|
Handle the mouse pressed event pass by the container Reimplemented from mitkSceneBase. |
|
Handle the mouse moved event pass by the container Reimplemented from mitkSceneBase. |
|
Handle the mouse released event pass by the container Reimplemented from mitkSceneBase. |
|
Handle the mouse wheel event pass by the container Reimplemented from mitkSceneBase. |
|
Remove an additional light in this scene.
|
|
Remove the additional light in specified position.
|
|
Remove all additional lights in this scene. |
|
Provided for back compatibility, just the same as SetSliceNum(). |
|
Remove all models in this scene. |
|
Remove the model in specified position.
|
|
Remove a model in this scene.
|
|
Handle the render event pass by the container Reimplemented from mitkSceneBase. Reimplemented in mitkImageScene. |
|
Reset the geometric position of all of the models in this scene. Reimplemented in mitkImageScene. |
|
Handle the resize event pass by the container Reimplemented from mitkSceneBase. Reimplemented in mitkImageScene. |
|
Rotate all of the models in this scene.
Reimplemented in mitkImageScene. |
|
Rotate all of the models in this scene around axis (ax,ay,az) for angle degrees.
Reimplemented in mitkImageScene. |
|
Rotate all of the models in this scene around x, y, z axis.
Reimplemented in mitkImageScene. |
|
Scale all of the models in this scene in x, y, z directions.
Reimplemented in mitkImageScene. |
|
Set the background color of this scene.
|
|
Set the background color of this scene.
|
|
Set the background color of this scene.
|
|
Set the camera of this scene.
|
|
Set the default light of this scene.
|
|
Set another manipulator to replace the current manipulator. This function provides a chance for the user to override the behavior of mouse events processing.
|
|
Set rotations of all models in this scene to the quaternion "q".
Reimplemented in mitkImageScene. |
|
Set rotations of all models in this scene.
Reimplemented in mitkImageScene. |
|
Set rotations of all models in this scene.
Reimplemented in mitkImageScene. |
|
Set the selected status of this scene. If scene is selected, it will be added a red frame.
|
|
Translate all of the models in this scene in x, y, z directions.
Reimplemented in mitkImageScene. |