SceneRender Class Reference
#include <SceneRender.h>
List of all members.
Public Member Functions |
| SceneRender (SourceLight *_light, Shaders *_shader, int _renderCoordSystem, int _enablePostprocessing, int _showTransferFunc, float *_clippingX, float *_clippingY, float *_clippingZ, float *_clippingInversX, float *_clippingInversY, float *_clippingInversZ) |
| ~SceneRender () |
void | render () |
void | drawBox () |
void | drawScene () |
void | updateFBOs () |
void | drawCoordSys (bool value) |
void | deleteTextures () |
void | setClippingX (float value) |
void | setClippingY (float value) |
void | setClippingZ (float value) |
void | setClippingInvX (float value) |
void | setClippingInvY (float value) |
void | setClippingInvZ (float value) |
void | setPostProcessing (bool value) |
void | setShowTransferFunc (bool value) |
float | getClippingX () |
float | getClippingY () |
float | getClippingZ () |
float | getClippingInvX () |
float | getClippingInvY () |
float | getClippingInvZ () |
Protected Member Functions |
void | drawLightVector () |
void | drawCoordOrigin () |
Detailed Description
The class for rendering the 3D scene
Constructor & Destructor Documentation
SceneRender::SceneRender |
( |
SourceLight * |
_light, |
|
|
Shaders * |
_shader, |
|
|
int |
_renderCoordSystem, |
|
|
int |
_enablePostprocessing, |
|
|
int |
_showTransferFunc, |
|
|
float * |
_clippingX, |
|
|
float * |
_clippingY, |
|
|
float * |
_clippingZ, |
|
|
float * |
_clippingInversX, |
|
|
float * |
_clippingInversY, |
|
|
float * |
_clippingInversZ | |
|
) |
| | |
Construct a new SceneRender object
- Parameters:
-
| _light | Pointer to the Sourcelight object |
| _shader | Pointer to the shader object |
| _renderCoordSystem | Decision, if the coordinate system should be drawn (0 = no, 1 = yes) |
| _enablePostprocessing | Decision, if post processing should be applied (0 = no, 1 = yes) |
| _showTransferFunc | Decision, if the transferfunction is shown (0 = no, 1 = yes) |
| _clippingX | Pointer to the clipping value of the x-direction |
| _clippingY | Pointer to the clipping value of the y-direction |
| _clippingZ | Pointer to the clipping value of the z-direction |
| _clippingInversX | Pointer to the clipping value of negativ x-direction |
| _clippingInversY | Pointer to the clipping value of negativ y-direction |
| _clippingInversZ | Pointer to the clipping value of negativ z-direction |
SceneRender::~SceneRender |
( |
|
) |
|
Destroy the object and delete all tectures
Member Function Documentation
void SceneRender::deleteTextures |
( |
|
) |
|
Delete all textures that are maintained from that object
void SceneRender::drawBox |
( |
|
) |
|
Draw a box and apply clipping to it
void SceneRender::drawCoordOrigin |
( |
|
) |
[protected] |
Draw the origin of the coordinate system
void SceneRender::drawCoordSys |
( |
bool |
value |
) |
|
Value that says, if the coordinate axis should be drawn
- Parameters:
-
| value | True, if the coordinate should be drawn, false otherwise |
void SceneRender::drawLightVector |
( |
|
) |
[protected] |
void SceneRender::drawScene |
( |
|
) |
|
float SceneRender::getClippingInvX |
( |
|
) |
|
Return the clipping value in negativ x-direction
- Parameters:
-
| Clipping | value in negativ x-direction |
float SceneRender::getClippingInvY |
( |
|
) |
|
Return the clipping value in negativ y-direction
- Parameters:
-
| Clipping | value in negativ y-direction |
float SceneRender::getClippingInvZ |
( |
|
) |
|
Return the clipping value in negativ z-direction
- Parameters:
-
| Clipping | value in negativ z-direction |
float SceneRender::getClippingX |
( |
|
) |
|
Return the clipping value in x-direction
- Parameters:
-
| Clipping | value in x-direction |
float SceneRender::getClippingY |
( |
|
) |
|
Return the clipping value in y-direction
- Parameters:
-
| Clipping | value in y-direction |
float SceneRender::getClippingZ |
( |
|
) |
|
Return the clipping value in z-direction
- Parameters:
-
| Clipping | value in z-direction |
void SceneRender::render |
( |
|
) |
|
Render the whole 3D-scene
void SceneRender::setClippingInvX |
( |
float |
value |
) |
|
Set the clipping value in negativ x-direction
- Parameters:
-
| value | Clipping plane in negativ x-direction |
void SceneRender::setClippingInvY |
( |
float |
value |
) |
|
Set the clipping value in negativ y-direction
- Parameters:
-
| value | Clipping plane in negativ y-direction |
void SceneRender::setClippingInvZ |
( |
float |
value |
) |
|
Set the clipping value in negativ z-direction
- Parameters:
-
| value | Clipping plane in negativ z-direction |
void SceneRender::setClippingX |
( |
float |
value |
) |
|
Set the clipping value in x-direction
- Parameters:
-
| value | Clipping plane in x-direction |
void SceneRender::setClippingY |
( |
float |
value |
) |
|
Set the clipping value in y-direction
- Parameters:
-
| value | Clipping plane in y-direction |
void SceneRender::setClippingZ |
( |
float |
value |
) |
|
Set the clipping value in z-direction
- Parameters:
-
| value | Clipping plane in z-direction |
void SceneRender::setPostProcessing |
( |
bool |
value |
) |
|
Set if the postprocessing should be applied
- Parameters:
-
| value | True, if postprocessing should be applied, otherwise false |
void SceneRender::setShowTransferFunc |
( |
bool |
value |
) |
|
Set if the transfer function is visible or not
- Parameters:
-
| value | True, if the transfer function is visible, otherwise false |
void SceneRender::updateFBOs |
( |
|
) |
|
Specify that the Frame buffer objects for the direction should be updated at the next frame
The documentation for this class was generated from the following files:
- D:/C++/Visualisierung/vislab/src/SceneRender.h
- D:/C++/Visualisierung/vislab/src/SceneRender.cpp