Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members

mitkView Class Reference

mitkView - a view to display 3D surface rendered or volume rendered image More...

#include <mitkView.h>

Inherits mitkObject.

Inherited by mitkImageView.

Inheritance diagram for mitkView:

Inheritance graph
[legend]
Collaboration diagram for mitkView:

Collaboration graph
[legend]
List of all members.

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)
mitkManipulatorCreateManipulator ()
void SetManipulator (mitkManipulator *mani)
void AddModel (mitkModel *model)
void RemoveModel (mitkModel *model)
void RemoveModel (int i)
void RemoveAllModels ()
void RemoveAllModel ()
mitkModelGetModel (int i)
mitkListGetModels ()
int GetModelCount ()
int GetNumberOfPropsRendered ()
void SetCamera (mitkCamera *cam)
mitkCameraGetCamera ()
void SetDefaultLight (mitkLight *lit)
mitkLightGetDefaultLight ()
mitkLightGetLight ()
void AddAdditionalLight (mitkLight *lit)
void RemoveAdditionalLight (int idx)
void RemoveAdditionalLight (mitkLight *lit)
void RemoveAllAdditionalLights ()
int GetAdditionalLightCount ()
mitkLightGetAdditionalLight (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 mitkQuaternionGetRotation ()
float GetScale ()
bool HasUnprocessedMouseMessage ()
void EnableLoD ()
void DisableLoD ()
bool IsLoDEnabled ()
double GetFrameSpeed ()
double GetRenderTime ()
void EnableCalculateFrameSpeed ()
void DisableCalculateFrameSpeed ()
bool IsModelsModified ()
bool IsCameraModified ()
bool IsAdditionalLightModified ()
mitkSceneGetScene ()

Detailed Description

mitkView - a view to display 3D surface rendered or volume rendered image

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 can be easily integrated into any user interface toolkit, such as MFC in Microsoft Visual C++, VCL in Borland C++ Builder, Trolltech Qt, etc. The following code snippet demonstrate this point:
    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();
So mitkView only requires a parent window id and then can integrate into that window seamless. From Mitk 2.3, mitkView is decomposed into mitkGLWindow and mitkScene, it is recommanded to use those two classes instead of this one. This class serves as a wrapper that provides the compatibility to the tranditional routines.


Member Function Documentation

void mitkView::AddAdditionalLight mitkLight lit  )  [inline]
 

Add an additional light to this view.

Parameters:
lit the light to add
Note:
At most 5 additional light can be added to the view.

void mitkView::AddModel mitkModel model  )  [inline]
 

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.

See also:
RemoveModel()

RemoveAllModel()

GetModel()

GetModels()

GetModelCount()

Parameters:
model Specify the model that will be added to this view.

void mitkView::AlignScene  )  [inline]
 

Warning:
Internal function. Don't call it directly.

mitkManipulator* mitkView::CreateManipulator  ) 
 

Create a default manipulator for the mouse events processing. Subclass can override this function to create a proper manipulator.

void mitkView::DisableCalculateFrameSpeed  )  [inline]
 

Disable frame speed calculation.

Note:
It is only a hint to actual implementor and depends on actual implementation. Maybe it will not take any effect.

void mitkView::DisableLoD  )  [inline]
 

Disable LoD rendering mode.

Note:
It is only a hint to rendering method and depends on actual implementation. Maybe it will not take any effect.

void mitkView::EnableCalculateFrameSpeed  )  [inline]
 

Enable frame speed calculation.

Note:
It is only a hint to actual implementor and depends on actual implementation. Maybe it will not take any effect.

void mitkView::EnableLoD  )  [inline]
 

Enable LoD rendering mode.

Note:
It is only a hint to rendering method and depends on actual implementation. Maybe it will not take any effect.

mitkLight* mitkView::GetAdditionalLight int  idx  )  [inline]
 

Get the idx'th additional light.

Parameters:
idx the index of the light to get

int mitkView::GetAdditionalLightCount  )  [inline]
 

Get the count of additional lights.

Returns:
Return the count of additional lights.

void* mitkView::GetApplicationId void   )  [inline]
 

Get the system dependent application id

Returns:
Return the system dependent parent window id

void mitkView::GetBackColor int &  rColor,
int &  gColor,
int &  bColor
[inline]
 

Get the background color of this view.

Parameters:
rColor Return the red component of the background color. The value range is from 0 to 255.
gColor Return the green component of the background color. The value range is from 0 to 255.
bColor Return the blue component of the background color. The value range is from 0 to 255.

void mitkView::GetBackColor unsigned char &  rColor,
unsigned char &  gColor,
unsigned char &  bColor
[inline]
 

Get the background color of this view.

Parameters:
rColor Return the red component of the background color. The value range is from 0 to 255.
gColor Return the green component of the background color. The value range is from 0 to 255.
bColor Return the blue component of the background color. The value range is from 0 to 255.

void mitkView::GetBackColor float &  rColor,
float &  gColor,
float &  bColor
[inline]
 

Get the background color of this view.

Parameters:
rColor Return the red component of the background color. The value range is from 0.0 to 1.0.
gColor Return the green component of the background color. The value range is from 0.0 to 1.0.
bColor Return the blue component of the background color. The value range is from 0.0 to 1.0.

mitkCamera* mitkView::GetCamera  )  [inline]
 

Get the camera of this view.

Returns:
Return the camera of this view.

mitkLight* mitkView::GetDefaultLight  )  [inline]
 

Get the default light of this view.

Returns:
Return the light of this view.
Note:
The position of the default light is calculated by the view automatically, so any changes of the position will be discarded.

void* mitkView::GetDeviceContext void   )  [inline]
 

Get the system dependent device context id

Returns:
Return the system dependent device context id

double mitkView::GetFrameSpeed  )  [inline]
 

Get frame speed.

Returns:
Return the frame speed.

int mitkView::GetHeight  )  [inline]
 

Get the Height of this view

Returns:
Return the height of this view

int mitkView::GetLeft  )  [inline]
 

Get the Left position in local coordinate of its parent window

Returns:
Return the Left position in local coordinate of its parent window

mitkLight* mitkView::GetLight  )  [inline]
 

Provided for back compatibility, just the same as SetSliceNum().

mitkModel* mitkView::GetModel int  i  )  [inline]
 

Get the model in specified position.

Parameters:
i Zero based index to specify the position of the model.
Returns:
Return the ith model in this view.

int mitkView::GetModelCount  )  [inline]
 

Get the model count in this view.

Returns:
Return the model count in this view.

mitkList* mitkView::GetModels  )  [inline]
 

Get the list of models in this view.

Returns:
Return the internal list of models. User can access each model through the interface of mitkList.

int mitkView::GetNumberOfPropsRendered  )  [inline]
 

Warning:
Internal function. Don't call it directly.

void* mitkView::GetParent void   )  [inline]
 

Get the system dependent parent window id

Returns:
Return the system dependent parent window id

void mitkView::GetPixelData int  xOffset,
int  yOffset,
int  width,
int  height,
unsigned char *  buffer,
int  packAlignment = 4,
bool  swapRGB = false
[inline]
 

Get frame buffer data (RGB pixel data) in the specified region. This function is provided for convenience. It does the same thing as GetPixelData24().

Parameters:
xOffset specify the x coordinate of the left bottom corner
yOffset specify the y coordinate of the left bottom corner
width specify the width of the region
height specify the height of the region
buffer return the the frame buffer data. The data is RGB color data, and is arranged in the order of R1G1B1R2G2B2...
packAlignment pack alignment bytes
swapRGB whether swap RGB channel or not (i.e. true: use GL_BGR format to get pixel data, false: use GL_RGB format to get pixel data
Warning:
The parameter "buffer" must point to a memory block which can contain width*height RGB pixel samples. If packAlignment is 4, the total bytes of one line (contain width samples) must be devided exactly by 4, i.e. one line should be ((width*3+3) & (~3)) bytes. Otherwise, one line should be exactly width*3 bytes. Furthermore, this memory block must be allocated by the user before call this function.

unsigned char* mitkView::GetPixelData int  xOffset,
int  yOffset,
int  width,
int  height
[inline]
 

Get frame buffer data in the specified region.

Parameters:
xOffset Specify the x coordinate of the left bottom corner
yOffset Specify the y coordinate of the left bottom corner
width Specify the width of the region
height Specify the height of the region
Returns:
Return the address of the frame buffer data. The data is RGB color data, and is arranged in the order of R1G1B1R2G2B2...
Note:
This function is obsolete, please use another function to get frame buffer data.

void mitkView::GetPixelData24 int  xOffset,
int  yOffset,
int  width,
int  height,
unsigned char *  buffer,
int  packAlignment = 4,
bool  swapRGB = false
[inline]
 

Get frame buffer data (RGB pixel data) in the specified region.

Parameters:
xOffset specify the x coordinate of the left bottom corner
yOffset specify the y coordinate of the left bottom corner
width specify the width of the region
height specify the height of the region
buffer return the the frame buffer data. The data is RGB color data, and is arranged in the order of R1G1B1R2G2B2...
packAlignment pack alignment bytes
swapRGB whether swap RGB channel or not (i.e. true: use GL_BGR format to get pixel data, false: use GL_RGB format to get pixel data
Warning:
The parameter "buffer" must point to a memory block which can contain width*height RGB pixel samples. If packAlignment is 4, the total bytes of one line (contain width samples) must be devided exactly by 4, i.e. one line should be ((width*3+3) & (~3)) bytes. Otherwise, one line should be exactly width*3 bytes. Furthermore, this memory block must be allocated by the user before call this function.

void mitkView::GetPixelData32 int  xOffset,
int  yOffset,
int  width,
int  height,
unsigned char *  buffer,
bool  swapRGB = false
[inline]
 

Get frame buffer data (RGBA pixel data) in the specified region.

Parameters:
xOffset specify the x coordinate of the left bottom corner
yOffset specify the y coordinate of the left bottom corner
width specify the width of the region
height specify the height of the region
buffer return the the frame buffer data. The data is RGBA color data, and is arranged in the order of R1G1B1A1R2G2B2A2...
swapRGB whether swap RGB channel or not (i.e. true: use GL_BGR format to get pixel data, false: use GL_RGB format to get pixel data
Warning:
The parameter "buffer" must point to a memory block which can contain width*height RGBA pixel samples. This memory block must be allocated by the user before call this function.

const int* mitkView::GetPosition  )  [inline]
 

Get the position (Left and Top) in local coordinate of its parent window

Returns:
Return a pointer to the position. The first element is Left, and the second element is Top.

void* mitkView::GetRenderContext void   )  [inline]
 

Get the system dependent render context id

Returns:
Return the system dependent render context id

double mitkView::GetRenderTime  )  [inline]
 

Get the elapsed time of render process in seconds.

Returns:
the elapsed time in seconds

const mitkQuaternion& mitkView::GetRotation void   )  [inline]
 

Get the Rotation of the view.

Returns:
Return the quaternion of the rotation.

float mitkView::GetScale void   )  [inline]
 

Get the scale of the view.

Returns:
Return the scale of the view.

mitkScene* mitkView::GetScene  )  [inline]
 

Get the scene embeded in the container window

Returns:
Return the scene embeded in the container window

bool mitkView::GetSelected  )  [inline]
 

Set the selected status of this view. If view is selected, it will be added a red frame.

Parameters:
isSelected isSelected=true, set the view is selected. isSelected=false, set the view is unselected.

const int* mitkView::GetSize  )  [inline]
 

Get the size (Width and Height) of this view

Returns:
Return a pointer to the size. The first element is Width, and the second element is Height.

int mitkView::GetTitleBar  )  [inline]
 

Check if the window has a title bar

int mitkView::GetTop  )  [inline]
 

Get the Top position in local coordinate of its parent window

Returns:
Return the Top position in local coordinate of its parent window

float mitkView::GetTranslateSpeed  )  [inline]
 

Warning:
Internal function. Don't call it directly.

void mitkView::GetTranslation float  trans[3]  )  [inline]
 

Get the translation of the view.

Parameters:
trans[0] return translation in x-axis
trans[1] return translation in y-axis
trans[2] return translation in z-axis
Warning:
This function is provided for convenience. Don't call it directly.

float mitkView::GetTranslationX  )  [inline]
 

Get the translation along x-axis of the view.

Returns:
Return the translation along x-axis of the view.
Warning:
This function is provided for convenience. Don't call it directly.

float mitkView::GetTranslationY  )  [inline]
 

Get the translation along y-axis of the view.

Returns:
Return the translation along y-axis of the view.
Warning:
This function is provided for convenience. Don't call it directly.

float mitkView::GetTranslationZ  )  [inline]
 

Get the translation along z-axis of the view.

Returns:
Return the translation along z-axis of the view.
Warning:
This function is provided for convenience. Don't call it directly.

void mitkView::GetViewPort int  vp[4]  )  [inline]
 

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.

Parameters:
vp[0] return the left position of the viewport
vp[1] return the top position of the viewport
vp[2] return the width of the viewport
vp[3] return the height of the viewport

const int* mitkView::GetViewPort  )  [inline]
 

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.

Returns:
Return a pointer to the viewport. The first element is the Left position. The second element is the Top position. The third element is the Width of the viewport. The fourth element is the Height of the viewport.

int mitkView::GetWidth  )  [inline]
 

Get the Width of this view

Returns:
Return the width of this view

void* mitkView::GetWindowId void   )  [inline]
 

Get the system dependent window id

Returns:
Return the system dependent window id

const char* mitkView::GetWindowName  )  [inline]
 

Get the name of the window

void mitkView::GetZbufferData int  x1,
int  y1,
int  x2,
int  y2,
float *  buffer
[inline]
 

Get z buffer data in the specified region.

Parameters:
x1 Specify the x coordinate of the left bottom corner
y1 Specify the y coordinate of the left bottom corner
x2 Specify the x coordinate of the right top corner. x2 >= x1 must be satisfied.
y2 Specify the y coordinate of the right top corner. y2 >= y1 must be satisfied.
buffer Return the z buffer data.
Warning:
The parameter "buffer" must point to a memory block which can contain (x2-x1+1)*(y2-y1+1) floats (i.e. (x2-x1+1)*(y2-y1+1)*4 bytes). This memory block must be allocated by the user before call this function.

float* mitkView::GetZbufferData int  x1,
int  y1,
int  x2,
int  y2
[inline]
 

Get z buffer data in the specified region.

Parameters:
x1 Specify the x coordinate of the left bottom corner
y1 Specify the y coordinate of the left bottom corner
x2 Specify the x coordinate of the right top corner. x2 >= x1 must be satisfied.
y2 Specify the y coordinate of the right top corner. y2 >= y1 must be satisfied.
Returns:
Return the address of the z buffer data.

bool mitkView::HasUnprocessedMouseMessage  )  [inline]
 

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.

Returns:
Return ture if there are some unprocessed mouse messages, otherwise return false.

void mitkView::Hide  )  [inline]
 

Hide this view.

bool mitkView::IsAdditionalLightModified  )  [inline]
 

Check whether there is a modified additional light

Returns:
Return true if there is a modified additional light, otherwise Return false

bool mitkView::IsCameraModified  )  [inline]
 

Check whether the camera has been modified

Returns:
Return true if the camera has been modified, otherwise Return false

bool mitkView::IsLoDEnabled  )  [inline]
 

Test if the LoD mode is enabled.

Returns:
Return true if the LoD mode is enabled, otherwise return false.

bool mitkView::IsModelsModified  )  [inline]
 

Check whether there is a modified model

Returns:
Return true if there is a modified model, otherwise Return false

void mitkView::MakeCurrent  )  [inline]
 

Make the OpenGL context of the container window current

virtual void mitkView::PrintSelf ostream &  os  )  [virtual]
 

Print the necessary information about this object for the debugging purpose.

Parameters:
os The specified ostream to output information.

Reimplemented from mitkObject.

Reimplemented in mitkImageView.

void mitkView::RemoveAdditionalLight mitkLight lit  )  [inline]
 

Remove an additional light in this view.

Parameters:
lit specify the light that will be removed from this view
Note:
If lit is found in the list of models, it will be removed from the list. Otherwise nothing happens.

void mitkView::RemoveAdditionalLight int  idx  )  [inline]
 

Remove the additional light in specified position.

Parameters:
idx zero based index to specify the position of the additional light

void mitkView::RemoveAllAdditionalLights  )  [inline]
 

Remove all additional lights in this view.

void mitkView::RemoveAllModel  )  [inline]
 

Provided for back compatibility, just the same as SetSliceNum().

void mitkView::RemoveAllModels  )  [inline]
 

Remove all models in this view.

void mitkView::RemoveModel int  i  )  [inline]
 

Remove the model in specified position.

Parameters:
i Zero based index to specify the position of the model.

void mitkView::RemoveModel mitkModel model  )  [inline]
 

Remove a model in this view.

Parameters:
model Specify the model that will be removed from this view. If model is found in the list of models, it will be removed from the list. Otherwise nothing happens.

void mitkView::ResetScene  )  [inline]
 

Reset the geometric position of all of the models in this view.

void mitkView::Rotate const mitkQuaternion q  )  [inline]
 

Rotate all of the models in this view.

Parameters:
q the quaternion of the rotation
Note:
The rotation is incremental.

void mitkView::Rotate float  ax,
float  ay,
float  az,
float  angle
[inline]
 

Rotate all of the models in this view around axis (ax,ay,az) for angle degrees.

Parameters:
ax the x-coordinate of rotation axis
ay the y-coordinate of rotation axis
az the z-coordinate of rotation axis
angle the angle of rotation in degrees
Note:
The rotation is incremental.

void mitkView::Rotate float  deltX,
float  deltY,
float  deltZ
[inline]
 

Rotate all of the models in this view around x, y, z axis.

Parameters:
deltX Specify the rotation around x-axis in degrees.
deltY Specify the rotation around y-axis in degrees.
deltZ Specify the rotation around z-axis in degrees.
Note:
The rotation is incremental.

void mitkView::Scale float  delt  )  [inline]
 

Scale all of the models in this view in x, y, z directions.

Parameters:
delt Specify the scale in x, y, z directions. This function scales the models equally in each direction.

void mitkView::SetBackColor int  rColor,
int  gColor,
int  bColor
[inline]
 

Set the background color of this view.

Parameters:
rColor Specify the red component of the background color. The valid range is from 0 to 255.
gColor Specify the green component of the background color. The valid range is from 0 to 255.
bColor Specify the blue component of the background color. The valid range is from 0 to 255.

void mitkView::SetBackColor float  rColor,
float  gColor,
float  bColor
[inline]
 

Set the background color of this view.

Parameters:
rColor Specify the red component of the background color. The valid range is from 0.0 to 1.0.
gColor Specify the green component of the background color. The valid range is from 0.0 to 1.0.
bColor Specify the blue component of the background color. The valid range is from 0.0 to 1.0.

void mitkView::SetBackColor unsigned char  rColor,
unsigned char  gColor,
unsigned char  bColor
[inline]
 

Set the background color of this view.

Parameters:
rColor Specify the red component of the background color. The valid range is from 0 to 255.
gColor Specify the green component of the background color. The valid range is from 0 to 255.
bColor Specify the blue component of the background color. The valid range is from 0 to 255.

void mitkView::SetCamera mitkCamera cam  )  [inline]
 

Set the camera of this view.

Parameters:
cam the new camera of this view

void mitkView::SetDefaultLight mitkLight lit  )  [inline]
 

Set the default light of this view.

Parameters:
lit the new light of this view
Note:
The position of the default light is calculated by the view automatically. It is unchangeable.

void mitkView::SetHeight int  heightSize  )  [inline]
 

Set the Height of this view

Parameters:
heightSize Specify the height of this view.

void mitkView::SetLeft int  leftPos  )  [inline]
 

Set the Left position in local coordinate of its parent window

Parameters:
leftPos Specify the Left coordinate.

void mitkView::SetManipulator mitkManipulator mani  ) 
 

Set another manipulator to replace the current manipulator. This function provides a chance for the user to override the behavior of mouse events processing.

Parameters:
mani Specify the new manipulator for process the mouse events

void mitkView::SetParent void *  parentId  )  [inline]
 

Set the parent window id.

Parameters:
parentId Parent window Id. This value is OS dependent, and the type in different OS is different. For example, in Windows OS, the type is HWND. You can convert the OS dependent type to void* directly.

void mitkView::SetPosition int  a[2]  )  [inline]
 

Set the position (Left and Top) in local coordinate of its parent window

Parameters:
a[0] Specify the Left coordinate.
a[1] Specify the Top coordinate.

void mitkView::SetPosition int  leftPos,
int  topPos
[inline]
 

Set the position (Left and Top) in local coordinate of its parent window

Parameters:
leftPos Specify the Left coordinate.
topPos Specify the Top coordinate.

void mitkView::SetRotation const mitkQuaternion q  )  [inline]
 

Set rotations of all models in this view to the quaternion "q".

Parameters:
q the quaternion of the rotation

void mitkView::SetRotation float  ax,
float  ay,
float  az,
float  angle
[inline]
 

Set rotations of all models in this view.

Parameters:
ax the x-coordinate of rotation axis
ay the y-coordinate of rotation axis
az the z-coordinate of rotation axis
angle the angle of rotation in degrees

void mitkView::SetRotation float  x,
float  y,
float  z
[inline]
 

Set rotations of all models in this view.

Parameters:
x Specify the rotation around x-axis in degrees.
y Specify the rotation around y-axis in degrees.
z Specify the rotation around z-axis in degrees.

void mitkView::SetSelected bool  isSelected  )  [inline]
 

Set the selected status of this view. If view is selected, it will be added a red frame.

Parameters:
isSelected isSelected=true, set the view is selected. isSelected=false, set the view is unselected.

void mitkView::SetSize int  a[2]  )  [inline]
 

Set the size (Width and Height) of this view

Parameters:
a[0] Specify the width of this view.
a[1] Specify the height of this view.

void mitkView::SetSize int  widthSize,
int  heightSize
[inline]
 

Set the size (Width and Height) of this view

Parameters:
widthSize Specify the width of this view.
heightSize Specify the height of this view.

void mitkView::SetTitleBar int  titleBar  )  [inline]
 

Set if the window has a title bar

void mitkView::SetTitleBarOff  )  [inline]
 

Turn off the title bar

void mitkView::SetTitleBarOn  )  [inline]
 

Turn on the title bar

void mitkView::SetTop int  topPos  )  [inline]
 

Get the Top position in local coordinate of its parent window

Parameters:
topPos Specify the Top coordinate.

void mitkView::SetWidth int  widthSize  )  [inline]
 

Set the Width of this view

Parameters:
widthSize Specify the width of this view.

void mitkView::SetWindowName const char *  winName  )  [inline]
 

Set the name of the window

void mitkView::Show  )  [inline]
 

Show this view. Usually call it when a view is created. And the later updating of this view should call Update().

void mitkView::SwapBuffers  )  [inline]
 

Swap the buffers of the container window

void mitkView::Translate float  deltX,
float  deltY,
float  deltZ
[inline]
 

Translate all of the models in this view in x, y, z directions.

Parameters:
deltX Specify the translation in x direction
deltY Specify the translation in y direction
deltZ Specify the translation in z direction

void mitkView::Update  )  [inline]
 

Update the content of this view.


The documentation for this class was generated from the following file:
Generated on Tue Feb 25 15:07:06 2014 for MITK (Medical Imaging ToolKit) by  doxygen 1.4.3