Main Page | Packages | Class Hierarchy | Class List | Directories | Class Members

IDVR.VolumeRenderer.RenderPrimitives.ImagePlane Class Reference

#include <ImagePlane.h>

List of all members.


Detailed Description

Class for the image plane data structure.

This class contains a couple of methods for initalization and computing the image plane.

Author:
Christopher Thurnher
Version:
1.0
Date:
02-17-2005


Public Member Functions

 ImagePlane (void)
 This is the standard constructor.
 ImagePlane (Vector3 *n_LeftUpper, Vector3 *n_RightUpper, Vector3 *n_LeftBottom, Vector3 *n_RightBottom, short n_Resolution, unsigned short n_VolumeDimension __gc[])
 This constructor initalized the image plane with the given parameters.
 ImagePlane (Vector3 *n_LeftUpper, Vector3 *n_RightUpper, Vector3 *n_LeftBottom, Vector3 *n_RightBottom, short n_Resolution, Vector3 *n_ViewDirection, unsigned short n_VolumeDimension __gc[])
 This constructor initalized the image plane with the given parameters.
 ImagePlane (ImagePlane *n_ImagePlane)
 This constructor initalized the image plane with a given image plane.
void calculateRayDistance (void)
 Calculates the ray dstance.
void calculateViewDirection (void)
 Calculates the vie direction.
void calculateNewParameters (void)
 Calculates the view direction, the width and height of the image plane and the ray distance.
Vector3calculateMiddlePoint (void)
 Calculates the middle point of the image plane.
Vector3calculateDefaultMiddlePoint (void)
 calculates the default middle point of the image plane.
double calculateDistance (Vector3 *n_Point)
 calculates the distance of the image plane with a given point.
void calculateNullPoint (void)
 Calculates the null point.
void calculateNullPointMiddlePoint (void)
 Calculates the vector between the null point and the middle point.
void transformImagePlane (void)
 Does all image plane transformations according to the transform-, rotate- and scale matrix.
__property double get_Width (void)
 Returns the width of the image plane.
__property double get_Heigth (void)
 Returns the height of the image plane.
__property double get_Resolution (void)
 Returns the resolution of the image plane.
__property Vector3get_ViewDirection (void)
 Returns the view direction of the image plane.
__property double get_RayDistanceWidth (void)
 Returns the horizontal distance of two adjacent rays.
__property double get_RayDistanceHeigth (void)
 Returns the vertical distance of two adjacent rays.
__property Vector3get_NullPoint (void)
 Returns the null point of the image plane.
__property Vector3get_NullPointMiddlePoint (void)
 Returns the vector between the null point and the middle point of the image plane.
__property Matrix4get_TranslateMatrix (void)
 Returns the translate matrix of the image plane.
__property Matrix4get_RotMatrix (void)
 Returns the rotate matrix of the image plane.
__property Matrix4get_ScaleMatrix (void)
 Returns the scale matrix of the image plane.
__property unsigned short get_VolumeDimension (void) __gc[]
 Returns the volume dimension of the dataset.
__property Vector3get_DefaultPoints (void)[]
 Returns the default points of the image plane.
__property Vector3get_TransformedPoints (void)[]
 Returns the transformed points of the image plane.
__property void set_Width (double n_SideLength)
 Sets the width of the image plane.
__property void set_Heigth (double n_SideLength)
 Sets the height of the image plane.
__property void set_Resolution (double n_Resolution)
 Sets the resolution of the image plane.
__property void set_TranslateMatrix (Matrix4 *n_TranslateMatrix)
 Sets the translate matrix of the image plane.
__property void set_RotMatrix (Matrix4 *n_RotMatrix)
 Sets the rotate matrix of the image plane.
__property void set_ScaleMatrix (Matrix4 *n_ScaleMatrix)
 Sets the scale matrix of the image plane.
__property void set_ViewDirection (Vector3 *n_ViewDirection)
 Sets the view direction of the image plane.
Vector3getHorizontalViewVector (void)
 __property void set_VolumeDimension(unsigned short n_VolumeDimension __gc[]);
Vector3getVerticalViewVector (void)
 Returns the vertical view vector of the image plane.
Vector3getCurrentLeftUpperPoint (void)
 Returns the current left upper point of the image plane.
Vector3getCurrentRightBottomPoint (void)
 Returns the current right bottom point of the image plane.
Vector3getCurrentLeftBottomPoint (void)
 Returns the current left bottom point of the image plane.
Vector3getCurrentRightUpperPoint (void)
 Returns the current right upper point of the image plane.
Vector3getDefaultLeftUpperPoint (void)
 Returns the default left upper point of the image plane.
Vector3getDefaultRightBottomPoint (void)
 Returns the default right bottom point of the image plane.
Vector3getDefaultLeftBottomPoint (void)
 Returns the default left bottom point of the image plane.
Vector3getDefaultRightUpperPoint (void)
 Returns the default right upper point of the image plane.
Vector3getDefaultPoints (void) __gc[]
 Returns the default points of the image plane.
Vector3getDistanceFromOrigin (void)
 Returns the distance between the null point and the middle point of the image plane.
void setDefaultLeftUpperPoint (Vector3 *n_LeftUpper)
 Sets the default left upper point.
void setDefaultRightBottomPoint (Vector3 *n_RightBottom)
 Sets the default right bottom point.
void setDefaultLeftBottomPoint (Vector3 *n_LeftBottom)
 Sets the default left bottom point.
void setDefaultRightUpperPoint (Vector3 *n_RightUpper)
 Sets the default right upper point.
void modifyTranslateMatrix (Matrix4 *n_TranslateMatrix)
 Multiplies the translate matrix of the image plane with the given translate matrix.
void modifyRotMatrix (Matrix4 *n_RotMatrix)
 Multiplies the rotate matrix of the image plane with the given rotate matrix.
void modifyScaleMatrix (Matrix4 *n_ScaleMatrix)
 Multiplies the scale matrix of the image plane with the given scale matrix.
void resetMatrices (void)
 Sets the identity matrix for the translate-, rotate- and scale martrix of the image plane.
void resetPoints (void)
 Resets the transformed points to the default points of the image palne.
bool sameSide (Vector3 *n_Vector1, Vector3 *n_Vector2)
 Desides if two vectors are on the same side of the image plane.

Private Attributes

double m_Width
 The width of the image plane.
double m_Heigth
 The height of the image plane.
double m_Resolution
 The resolution of the image plane.
double m_RayDistanceWidth
 The horizontal distance of two adjacent rays.
double m_RayDistanceHeigth
 The vertical distance of two adjacent rays.
unsigned short m_VolumeDimension __gc []
 The dimension of the volume data.
Vector3m_DefaultPoints []
 The default points of the image plane.
Vector3m_ViewDirection
 The view direction of the image plane.
Vector3m_TransformedPoints []
 The transformed points of the image plane.
Vector3m_NullPointMiddlePoint
 The vector between the null point and the middle point.
Vector3m_NullPoint
 The point on the image plane, which is the intersection point between the image plane and the straight line, which contains the middle point of the volume and is perpendicular to the image plane.
Matrix4m_TranslateMatrix
 The translation matrix of the image plane.
Matrix4m_RotMatrix
 The rotation matrix of the image plane.
Matrix4m_ScaleMatrix
 The scale matrix of the image plane.


Constructor & Destructor Documentation

ImagePlane::ImagePlane void   ) 
 

This is the standard constructor.

This standard constructor initialzed all elements with zero.

ImagePlane::ImagePlane Vector3 n_LeftUpper,
Vector3 n_RightUpper,
Vector3 n_LeftBottom,
Vector3 n_RightBottom,
short  n_Resolution,
unsigned short n_VolumeDimension  __gc[]
 

This constructor initalized the image plane with the given parameters.

Parameters:
n_LeftUpper the left upper point of the image plane.
n_RightUpper the right upper point of the image plane.
n_LeftBottom the left bottom point of the image plane.
n_RightBottom the right bottom point of the image plane.
n_Resolution the resolution of the image plane.
n_VolumeDimension the volume dimension of the dataset.

ImagePlane::ImagePlane Vector3 n_LeftUpper,
Vector3 n_RightUpper,
Vector3 n_LeftBottom,
Vector3 n_RightBottom,
short  n_Resolution,
Vector3 n_ViewDirection,
unsigned short n_VolumeDimension  __gc[]
 

This constructor initalized the image plane with the given parameters.

Parameters:
n_LeftUpper the left upper point of the image plane.
n_RightUpper the right upper point of the image plane.
n_LeftBottom the left bottom point of the image plane.
n_RightBottom the right bottom point of the image plane.
n_Resolution the resolution of the image plane.
n_ViewDirection the view direction of the image plane.
n_VolumeDimension the volume dimension of the dataset.

ImagePlane::ImagePlane ImagePlane n_ImagePlane  ) 
 

This constructor initalized the image plane with a given image plane.

Parameters:
n_ImagePlane the image plane.


Member Function Documentation

Vector3 * ImagePlane::calculateDefaultMiddlePoint void   ) 
 

calculates the default middle point of the image plane.

Returns:
The default middle point.

double ImagePlane::calculateDistance Vector3 n_Point  ) 
 

calculates the distance of the image plane with a given point.

Parameters:
n_Point the point which distance should be calculated.
Returns:
the calculated distance.

Vector3 * ImagePlane::calculateMiddlePoint void   ) 
 

Calculates the middle point of the image plane.

Returns:
The calculated middle point.

void ImagePlane::calculateNewParameters void   ) 
 

Calculates the view direction, the width and height of the image plane and the ray distance.

void ImagePlane::calculateNullPoint void   ) 
 

Calculates the null point.

void ImagePlane::calculateNullPointMiddlePoint void   ) 
 

Calculates the vector between the null point and the middle point.

void ImagePlane::calculateRayDistance void   ) 
 

Calculates the ray dstance.

void ImagePlane::calculateViewDirection void   ) 
 

Calculates the vie direction.

Vector3 * ImagePlane::get_DefaultPoints void   ) 
 

Returns the default points of the image plane.

Returns:
The default points of the image plane.

double ImagePlane::get_Heigth void   ) 
 

Returns the height of the image plane.

Returns:
The height of the image plane.

Vector3 * ImagePlane::get_NullPoint void   ) 
 

Returns the null point of the image plane.

Returns:
The null point of the image plane.

Vector3 * ImagePlane::get_NullPointMiddlePoint void   ) 
 

Returns the vector between the null point and the middle point of the image plane.

Returns:
The vector between the null point and the middle point of the image plane.

double ImagePlane::get_RayDistanceHeigth void   ) 
 

Returns the vertical distance of two adjacent rays.

Returns:
The vertical distance of two adjacent rays.

double ImagePlane::get_RayDistanceWidth void   ) 
 

Returns the horizontal distance of two adjacent rays.

Returns:
The horizontal distance of two adjacent rays.

double ImagePlane::get_Resolution void   ) 
 

Returns the resolution of the image plane.

Returns:
The resolution of the image plane.

Matrix4 * ImagePlane::get_RotMatrix void   ) 
 

Returns the rotate matrix of the image plane.

Returns:
The rotate matrix of the image plane.

Matrix4 * ImagePlane::get_ScaleMatrix void   ) 
 

Returns the scale matrix of the image plane.

Returns:
The scale matrix of the image plane.

Vector3 * ImagePlane::get_TransformedPoints void   ) 
 

Returns the transformed points of the image plane.

Returns:
The transformed points of the image plane.

Matrix4 * ImagePlane::get_TranslateMatrix void   ) 
 

Returns the translate matrix of the image plane.

Returns:
The translate matrix of the image plane.

Vector3 * ImagePlane::get_ViewDirection void   ) 
 

Returns the view direction of the image plane.

Returns:
The view direction of the image plane.

unsigned short ImagePlane::get_VolumeDimension void   ) 
 

Returns the volume dimension of the dataset.

Returns:
The volume dimension of the dataset.

double ImagePlane::get_Width void   ) 
 

Returns the width of the image plane.

Returns:
The width of the image plane.

Vector3 * ImagePlane::getCurrentLeftBottomPoint void   ) 
 

Returns the current left bottom point of the image plane.

Returns:
The current left bottom point of the image plane.

Vector3 * ImagePlane::getCurrentLeftUpperPoint void   ) 
 

Returns the current left upper point of the image plane.

Returns:
The current left upper point of the image plane.

Vector3 * ImagePlane::getCurrentRightBottomPoint void   ) 
 

Returns the current right bottom point of the image plane.

Returns:
The current right bottom point of the image plane.

Vector3 * ImagePlane::getCurrentRightUpperPoint void   ) 
 

Returns the current right upper point of the image plane.

Returns:
The current right upper point of the image plane.

Vector3 * ImagePlane::getDefaultLeftBottomPoint void   ) 
 

Returns the default left bottom point of the image plane.

Returns:
The default left bottom point of the image plane.

Vector3 * ImagePlane::getDefaultLeftUpperPoint void   ) 
 

Returns the default left upper point of the image plane.

Returns:
The default left upper point of the image plane.

Vector3 * ImagePlane::getDefaultPoints void   ) 
 

Returns the default points of the image plane.

Returns:
The default points of the image plane.

Vector3 * ImagePlane::getDefaultRightBottomPoint void   ) 
 

Returns the default right bottom point of the image plane.

Returns:
The default right bottom point of the image plane.

Vector3 * ImagePlane::getDefaultRightUpperPoint void   ) 
 

Returns the default right upper point of the image plane.

Returns:
The default right upper point of the image plane.

Vector3 * ImagePlane::getDistanceFromOrigin void   ) 
 

Returns the distance between the null point and the middle point of the image plane.

Returns:
The distance between the null point and the middle point of the image plane.

Vector3 * ImagePlane::getHorizontalViewVector void   ) 
 

__property void set_VolumeDimension(unsigned short n_VolumeDimension __gc[]);

/** Returns the horizontal view vector of the image plane.

Returns:
The horizontal view vector of the image plane.

Vector3 * ImagePlane::getVerticalViewVector void   ) 
 

Returns the vertical view vector of the image plane.

Returns:
The vertical view vector of the image plane.

void ImagePlane::modifyRotMatrix Matrix4 n_RotMatrix  ) 
 

Multiplies the rotate matrix of the image plane with the given rotate matrix.

Parameters:
n_RotMatrix the rotate matrix

void ImagePlane::modifyScaleMatrix Matrix4 n_ScaleMatrix  ) 
 

Multiplies the scale matrix of the image plane with the given scale matrix.

Parameters:
n_ScaleMatrix the scale matrix

void ImagePlane::modifyTranslateMatrix Matrix4 n_TranslateMatrix  ) 
 

Multiplies the translate matrix of the image plane with the given translate matrix.

Parameters:
n_TranslateMatrix the translate matrix

bool ImagePlane::sameSide Vector3 n_Vector1,
Vector3 n_Vector2
 

Desides if two vectors are on the same side of the image plane.

Parameters:
n_Vector1 first vector
n_Vector2 second vector
Returns:
True, if both vectors are on the same side of the image plane

void ImagePlane::set_Heigth double  n_SideLength  ) 
 

Sets the height of the image plane.

Parameters:
n_SideLength the sidelength of the image plane.

void ImagePlane::set_Resolution double  n_Resolution  ) 
 

Sets the resolution of the image plane.

Parameters:
n_Resolution the resolution of the image plane.

void ImagePlane::set_RotMatrix Matrix4 n_RotMatrix  ) 
 

Sets the rotate matrix of the image plane.

Parameters:
n_RotMatrix the rotate matrix of the image plane.

void ImagePlane::set_ScaleMatrix Matrix4 n_ScaleMatrix  ) 
 

Sets the scale matrix of the image plane.

Parameters:
n_ScaleMatrix the scale matrix of the image plane.

void ImagePlane::set_TranslateMatrix Matrix4 n_TranslateMatrix  ) 
 

Sets the translate matrix of the image plane.

Parameters:
n_TranslateMatrix the translate matrix of the image plane.

void ImagePlane::set_ViewDirection Vector3 n_ViewDirection  ) 
 

Sets the view direction of the image plane.

Parameters:
n_ViewDirection the view direction of the image plane.

void ImagePlane::set_Width double  n_SideLength  ) 
 

Sets the width of the image plane.

Parameters:
n_SideLength the sidelength of the image plane.

void ImagePlane::setDefaultLeftBottomPoint Vector3 n_LeftBottom  ) 
 

Sets the default left bottom point.

Parameters:
n_LeftBottom the default left bottom point.

void ImagePlane::setDefaultLeftUpperPoint Vector3 n_LeftUpper  ) 
 

Sets the default left upper point.

Parameters:
n_LeftUpper the default left upper point.

void ImagePlane::setDefaultRightBottomPoint Vector3 n_RightBottom  ) 
 

Sets the default right bottom point.

Parameters:
n_RightBottom the default right bottom point.

void ImagePlane::setDefaultRightUpperPoint Vector3 n_RightUpper  ) 
 

Sets the default right upper point.

Parameters:
n_RightUpper right default left upper point.

void ImagePlane::transformImagePlane void   ) 
 

Does all image plane transformations according to the transform-, rotate- and scale matrix.


The documentation for this class was generated from the following files:
Generated on Sat Apr 9 11:51:01 2005 for RayCaster wiht Importance Driven Volume Rendering (IDVR) by  doxygen 1.4.1