Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::DVRRenderSlice Class Reference

#include <OSGDVRRenderSlice.h>

List of all members.

Public Types

enum  Orientation { UNDEFINED, XY, XZ, YZ }

Public Member Functions

 DVRRenderSlice (void)
 ~DVRRenderSlice (void)
void render (void) const
void clear (void)

Public Attributes

GLdoublevertexCombineData
UInt32 numVertexCombineData
UInt32 maxVertexCombineData
bool directRender
UInt32 numPerVertexData
Orientation orientation


Detailed Description

Definition at line 40 of file OSGDVRRenderSlice.h.


Member Enumeration Documentation

enum osg::DVRRenderSlice::Orientation
 

Enumerator:
UNDEFINED 
XY 
XZ 
YZ 

Definition at line 44 of file OSGDVRRenderSlice.h.

00045     {
00046         UNDEFINED, 
00047         XY, 
00048         XZ, 
00049         YZ
00050     };


Constructor & Destructor Documentation

osg::DVRRenderSlice::DVRRenderSlice void   ) 
 

Definition at line 25 of file OSGDVRRenderSlice.cpp.

References maxVertexCombineData, numVertexCombineData, and vertexCombineData.

00026 {
00027     numVertexCombineData = 0;
00028     maxVertexCombineData = 0;
00029     
00030     vertexCombineData    = NULL;
00031 }

osg::DVRRenderSlice::~DVRRenderSlice void   ) 
 

Definition at line 33 of file OSGDVRRenderSlice.cpp.

References maxVertexCombineData, and vertexCombineData.

00034 {
00035     if(maxVertexCombineData > 0)
00036         free(vertexCombineData); // allocation with malloc/realloc!!
00037 
00038     vertexCombineData = NULL;
00039 }


Member Function Documentation

void osg::DVRRenderSlice::render void   )  const
 

Definition at line 41 of file OSGDVRRenderSlice.cpp.

00042 {  
00043     for(DVRRenderSlice::const_iterator i = begin(); 
00044                                        i != end(); 
00045                                      ++i)
00046     {
00047         (*i)->render();
00048     }
00049 }

void osg::DVRRenderSlice::clear void   ) 
 

Definition at line 51 of file OSGDVRRenderSlice.cpp.

References directRender, and numVertexCombineData.

Referenced by osg::DVRClipper::clipSlice(), osg::Brick::render2DSliceXY(), osg::Brick::render2DSliceXZ(), osg::Brick::render2DSliceYZ(), and osg::Brick::render3DSlices().

00052 {
00053     if(!directRender)
00054     {
00055         for(DVRRenderSlice::const_iterator i = begin(); i != end(); ++i)
00056         {
00057             delete (*i);
00058         }
00059 
00060         std::vector<DVRRenderSlicePrimitive*>::clear();
00061     }
00062     
00063     numVertexCombineData = 0;
00064 }


Member Data Documentation

GLdouble* osg::DVRRenderSlice::vertexCombineData
 

Definition at line 66 of file OSGDVRRenderSlice.h.

Referenced by DVRRenderSlice(), vertexCombineCallback(), and ~DVRRenderSlice().

UInt32 osg::DVRRenderSlice::numVertexCombineData
 

Definition at line 67 of file OSGDVRRenderSlice.h.

Referenced by clear(), DVRRenderSlice(), and vertexCombineCallback().

UInt32 osg::DVRRenderSlice::maxVertexCombineData
 

Definition at line 68 of file OSGDVRRenderSlice.h.

Referenced by DVRRenderSlice(), vertexCombineCallback(), and ~DVRRenderSlice().

bool osg::DVRRenderSlice::directRender
 

Definition at line 73 of file OSGDVRRenderSlice.h.

Referenced by beginCallback(), clear(), endCallback(), osg::Brick::render2DSliceXY(), osg::Brick::render2DSliceXZ(), osg::Brick::render2DSliceYZ(), osg::Brick::render3DSlices(), and vertexCallback().

UInt32 osg::DVRRenderSlice::numPerVertexData
 

Definition at line 76 of file OSGDVRRenderSlice.h.

Referenced by osg::Brick::render2DMultiSlices(), osg::Brick::render2DSlices(), osg::Brick::render3DSlices(), and vertexCombineCallback().

Orientation osg::DVRRenderSlice::orientation
 

Definition at line 79 of file OSGDVRRenderSlice.h.

Referenced by osg::Brick::render2DMultiSlices(), osg::Brick::render2DSlices(), osg::Brick::render3DSlices(), osg::DVRMtexLUTShader::renderSlice(), osg::DVRIsoShader::renderSlice_NVRegisterCombinerShading(), and vertexCallback().


The documentation for this class was generated from the following files:
Generated on Thu Aug 25 04:16:33 2005 for OpenSG by  doxygen 1.4.3