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

mitkVis2Scene3D Class Reference

mitkVis2Scene3D - a simple base class for 3D scenes. More...

#include <mitkVis2Scene3D.h>

Inherits mitkSceneBase.

Inherited by mitkCUDAAugmentedSurfaceVRScene, mitkCUDADecomposedIsosurfaceVRScene, mitkCUDADeltaAccStateVRScene, mitkCUDAFullVRScene, mitkCUDAIsosurfaceVRScene, mitkCUDAMIPVRScene, mitkCUDAROIDistanceVRScene, mitkCUDASegmentedVRScene, mitkCUDAStructureFunctionVRScene, mitkCUDAValueBasedStateVRScene, mitkCUDAVersatileVRScene, mitkCUDAWallCarvingVRScene, mitkCUDAWallPenetrateVRScene, mitkFullVRScene, mitkGLSLFullVRScene, mitkGLSLIsosurfaceVRScene, mitkGLSLMIPVRScene, mitkIsosurfaceVRScene, mitkMIPVRScene, mitkPathNetworkScene, mitkTargetMeasurementScene, and mitkVis2SurfaceScene.

Inheritance diagram for mitkVis2Scene3D:

Inheritance graph
[legend]
Collaboration diagram for mitkVis2Scene3D:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void SetFovy (float fovy)
void SetRotateRadPerPixel (float radPerPixel)
float GetRotateRadPerPixel () const
void SetScaleRatePerPixel (float scaleRatePerPixel)
float GetScaleRatePerPixel () const
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)
void GetTranslate (float translate[3]) const
float GetScale () const
const mitkVis2Quaternion & GetRotation () const
void SetTranslate (const float translate[3])
void SetScale (float scale)
void SetRotation (const mitkVis2Quaternion &rotation)
const mitkVis2Matrix4x4 & GetViewMatrix () const
const mitkVis2Matrix4x4 & GetProjectionMatrix () const
float GetZTranslateBase () const
void GetViewPort (int *viewport) const
float GetFovy () const
void SetEndoscopy (bool turnOn)
bool GetEndoscopy ()
void MoveTo (float x, float y, float z)
void Move (float dx, float dy, float dz)
void Turn (float dx, float dy)
void Roll (float rad)

Detailed Description

mitkVis2Scene3D - a simple base class for 3D scenes.

mitkVis2Scene3D is a simple base class for 3D scenes.


Member Function Documentation

bool mitkVis2Scene3D::GetEndoscopy  )  [inline]
 

Get the endoscopy status

Returns:
: the endoscopy status

float mitkVis2Scene3D::GetFovy  )  const [inline]
 

Get the fovy angle.

Returns:
: The fovy angle.

const mitkVis2Matrix4x4& mitkVis2Scene3D::GetProjectionMatrix  )  const
 

Get the projection matrix of the scene

Returns:
Return the projection matrix of the scene

float mitkVis2Scene3D::GetRotateRadPerPixel  )  const [inline]
 

Get the interaction sensitivity of rotation.

Returns:
Return the rad the object is rotated when the mouse is moved 1 pixel

const mitkVis2Quaternion& mitkVis2Scene3D::GetRotation void   )  const [inline]
 

Get the rotation status of the scene.

Returns:
Return the rotation quaternion of the scene.

float mitkVis2Scene3D::GetScale void   )  const [inline]
 

Get the scale status of the scene.

Returns:
Return the scaling rate of the scene.

float mitkVis2Scene3D::GetScaleRatePerPixel  )  const [inline]
 

Get the interaction sensitivity of scaling

Returns:
Return the rate the object is scaled when the mouse is moved 1 pixel

void mitkVis2Scene3D::GetTranslate float  translate[3]  )  const
 

Get the translate status of the scene.

Parameters:
translate[0] Return the translate of the scene in x-direction.
translate[1] Return the translate of the scene in y-direction.
translate[2] Return the translate of the scene in z-direction.

const mitkVis2Matrix4x4& mitkVis2Scene3D::GetViewMatrix  )  const
 

Get the view matrix of the scene

Returns:
Return the view matrix of the scene

void mitkVis2Scene3D::GetViewPort int *  viewport  )  const [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:
viewport,: the viewport size

float mitkVis2Scene3D::GetZTranslateBase  )  const [inline]
 

Get the Z direction base translate after scene initialization

Returns:
Return the Z direction base translate

void mitkVis2Scene3D::Move float  dx,
float  dy,
float  dz
 

Endoscopy control: move the view position by (dx,dy,dz) in physics unit

Parameters:
dx 
dy 
dz 

void mitkVis2Scene3D::MoveTo float  x,
float  y,
float  z
 

Endoscopy control: move the view position to (x,y,z) in physics unit

Parameters:
x 
y 
z 

virtual void mitkVis2Scene3D::OnMouseDown int  mouseButton,
bool  ctrlDown,
bool  shiftDown,
int  xPos,
int  yPos
[virtual]
 

The Interface for handling the mouse pressed event pass by the container

Reimplemented from mitkSceneBase.

Reimplemented in mitkFullVRScene, mitkGLSLFullVRScene, mitkGLSLIsosurfaceVRScene, mitkIsosurfaceVRScene, mitkCUDAAugmentedSurfaceVRScene, mitkCUDADecomposedIsosurfaceVRScene, mitkCUDADeltaAccStateVRScene, mitkCUDAFullVRScene, mitkCUDAIsosurfaceVRScene, mitkCUDAROIDistanceVRScene, mitkCUDASegmentedVRScene, mitkCUDAStructureFunctionVRScene, mitkCUDAValueBasedStateVRScene, and mitkCUDAVersatileVRScene.

virtual void mitkVis2Scene3D::OnMouseMove bool  ctrlDown,
bool  shiftDown,
int  xPos,
int  yPos
[virtual]
 

The Interface for handling the mouse moved event pass by the container

Reimplemented from mitkSceneBase.

Reimplemented in mitkFullVRScene, mitkGLSLFullVRScene, mitkGLSLIsosurfaceVRScene, mitkIsosurfaceVRScene, mitkCUDAAugmentedSurfaceVRScene, mitkCUDADecomposedIsosurfaceVRScene, mitkCUDADeltaAccStateVRScene, mitkCUDAFullVRScene, mitkCUDAIsosurfaceVRScene, mitkCUDAROIDistanceVRScene, mitkCUDASegmentedVRScene, mitkCUDAStructureFunctionVRScene, mitkCUDAValueBasedStateVRScene, and mitkCUDAVersatileVRScene.

virtual void mitkVis2Scene3D::OnMouseUp int  mouseButton,
bool  ctrlDown,
bool  shiftDown,
int  xPos,
int  yPos
[virtual]
 

The Interface for handling the mouse released event pass by the container

Reimplemented from mitkSceneBase.

Reimplemented in mitkFullVRScene, mitkGLSLFullVRScene, mitkGLSLIsosurfaceVRScene, mitkIsosurfaceVRScene, mitkCUDAAugmentedSurfaceVRScene, mitkCUDADecomposedIsosurfaceVRScene, mitkCUDADeltaAccStateVRScene, mitkCUDAFullVRScene, mitkCUDAIsosurfaceVRScene, mitkCUDAROIDistanceVRScene, mitkCUDASegmentedVRScene, mitkCUDAStructureFunctionVRScene, mitkCUDAValueBasedStateVRScene, and mitkCUDAVersatileVRScene.

virtual void mitkVis2Scene3D::RenderGL  )  [virtual]
 

The Interface for handling the render event pass by the container

Reimplemented from mitkSceneBase.

Reimplemented in mitkFullVRScene, mitkGLSLFullVRScene, mitkGLSLIsosurfaceVRScene, mitkGLSLMIPVRScene, mitkIsosurfaceVRScene, mitkMIPVRScene, mitkTargetMeasurementScene, mitkCUDAAugmentedSurfaceVRScene, mitkCUDADecomposedIsosurfaceVRScene, mitkCUDADeltaAccStateVRScene, mitkCUDAFullVRScene, mitkCUDAIsosurfaceVRScene, mitkCUDAMIPVRScene, mitkCUDAROIDistanceVRScene, mitkCUDASegmentedVRScene, mitkCUDAStructureFunctionVRScene, mitkCUDAValueBasedStateVRScene, and mitkCUDAVersatileVRScene.

virtual void mitkVis2Scene3D::ResizeGL int  newX,
int  newY
[virtual]
 

The Interface for handling the resize event pass by the container

Reimplemented from mitkSceneBase.

void mitkVis2Scene3D::Roll float  rad  ) 
 

Endoscopy control: roll the screen

Parameters:
rad 

void mitkVis2Scene3D::SetEndoscopy bool  turnOn  ) 
 

Set the endoscopy status

Parameters:
turnOn,: the endoscopy status

void mitkVis2Scene3D::SetFovy float  fovy  ) 
 

Set the fovy angle.

Parameters:
fovy. The fovy angle.

void mitkVis2Scene3D::SetRotateRadPerPixel float  radPerPixel  )  [inline]
 

Set the interaction sensitivity of rotation.

Parameters:
radPerPixel. The rad the object is rotated when the mouse is moved 1 pixel

void mitkVis2Scene3D::SetRotation const mitkVis2Quaternion &  rotation  ) 
 

Set the rotation of the scene.

Parameters:
rotation The rotation quaternion of the scene.

void mitkVis2Scene3D::SetScale float  scale  ) 
 

Set the scale status of the scene.

Parameters:
scale The scaling rate of the scene.

void mitkVis2Scene3D::SetScaleRatePerPixel float  scaleRatePerPixel  )  [inline]
 

Set the interaction sensitivity of scaling

Parameters:
scaleRatePerPixel. The rate the object is scaled when the mouse is moved 1 pixel

void mitkVis2Scene3D::SetTranslate const float  translate[3]  ) 
 

Set the translate of the scene.

Parameters:
translate[0] The translate of the scene in x-direction.
translate[1] The translate of the scene in y-direction.
translate[2] The translate of the scene in z-direction.

void mitkVis2Scene3D::Turn float  dx,
float  dy
 

Endoscopy control: turn the view direction

Parameters:
dx 
dy 


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