Volume Medical Manipulation Toolkit 2.0
|
This class provide method for create an OpenGL context and render the volume. More...
#include <wxGLVolumeRender.h>
Public Member Functions | |
wxGLVolumeRender (wxWindow *parent, int *args, DCMDataType *data, Interactions *interactions, int canvasType, int initializedGL, string currentPath) | |
~wxGLVolumeRender () | |
void | redering_mesh () |
void | RenderVoxelize (wxDC &dc) |
Volume * | getVolume () |
ControlVolume * | getControlVolume () |
DCMDataType * | getData () |
GLint | getCanvasType () |
void | setCursor3D (bool cursor3D) |
Static Public Member Functions | |
static wxGLContext * | getContext3D () |
static GLuint | getVolumeTextureID () |
static GLuint | getControlVolumeTextureID () |
static GLuint | getTF1DTextureID_CP () |
static GLuint | getTF1DTextureID_WI () |
static void | setDrawPlaneSide1 (int coord, bool value) |
static void | setDrawPlaneSide2 (int coord, bool value) |
static void | setClippingPlaneSide1 (int coord, bool value) |
static void | setClippingPlaneSide2 (int coord, bool value) |
static void | setCursorPosition (int coord, float value) |
static void | getCursorPosition (float *cursorPosition) |
static void | setPlanePosition (int coord, float value) |
static void | getPlanePosition (float *cursorPosition) |
This class provide method for create an OpenGL context and render the volume.
wxGLVolumeRender::wxGLVolumeRender | ( | wxWindow * | parent, |
int * | args, | ||
DCMDataType * | data, | ||
Interactions * | interactions, | ||
int | canvasType, | ||
int | initializedGL, | ||
string | currentPath | ||
) |
Quadric objects
Shader setups
Create wxGLcontext
Initialize GLEW
Read shader's source
Instantiate several render objects
Setup uniform variables to shader programs
wxGLVolumeRender::~wxGLVolumeRender | ( | ) |
Destroy a quadric objects
Free Frame Buffer Object
Free textures from graphics card