VMTK
vmtkRender3D Class Reference

Public Member Functions

 vmtkRender3D ()
 vmtkRenderer3D constructor
 
void setAcquisition (Import::ImgFormat *acq1, Import::ImgFormat *acq2)
 sets the volumes to be registered More...
 
void initialize (int width, int height)
 initializes 3D volume rendering
 
void render ()
 renders the data with the specified redering mode.
 
void preRender (vmath::Matrix4f mvp)
 renders the color cube in the fbos. More...
 
void resize (int width, int height)
 resizes the dimensions of the display More...
 
void setRotation (float ax, float ay, float az)
 sets the rotation matrix. More...
 
void setThreshold (int threshold)
 sets the threshold. More...
 
void setBlender (float blender)
 sets the blender factor. More...
 
void itlDrawColorCube (vmath::Matrix4f mvp)
 draws a unit cube to get the front and the back depth maps of the volume cube, after updating the clipping plane values. More...
 
void initDrawCube ()
 initializes the geometry of a cube to be rendered for getting back and front depth maps.
 
bool readMatrix (const char *s)
 reads the co-register matrix. More...
 
void setClipLeftX (float left_x)
 sets the clipping plane. More...
 
int getMaxSliceLeft ()
 gets the maximum number of the slices from the axis X.
 

Detailed Description

Definition at line 13 of file vmtkRender3D.h.

Member Function Documentation

◆ itlDrawColorCube()

void vmtkRender3D::itlDrawColorCube ( vmath::Matrix4f  mvp)

draws a unit cube to get the front and the back depth maps of the volume cube, after updating the clipping plane values.

Parameters
[in]mvpprojection*modelview matrix

Definition at line 400 of file vmtkRender3D.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ preRender()

void vmtkRender3D::preRender ( vmath::Matrix4f  mvp)

renders the color cube in the fbos.

Parameters
[in]modelviewmatrix

Definition at line 296 of file vmtkRender3D.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readMatrix()

bool vmtkRender3D::readMatrix ( const char *  s)

reads the co-register matrix.

Parameters
[in]co-registermatrix file

Definition at line 497 of file vmtkRender3D.cpp.

◆ resize()

void vmtkRender3D::resize ( int  width,
int  height 
)

resizes the dimensions of the display

Parameters
[in]wwidth of image
[in]hheight of image

Definition at line 384 of file vmtkRender3D.cpp.

◆ setAcquisition()

void vmtkRender3D::setAcquisition ( Import::ImgFormat acq1,
Import::ImgFormat acq2 
)

sets the volumes to be registered

Parameters
[in]volume1 (reference)
[in]volume2 (float)

Definition at line 13 of file vmtkRender3D.cpp.

◆ setBlender()

void vmtkRender3D::setBlender ( float  blender)

sets the blender factor.

Parameters
[in]blenderfactor

Definition at line 61 of file vmtkRender3D.cpp.

◆ setClipLeftX()

void vmtkRender3D::setClipLeftX ( float  left_x)

sets the clipping plane.

Parameters
[in]slice

Definition at line 527 of file vmtkRender3D.cpp.

◆ setRotation()

void vmtkRender3D::setRotation ( float  ax,
float  ay,
float  az 
)

sets the rotation matrix.

Parameters
[in]rotationmatrix

Definition at line 51 of file vmtkRender3D.cpp.

◆ setThreshold()

void vmtkRender3D::setThreshold ( int  threshold)

sets the threshold.

Parameters
[in]threshold

Definition at line 56 of file vmtkRender3D.cpp.


The documentation for this class was generated from the following files: