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

mitkCamera Class Reference

mitkCamera - a camera in 3D scene More...

#include <mitkCamera.h>

Inherits mitkObject.

Inherited by mitkSplatCamera.

Inheritance diagram for mitkCamera:

Inheritance graph
[legend]
Collaboration diagram for mitkCamera:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void PrintSelf (ostream &os)
void GetPosition (float &x, float &y, float &z)
void GetPosition (float a[3])
void GetFocalPoint (float &x, float &y, float &z)
void GetFocalPoint (float a[3])
float GetThickness ()
bool IsParallelProjection ()
void SetProjectionToParallel ()
void SetProjectionToPerspective ()
bool IsModified ()
virtual void LookAt (float eyex, float eyey, float eyez, float centerx, float centery, float centerz, float upx, float upy, float upz)
virtual void Ortho (float left, float right, float bottom, float top, float zNear, float zFar)
virtual void Frustum (float left, float right, float bottom, float top, float zNear, float zFar)
virtual void Perspective (float fovy, float aspect, float zNear, float zFar)
void GetViewMatrix (mitkMatrix *m)
void GetViewMatrix (float m[16])
const mitkMatrixGetViewMatrix ()
void GetProjectionMatrix (mitkMatrix *m)
void GetProjectionMatrix (float m[16])
const mitkMatrixGetProjectionMatrix ()
void GetInverseOfProjectionMatrix (mitkMatrix *m)
void GetInverseOfProjectionMatrix (float m[16])
const mitkMatrixGetInverseOfProjectionMatrix ()
void GetInverseOfViewMatrix (mitkMatrix *m)
void GetInverseOfViewMatrix (float m[16])
const mitkMatrixGetInverseOfViewMatrix ()
void WorldToCamera (const float worldPoint[4], float cameraPoint[4])
void WorldToView (const float worldPoint[4], float viewPoint[4])
void CameraToView (const float cameraPoint[4], float viewPoint[4])
void CameraToWorld (const float cameraPoint[4], float worldPoint[4])
void ViewToWorld (const float viewPoint[4], float worldPoint[4])
void ViewToCamera (const float viewPoint[4], float cameraPoint[4])

Detailed Description

mitkCamera - a camera in 3D scene

mitkCamera is a camera in 3D scene. The only way you can access it is to get a pointer to it by using the member function GetCamera() of mitkScene. Then you can control it through its interface, and the change will affect the image rendered in the scene.


Member Function Documentation

void mitkCamera::CameraToView const float  cameraPoint[4],
float  viewPoint[4]
[inline]
 

Transform a point from camera coordinate to view(NDC) coordinate.

void mitkCamera::CameraToWorld const float  cameraPoint[4],
float  worldPoint[4]
[inline]
 

Transform a point from camera coordinate to world coordinate.

virtual void mitkCamera::Frustum float  left,
float  right,
float  bottom,
float  top,
float  zNear,
float  zFar
[virtual]
 

Perspective Projection

Reimplemented in mitkSplatCamera.

void mitkCamera::GetFocalPoint float  a[3]  )  [inline]
 

Get the focal point of the camera in world coordinates.

Parameters:
a[0] Return the x coordinate of the focal point in world coordinates
a[1] Return the y coordinate of the focal point in world coordinates
a[2] Return the z coordinate of the focal point in world coordinates

void mitkCamera::GetFocalPoint float &  x,
float &  y,
float &  z
[inline]
 

Get the focal point of the camera in world coordinates.

Parameters:
x Return the x coordinate of the focal point in world coordinates
y Return the y coordinate of the focal point in world coordinates
z Return the z coordinate of the focal point in world coordinates

const mitkMatrix* mitkCamera::GetInverseOfProjectionMatrix  )  [inline]
 

Get the inverse of projection transform matrix.

void mitkCamera::GetInverseOfProjectionMatrix float  m[16]  ) 
 

Get the inverse of projection transform matrix.

void mitkCamera::GetInverseOfProjectionMatrix mitkMatrix m  ) 
 

Get the inverse of projection transform matrix.

const mitkMatrix* mitkCamera::GetInverseOfViewMatrix  )  [inline]
 

Get the inverse of viewing transform matrix.

void mitkCamera::GetInverseOfViewMatrix float  m[16]  ) 
 

Get the inverse of viewing transform matrix.

void mitkCamera::GetInverseOfViewMatrix mitkMatrix m  ) 
 

Get the inverse of viewing transform matrix.

void mitkCamera::GetPosition float  a[3]  )  [inline]
 

Get the position of the camera in world coordinates.

Parameters:
a[0] Return the x position of the camera in world coordinates
a[1] Return the y position of the camera in world coordinates
a[2] Return the z position of the camera in world coordinates

void mitkCamera::GetPosition float &  x,
float &  y,
float &  z
[inline]
 

Get the position of the camera in world coordinates.

Parameters:
x Return the x position of the camera in world coordinates
y Return the y position of the camera in world coordinates
z Return the z position of the camera in world coordinates

const mitkMatrix* mitkCamera::GetProjectionMatrix  )  [inline]
 

Get the projection transform matrix.

void mitkCamera::GetProjectionMatrix float  m[16]  ) 
 

Get the projection transform matrix.

void mitkCamera::GetProjectionMatrix mitkMatrix m  ) 
 

Get the projection transform matrix.

float mitkCamera::GetThickness  )  [inline]
 

Get the camera thickness.

Returns:
Return the camera thickness

const mitkMatrix* mitkCamera::GetViewMatrix  )  [inline]
 

Get the viewing transform matrix.

void mitkCamera::GetViewMatrix float  m[16]  ) 
 

Get the viewing transform matrix.

void mitkCamera::GetViewMatrix mitkMatrix m  ) 
 

Get the viewing transform matrix.

bool mitkCamera::IsModified  )  [inline]
 

Test whether this camera is modified.

Returns:
Return true if this camera is modified.

bool mitkCamera::IsParallelProjection  )  [inline]
 

Get the projection mode.

Returns:
Return non-zero value, the projection mode is parallel projection, otherwise perspective projection

virtual void mitkCamera::LookAt float  eyex,
float  eyey,
float  eyez,
float  centerx,
float  centery,
float  centerz,
float  upx,
float  upy,
float  upz
[virtual]
 

Set the look at point. It is equal to the glLookAt() function in OpenGL API.

virtual void mitkCamera::Ortho float  left,
float  right,
float  bottom,
float  top,
float  zNear,
float  zFar
[virtual]
 

Parallel Projection

virtual void mitkCamera::Perspective float  fovy,
float  aspect,
float  zNear,
float  zFar
[virtual]
 

Perspective Projection

Reimplemented in mitkSplatCamera.

virtual void mitkCamera::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 mitkSplatCamera.

void mitkCamera::SetProjectionToParallel  )  [inline]
 

Set the projection mode to parallel.

void mitkCamera::SetProjectionToPerspective  )  [inline]
 

Set the projection mode to perspective.

void mitkCamera::ViewToCamera const float  viewPoint[4],
float  cameraPoint[4]
[inline]
 

Transform a point from view(NDC) coordinate to camera coordinate.

void mitkCamera::ViewToWorld const float  viewPoint[4],
float  worldPoint[4]
[inline]
 

Transform a point from view(NDC) coordinate to world coordinate.

void mitkCamera::WorldToCamera const float  worldPoint[4],
float  cameraPoint[4]
[inline]
 

Transform a point from world coordinate to camera coordinate.

void mitkCamera::WorldToView const float  worldPoint[4],
float  viewPoint[4]
[inline]
 

Transform a point from world coordinate to view(NDC) coordinate.


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