#include <ProxyObjectGL.h>
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.
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 Matrix4 * | get_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. | |
Matrix4 * | m_TransMatrix |
Saves the current universal transformation matrix of the proxy object. | |
Matrix4 * | m_TranslateImagePlaneMatrix |
Saves the current translation matrix of the proxy object (the same for the image plane). | |
Matrix4 * | m_RotImagePlaneMatrix |
Saves the current rotation matrix of the proxy object (the same for the image plane). | |
Matrix4 * | m_ScaleImagePlaneMatrix |
Saves the current scale matrix of the proxy object (the same for the image plane). | |
Light * | m_LightModel |
Saves the current light model with all needed light attributes. |
|
This is the standard constructor. All member variables of this new instance will be set to zero/null. |
|
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.
|
|
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.
|
|
This is the standard deconstructor. All member variables will be deleted. |
|
Defines the standard proxy object in OpenGL as an OpenGL display list.
|
|
This function overwrites the base draw funtion of the class OpenGLCode. It contains the actual drawing code in OpenGL and also performs the code. |
|
Returns the current transformation matrix of the proxy object.
|
|
This function overwrites the base init funtion of the class OpenGLCode. It contains the actual initialization code in OpenGL and also performs the code. |
|
Sets a new canvas background color.
|
|
Sets a new transformation matrix for the proxy object.
|
|
Sets a new transformation matrix for the proxy object.
|
|
Sets a new light user-defined light model.
|
|
Sets a new relative length values for the proxy object.
|
|
Saves the current light model with all needed light attributes. This light attributes are direction and color. |