Volume Medical Manipulation Toolkit 2.0
|
This class provide a Control Volume as used for rendering tags as lines, measurements, cropped slices, etc. More...
#include <vmtkControlVolume.h>
Public Member Functions | |
ControlVolume (DCMDataType *data, GLuint controlVolumeTextureID) | |
~ControlVolume () | |
void | clearControlVolume (UINT8 channel, UINT8 tag) |
Clean the Selection Volume. | |
void | clearMesh () |
void | clearPOI () |
void | clearPOR () |
list< MeshCell >::iterator | getMeshBeginIterator () |
list< MeshCell >::iterator | getMeshEndIterator () |
int | getMeshSize () |
UINT8 | getTag (Point3D point3D, UINT32 channel) |
UINT8 | getTag (UINT32 width, UINT32 height, UINT32 depth, UINT32 channel) |
UINT8 | getTag (UINT32 position, UINT32 channel) |
UINT8 | getBrushSize () |
void | addVoxelToMesh (Point3D coords, Point3D normal) |
wxTreeItemId | addPOI () |
wxTreeItemId | addPOR () |
wxTreeItemId | addLINE () |
void | replaceTag (UINT8 channel, UINT8 src, UINT8 dst) |
void | setTagCursor3D (Point3D point3D, UINT32 channel, UINT8 tag) |
void | setTag (Point3D point3D, UINT32 channel, UINT8 tag) |
void | setTag (UINT32 width, UINT32 height, UINT32 depth, UINT32 channel, UINT8 tag) |
void | setTreeCtrl (wxTreeCtrl *tree_ctrl) |
void | setPORTreeId (wxTreeItemId POR_id) |
void | setPOITreeId (wxTreeItemId POI_id) |
void | setLINETreeId (wxTreeItemId LINE_id) |
void | setTreePoint (wxTreeItemId tree_item, Point3D point3D) |
void | setMeasurementsGrid (wxGrid *grid) |
void | setBrushSize (UINT8 size) |
void | removeTreeItem (wxTreeItemId node_id) |
void | calcMeasurementsGrid () |
float | calcDistance (Point3D p1, Point3D p2) |
bool | LoadControlVolume () |
Create a image volume texure. | |
void | organizeMesh () |
void | printMesh () |
void | printPointsLists () |
This class provide a Control Volume as used for rendering tags as lines, measurements, cropped slices, etc.
This class was RGBA 8bits encoded.
ControlVolume::ControlVolume | ( | DCMDataType * | data, |
GLuint | controlVolumeTextureID | ||
) |
Constructor
Load the file in GPU
ControlVolume::~ControlVolume | ( | ) |
Destructor
void ControlVolume::clearControlVolume | ( | UINT8 | channel, |
UINT8 | tag | ||
) |
bool ControlVolume::LoadControlVolume | ( | ) |
Create a image volume texure.
Load Selection Volume as texture on GPU
Free the texture memory
Binding textures to sampler shader
(2) Wrapping effects when texture coordinates out the range [0,1]:
Set the texture combiner function: replace the color values of the fragment being processed
Define a 1D texture from a sequence of floating-point values in transferFunc> grouped into sets of four values: one level of resolution, RGBA(4) components, <w> elements with no border.