|
Enumerations |
| enum | EMouseState { MOUSE_NORMAL = 0,
MOUSE_MOVE,
MOUSE_ZOOM
} |
| | State of the mouse buttons. More...
|
| enum | ESliceColoring { COL_GRAYSCALE = 1,
COL_PSEUDO,
COL_SEGMENTED,
COL_SEGMENTED2
} |
| | Type of the slice coloring method. More...
|
Functions |
| void | compileMesh (ESliceColoring Coloring, mds::seg::CTriMesh *pMesh) |
| | Triangular mesh creation.
|
| void | createTexture (ESliceColoring Coloring, mds::img::CSlice *pSlice) |
| | Texture creation.
|
| int | main (int argc, char *argv[]) |
| void | onDisplay (void) |
| void | onInit () |
| | Callback functions.
|
| void | onKeyboard (unsigned char ucKey, int iX, int iY) |
| void | onMouseButton (int iButton, int iState, int x, int y) |
| void | onMouseMotion (int x, int y) |
| void | onResize (int iWidth, int iHeight) |
| void | pseudoColor (double dSegment, unsigned char *pucRGB) |
| void | pseudoColor2 (double dSegment, unsigned char *pucRGB) |
Variables |
| const std::string | COL_GRAYSCALE_NAME = "grayscale" |
| | Allowed 'coloring' argument values.
|
| const std::string | COL_PSEUDO_NAME = "pseudo" |
| const std::string | COL_SEGMENTED2_NAME = "segmented2" |
| const std::string | COL_SEGMENTED_NAME = "segmented" |
| const unsigned int | DEFAULT_ALPHA = 128 |
| | Default alpha argument value.
|
| const std::string | DEFAULT_COLORING_NAME = COL_GRAYSCALE_NAME |
| | Default color argument.
|
| ESliceColoring | eColoring |
| | Coloring method.
|
| EMouseState | eMouseState = MOUSE_NORMAL |
| | State of the mouse buttons.
|
| GLfloat | fGLFarPlane = 2048.0f |
| const GLfloat | fGLMaxZoom = 100.f |
| | Maximal zoom factor.
|
| GLfloat | fGLMeshAlpha |
| | Texture/polygon color alpha component.
|
| GLfloat | fGLMeshXSize |
| | Center point of the triangular mesh.
|
| GLfloat | fGLMeshYSize |
| const GLfloat | fGLMinZoom = 0.2f |
| | Minimal zoom factor.
|
| GLfloat | fGLNearPlane = 1.0f |
| | Near and far view frustum planes.
|
| const GLfloat | fGLPosition = fGLFarPlane * -0.5 |
| | Default camera position in 3D space.
|
| GLfloat | fGLTextureAlpha |
| | Texture/polygon color alpha component.
|
| GLfloat | fGLTextureXSize |
| | Size of the used texture part.
|
| GLfloat | fGLTextureYSize |
| GLfloat | fGLZoom = 1.0f |
| | Zoom factor.
|
| const GLfloat | fGLZoomStep = 0.01f |
| | Zooming step.
|
| const char | GLUT_WINDOW_TITLE [] = "MDSTk Triangular Mesh View Window" |
| | GLUT window title.
|
| const int | GLUT_WINDOW_XPOS = 100 |
| | Default GLUT window position.
|
| int | GLUT_WINDOW_XSIZE = 512 |
| | Default GLUT window size.
|
| const int | GLUT_WINDOW_YPOS = 100 |
| int | GLUT_WINDOW_YSIZE = 512 |
| int | iChannels |
| | The number of input channels.
|
| int | iGlutWindowXSize = GLUT_WINDOW_XSIZE |
| | Current GLUT window size.
|
| int | iGlutWindowYSize = GLUT_WINDOW_YSIZE |
| int | iNewX = 0 |
| int | iNewY = 0 |
| int | iNewZ = 0 |
| int | iOldX = 0 |
| int | iOldY = 0 |
| int | iOldZ = 0 |
| int | iPosX |
| | Mouse cursor position.
|
| int | iPosY |
| int | iPosZ |
| const int | MAX_CHANNELS = 2 |
| | Maximal number of input channels.
|
| const std::string | MODULE_ARGUMENT_ALPHA = "alpha" |
| const std::string | MODULE_ARGUMENT_COLORING = "coloring" |
| | Additional arguments.
|
| const std::string | MODULE_ARGUMENTS = "coloring:alpha" |
| | Additional command line arguments.
|
| const std::string | MODULE_DESCRIPTION = "Module visualizes an input triangular mesh and underlying image using GLUT and OpenGL." |
| | Module description.
|
| const unsigned int | PIXEL_MAX = mds::img::CPixelTraits<mds::img::tPixel8>::getMax() |
| | Maximum pixel value.
|
| unsigned int | uAlpha |
| | Alpha.
|
| GLuint | uGLLineList |
| | Display list number.
|
| GLuint | uGLTexture |
| | Texture number.
|
| GLuint | uGLTriList |