helper class for DtIndirectAggregateHelper which checks and copies indices from a geometry
More...
|
| static int | calculateNumIndices (const osg::PrimitiveSet *primitiveSet) |
| | helper function, calculates the number of indices based on primitive type and vert count More...
|
| |
helper class for DtIndirectAggregateHelper which checks and copies indices from a geometry
| makVrv::DtIndirectAggregateIndicesHelper::DtIndirectAggregateIndicesHelper |
( |
const std::string & |
modelName, |
|
|
const osg::ref_ptr< osg::Geometry > & |
aggregatedGeometry |
|
) |
| |
| virtual makVrv::DtIndirectAggregateIndicesHelper::~DtIndirectAggregateIndicesHelper |
( |
| ) |
|
|
virtual |
| makVrv::DtIndirectAggregateIndicesHelper::DtIndirectAggregateIndicesHelper |
( |
| ) |
|
|
privatedelete |
| virtual bool makVrv::DtIndirectAggregateIndicesHelper::checkSrcAndDstIndicesOk |
( |
const osg::Geometry & |
geometry | ) |
|
|
virtual |
check if the dst (of aggregated geometry held here) indices check out
| virtual void makVrv::DtIndirectAggregateIndicesHelper::copyIndices |
( |
std::vector< int > & |
indices, |
|
|
const osg::Geometry & |
geometry |
|
) |
| |
|
virtual |
copy the indices from geometry into the aggregated geometry
| virtual void makVrv::DtIndirectAggregateIndicesHelper::cancel |
( |
| ) |
|
|
virtual |
| virtual bool makVrv::DtIndirectAggregateIndicesHelper::isModeSupported |
( |
GLenum |
mode | ) |
|
|
virtual |
helper function for checking if a mode is supported by this helper/indirect
Referenced by copyIndicesOnMatch().
| virtual std::string makVrv::DtIndirectAggregateIndicesHelper::toModeString |
( |
GLenum |
mode | ) |
|
|
virtual |
helper function for converting from a GLenum to a string that contains the GLenum.
for example GL_POINTS returns "GL_POINTS" useful for debug printouts
Referenced by copyIndicesOnMatch().
| static int makVrv::DtIndirectAggregateIndicesHelper::calculateNumIndices |
( |
const osg::PrimitiveSet * |
primitiveSet | ) |
|
|
static |
helper function, calculates the number of indices based on primitive type and vert count
| virtual bool makVrv::DtIndirectAggregateIndicesHelper::checkAndCopyIndicesIfTriangleElements |
( |
std::vector< int > & |
indices, |
|
|
const osg::PrimitiveSet * |
primitiveSet |
|
) |
| |
|
protectedvirtual |
Helper function for copying indices from a triangle element.
| virtual bool makVrv::DtIndirectAggregateIndicesHelper::checkAndCopyIndicesIfDrawArrays |
( |
std::vector< int > & |
indices, |
|
|
const osg::PrimitiveSet * |
primitiveSet |
|
) |
| |
|
protectedvirtual |
Helper function for copying indices from a draw arrays.
| virtual void makVrv::DtIndirectAggregateIndicesHelper::printDetailsPrimitiveSets |
( |
const osg::Geometry & |
geometry | ) |
|
|
protectedvirtual |
helper function for printing out the details of a primitive set
template<class T >
| bool makVrv::DtIndirectAggregateIndicesHelper::copyIndicesOnMatch |
( |
std::vector< int > & |
indices, |
|
|
const osg::PrimitiveSet * |
primitiveSet |
|
) |
| |
|
protected |
templated function used to copy indices that are a DrawElements vector.
this avoids three instances of the same exact function with only different function argument types
References ASSERT_PREDICATE, isModeSupported(), and toModeString().
| const std::string makVrv::DtIndirectAggregateIndicesHelper::myModelFileName |
|
protected |
| osg::ref_ptr<osg::Geometry> makVrv::DtIndirectAggregateIndicesHelper::myAggregatedGeometry |
|
protected |
| tbb::atomic<int> makVrv::DtIndirectAggregateIndicesHelper::myCancelTask |
|
protected |
The documentation for this class was generated from the following file: