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

IDVR.Tools.OpenGLTools.ProxyObjectGL Class Reference

#include <ProxyObjectGL.h>

List of all members.


Detailed Description

Class for drawing the proxy object onto the cancas.

This class is part of the OpenGLTools namespace which is actually a subnamespace of the main namespace Tools.

The task of this class is not included in the actual rendering process and the succeeding drawing, but to display a proxy object with the current rotaion status which will be also used for the actual rendering of the volume data set to help the user during user-defined rotation.

As every other class of the subpackage OpenGLTools this class has the base class OpenGLCode of the CSOpenGL library to correctly implement the OpenGL code Which will be handled by the OpenGLPanel which will show the specific drawing results on the screen.

See also:
OpenGLCanvas - the GUI class for the canvas with its draw control
Author:
Bernhard Pflugfelder
Version:
1.0
Date:
02-20-2005


Public Member Functions

 ProxyObjectGL (void)
 This is the standard constructor.
 ProxyObjectGL (int n_CanvasLength, float n_RelLength __gc[])
 Constructor initialization with the size of the canvas.
 ProxyObjectGL (int n_CanvasLength, float n_RelLength __gc[], Matrix4 *n_TransMatrix)
 Constructor initialization with the size of the canvas and the basic transformation matrix.
 ~ProxyObjectGL (void)
 This is the standard deconstructor.
virtual void Init (void)
 This function overwrites the base init funtion of the class OpenGLCode.
virtual void Draw (void)
 This function overwrites the base draw funtion of the class OpenGLCode.
__property void set_TransformationMatrix (Matrix4 *n_TransMatrix)
 Sets a new transformation matrix for the proxy object.
__property void set_NewCanvasSize (int n_CanvasLength)
 Sets a new transformation matrix for the proxy object.
__property void set_CanvasBackColor (Color n_CanvasBackColor)
 Sets a new canvas background color.
__property Matrix4get_TransformationMatrix (void)
 Returns the current transformation matrix of the proxy object.
void setNewRelLengthValues (float n_RelLength __gc[])
 Sets a new relative length values for the proxy object.
void setLightModel (Light *n_LightModel)
 Sets a new light user-defined light model.

Private Member Functions

void defineCuboidObject (void)
 Defines the standard proxy object in OpenGL as an OpenGL display list.

Private Attributes

float m_RelLength __gc []
 Saves the relative length of the proxy object (independly from the current canvas size).
float m_AbsLength __gc []
 Saves the absolute length of the proxy object (depends on the current canvas size).
float m_CanvasBackColor __gc []
 Saves the current canvas background color.
int m_CanvasLength
 Saves the width of the current canvas.
unsigned int m_CuboidObject
 Saves the index of the used OpenGL texture object for the proxy object.
Matrix4m_TransMatrix
 Saves the current universal transformation matrix of the proxy object.
Matrix4m_TranslateImagePlaneMatrix
 Saves the current translation matrix of the proxy object (the same for the image plane).
Matrix4m_RotImagePlaneMatrix
 Saves the current rotation matrix of the proxy object (the same for the image plane).
Matrix4m_ScaleImagePlaneMatrix
 Saves the current scale matrix of the proxy object (the same for the image plane).
Lightm_LightModel
 Saves the current light model with all needed light attributes.


Constructor & Destructor Documentation

ProxyObjectGL::ProxyObjectGL void   ) 
 

This is the standard constructor.

All member variables of this new instance will be set to zero/null.

ProxyObjectGL::ProxyObjectGL int  n_CanvasLength,
float n_RelLength  __gc[]
 

Constructor initialization with the size of the canvas.

All member variables will be set to zero besides the canvas length member variable and proxy object relative-length member variable.

Parameters:
n_CanvasLength the width of the current canvas.
n_RelLength the relative length of the proxy object.

ProxyObjectGL::ProxyObjectGL int  n_CanvasLength,
float n_RelLength  __gc[],
Matrix4 n_TransMatrix
 

Constructor initialization with the size of the canvas and the basic transformation matrix.

All member variables will be set to zero besides the canvas length member variable and proxy object relative-length member variable. Additionally the basic transformation matrix of the proxy object will be set with the corresponding parameter.

Parameters:
n_CanvasLength the width of the current canvas.
n_RelLength the relative length of the proxy object.
n_TransMatrix the basic transformation matrix of the proxy object.

ProxyObjectGL::~ProxyObjectGL void   ) 
 

This is the standard deconstructor.

All member variables will be deleted.


Member Function Documentation

void ProxyObjectGL::defineCuboidObject void   )  [private]
 

Defines the standard proxy object in OpenGL as an OpenGL display list.

void ProxyObjectGL::Draw void   )  [virtual]
 

This function overwrites the base draw funtion of the class OpenGLCode.

It contains the actual drawing code in OpenGL and also performs the code.

Matrix4 * ProxyObjectGL::get_TransformationMatrix void   ) 
 

Returns the current transformation matrix of the proxy object.

Returns:
The transformation matrix as an instance of the class Matrix4.

void ProxyObjectGL::Init void   )  [virtual]
 

This function overwrites the base init funtion of the class OpenGLCode.

It contains the actual initialization code in OpenGL and also performs the code.

void ProxyObjectGL::set_CanvasBackColor Color  n_CanvasBackColor  ) 
 

Sets a new canvas background color.

Parameters:
n_CanvasBackColor the new canvas background color as an instance of the standard color class.

void ProxyObjectGL::set_NewCanvasSize int  n_CanvasLength  ) 
 

Sets a new transformation matrix for the proxy object.

Parameters:
n_CanvasLength the transformation matrix of the proxy object.

void ProxyObjectGL::set_TransformationMatrix Matrix4 n_TransMatrix  ) 
 

Sets a new transformation matrix for the proxy object.

Parameters:
n_TransMatrix the transformation matrix of the proxy object.

void ProxyObjectGL::setLightModel Light n_LightModel  ) 
 

Sets a new light user-defined light model.

Parameters:
n_LightModel the new light model which conatins light direction and color.

void ProxyObjectGL::setNewRelLengthValues float n_RelLength  __gc[]  ) 
 

Sets a new relative length values for the proxy object.

Parameters:
n_RelLength the relative length of the proxy object.


Member Data Documentation

Light* IDVR.Tools.OpenGLTools.ProxyObjectGL.m_LightModel [private]
 

Saves the current light model with all needed light attributes.

This light attributes are direction and color.


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