Opengl Render tailored specifically for CUDARayCasting test. It can render these 2d geometry:
#include <Render.h>
Public Member Functions | |
| Render (int width, int height) | |
| Constructor. | |
| ~Render (void) | |
| Destructor. | |
| void | Initialize (boost::shared_array< unsigned char > dataPtr, int texWidth, int texHeight, int texDepth, boost::shared_array< float > transferFunctionPtr, int transferFunctionWidth, float step, int stepNumber, const Matrix4x4 &viewMatrix, const Matrix4x4 &volumeMatrix, const Vector3 &bboxMin, const Vector3 &bboxMax) |
| Loads a default opengl configuration. | |
| void | Reshape (int width, int height) |
| Reshapes opengl viewport and initialize states. | |
| void | BeginFrame (void) |
| Begins render frame. | |
| void | EndFrame (void) |
| Ends render frame. | |
| void | DrawVolume (void) |
| void | UpdateTransferFunction (void) |
| void | SetStep (float step) |
| void | SetStepNumber (int stepNumber) |
| void | DrawString (const std::string &s, int x, int y, const Vector3 &color) |
| void | SetCamera (const Matrix4x4 &viewMatrix) |
| void | SetVolumeMatrix (const Matrix4x4 &volumeMatrix) |
Opengl Render tailored specifically for CUDARayCasting test. It can render these 2d geometry:
| void Render::Initialize | ( | boost::shared_array< unsigned char > | dataPtr, | |
| int | texWidth, | |||
| int | texHeight, | |||
| int | texDepth, | |||
| boost::shared_array< float > | transferFunctionPtr, | |||
| int | transferFunctionWidth, | |||
| float | step, | |||
| int | stepNumber, | |||
| const Matrix4x4 & | viewMatrix, | |||
| const Matrix4x4 & | volumeMatrix, | |||
| const Vector3 & | bboxMin, | |||
| const Vector3 & | bboxMax | |||
| ) |
Loads a default opengl configuration.
| width | render window width | |
| height | render window height |
glewGetErrorString(err)
TODO Check CUDA capabilities
| void Render::Reshape | ( | int | width, | |
| int | height | |||
| ) |
Reshapes opengl viewport and initialize states.
| width | render window width | |
| height | render window height |
1.6.2