#include <mitkView.h>
Inherits mitkObject.
Inherited by mitkImageView.
Inheritance diagram for mitkView:
Public Member Functions | |
virtual void | PrintSelf (ostream &os) |
void * | GetWindowId () |
void * | GetParent () |
void * | GetApplicationId () |
void * | GetDeviceContext () |
void * | GetRenderContext () |
void | SetParent (void *parentId) |
const int * | GetPosition () |
int | GetLeft () |
int | GetTop () |
void | SetPosition (int leftPos, int topPos) |
void | SetPosition (int a[2]) |
void | SetLeft (int leftPos) |
void | SetTop (int topPos) |
int | GetTitleBar () |
void | SetTitleBar (int titleBar) |
void | SetTitleBarOn () |
void | SetTitleBarOff () |
const int * | GetSize () |
int | GetWidth () |
int | GetHeight () |
void | SetSize (int widthSize, int heightSize) |
void | SetSize (int a[2]) |
void | SetWidth (int widthSize) |
void | SetHeight (int heightSize) |
const int * | GetViewPort () |
void | GetViewPort (int vp[4]) |
const char * | GetWindowName () |
void | SetWindowName (const char *winName) |
void | Show () |
void | Hide () |
void | Update () |
void | MakeCurrent () |
void | SwapBuffers () |
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) |
void | ResetScene () |
void | Translate (float deltX, float deltY, float deltZ) |
void | Rotate (float deltX, float deltY, float deltZ) |
void | Rotate (float ax, float ay, float az, float angle) |
void | Rotate (const mitkQuaternion &q) |
void | SetRotation (float x, float y, float z) |
void | SetRotation (float ax, float ay, float az, float angle) |
void | SetRotation (const mitkQuaternion &q) |
void | Scale (float delt) |
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 () |
bool | HasUnprocessedMouseMessage () |
void | EnableLoD () |
void | DisableLoD () |
bool | IsLoDEnabled () |
double | GetFrameSpeed () |
double | GetRenderTime () |
void | EnableCalculateFrameSpeed () |
void | DisableCalculateFrameSpeed () |
bool | IsModelsModified () |
bool | IsCameraModified () |
bool | IsAdditionalLightModified () |
mitkScene * | GetScene () |
mitkView is a 3d view 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()
mitkView *aView = new mitkView; //Set the parent window, and fill out the whole parent window aView->SetParent(parentWindowId); aView->SetLeft(0); aView->SetTop(0); aView->SetWidth(parentWindowWidth); aView->SetHeight(parentWindowHeight); aView->Show();
|
Add an additional light to this view.
|
|
Add a model to this view for display. View can contain many models, including surface model, volume model and widget model, and display them simultaneity. So view 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. |
|
Disable frame speed calculation.
|
|
Disable LoD rendering mode.
|
|
Enable frame speed calculation.
|
|
Enable LoD rendering mode.
|
|
Get the idx'th additional light.
|
|
Get the count of additional lights.
|
|
Get the system dependent application id
|
|
Get the background color of this view.
|
|
Get the background color of this view.
|
|
Get the background color of this view.
|
|
Get the camera of this view.
|
|
Get the default light of this view.
|
|
Get the system dependent device context id
|
|
Get frame speed.
|
|
Get the Height of this view
|
|
Get the Left position in local coordinate of its parent window
|
|
Provided for back compatibility, just the same as SetSliceNum(). |
|
Get the model in specified position.
|
|
Get the model count in this view.
|
|
Get the list of models in this view.
|
|
|
|
Get the system dependent parent window id
|
|
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 position (Left and Top) in local coordinate of its parent window
|
|
Get the system dependent render context id
|
|
Get the elapsed time of render process in seconds.
|
|
Get the Rotation of the view.
|
|
Get the scale of the view.
|
|
Get the scene embeded in the container window
|
|
Set the selected status of this view. If view is selected, it will be added a red frame.
|
|
Get the size (Width and Height) of this view
|
|
Check if the window has a title bar |
|
Get the Top position in local coordinate of its parent window
|
|
|
|
Get the translation of the view.
|
|
Get the translation along x-axis of the view.
|
|
Get the translation along y-axis of the view.
|
|
Get the translation along z-axis of the view.
|
|
Get the viewport of this view. Not all of the area of a view 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 view. Not all of the area of a view 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 Width of this view
|
|
Get the system dependent window id
|
|
Get the name of the window |
|
Get z buffer data in the specified region.
|
|
Get z buffer data in the specified region.
|
|
Test if there is any unprocessed mouse message (button down/up) in the message queue of rendering thread. Use it in your rendering algorithm to achieve a fine mouse response.
|
|
Hide this view. |
|
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
|
|
Make the OpenGL context of the container window current |
|
Print the necessary information about this object for the debugging purpose.
Reimplemented from mitkObject. Reimplemented in mitkImageView. |
|
Remove an additional light in this view.
|
|
Remove the additional light in specified position.
|
|
Remove all additional lights in this view. |
|
Provided for back compatibility, just the same as SetSliceNum(). |
|
Remove all models in this view. |
|
Remove the model in specified position.
|
|
Remove a model in this view.
|
|
Reset the geometric position of all of the models in this view. |
|
Rotate all of the models in this view.
|
|
Rotate all of the models in this view around axis (ax,ay,az) for angle degrees.
|
|
Rotate all of the models in this view around x, y, z axis.
|
|
Scale all of the models in this view in x, y, z directions.
|
|
Set the background color of this view.
|
|
Set the background color of this view.
|
|
Set the background color of this view.
|
|
Set the camera of this view.
|
|
Set the default light of this view.
|
|
Set the Height of this view
|
|
Set the Left position in local coordinate of its parent window
|
|
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 the parent window id.
|
|
Set the position (Left and Top) in local coordinate of its parent window
|
|
Set the position (Left and Top) in local coordinate of its parent window
|
|
Set rotations of all models in this view to the quaternion "q".
|
|
Set rotations of all models in this view.
|
|
Set rotations of all models in this view.
|
|
Set the selected status of this view. If view is selected, it will be added a red frame.
|
|
Set the size (Width and Height) of this view
|
|
Set the size (Width and Height) of this view
|
|
Set if the window has a title bar |
|
Turn off the title bar |
|
Turn on the title bar |
|
Get the Top position in local coordinate of its parent window
|
|
Set the Width of this view
|
|
Set the name of the window |
|
Show this view. Usually call it when a view is created. And the later updating of this view should call Update(). |
|
Swap the buffers of the container window |
|
Translate all of the models in this view in x, y, z directions.
|
|
Update the content of this view. |