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

GLdouble * vertexCombineData
UInt32 numVertexCombineData
UInt32 maxVertexCombineData
bool directRender
UInt32 numPerVertexData
Orientation orientation


Detailed Description

Definition at line 40 of file OSGDVRRenderSlice.h.


Member Enumeration Documentation

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

Definition at line 66 of file OSGDVRRenderSlice.h.

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

Definition at line 67 of file OSGDVRRenderSlice.h.

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

Definition at line 68 of file OSGDVRRenderSlice.h.

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


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

Generated on Mon Mar 17 11:14:34 2008 for OpenSG by  doxygen 1.5.5