VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
makVrv::DtCellGeoSpecificIndirectGeo Class Reference

Helper for managing indirect geometry, its intersection group and registrar corresponding to a 'tile node' (gs cell or gt cell) DtCellToIndirectGeoMap in turn manages a map of feature tile nodes (for a layer) to a corresponding instance of DtCellGeoSpecificIndirectGeo.

Inheritance diagram for makVrv::DtCellGeoSpecificIndirectGeo:
Inheritance graph
[legend]

Public Member Functions

 DtCellGeoSpecificIndirectGeo (DtDe &de, const DtCullShaderConfig &cullShaderConfig, bool includeIntersectionGeoInNodePath, const DtIndirectGeometrySubType &geometrySubType, const DtIndirectFadeParameters &fadeParameters)
 
virtual ~DtCellGeoSpecificIndirectGeo ()
 
virtual int addInstance (DtCellIndirectGeoInstance &instance, const std::string &modelName, bool cullFaceEnabled, std::function< void(osg::ref_ptr< osg::Node >)> *createdNodeCallback=nullptr)
 
virtual int addInstance (DtCellIndirectGeoInstance &instance, osg::ref_ptr< const osg::Node > modelNode, const std::string &modelNameSuffix, bool cullFaceEnabled, const DtIndirectPolygonOffset &polygonOffset)
 
- Public Member Functions inherited from makVrv::DtCellIndirectGeo
 DtCellIndirectGeo (DtDe &de, const DtCullShaderConfig &cullShaderConfig, bool includeIntersectionGeoInNodePath, const DtIndirectGeometrySubType &geometrySubType, const DtIndirectFadeParameters &fadeParameters)
 
virtual ~DtCellIndirectGeo ()
 
virtual void setModelsContainer (DtIndirectModelsContainer *modelsContainer, bool ownsModelsContainer)
 
virtual DtIndirectModelsContainer * modelsContainer () const
 
virtual void setParent (const osg::Group *parent)
 
virtual const osg::BoundingBoxd & boundingBox (void) const
 
virtual const DtIndirectGeometry * indirectGeometry (void) const
 
virtual DtIndirectGeometry * indirectGeometry (void)
 
virtual osg::Group * indirectIntersectionGroup ()
 
virtual int addInstance (const DtCellIndirectGeoInstance &cellIndirectGeoInstance)
 
virtual const
std::unordered_map< int, int > & 
modelIdToNumInstances (void) const
 
virtual const
std::unordered_map< int,
osg::ref_ptr< osg::Node > > & 
modelIdToModelNodeMap (void) const
 

Private Member Functions

 DtCellGeoSpecificIndirectGeo ()=delete
 
 DtCellGeoSpecificIndirectGeo (const DtCellGeoSpecificIndirectGeo &rhs)=delete
 
DtCellGeoSpecificIndirectGeo & operator= (const DtCellGeoSpecificIndirectGeo &rhs)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtCellIndirectGeo
virtual void expandBoundingBox (const osg::Node *modelNode, const osg::Matrixd &instanceXForm)
 
virtual void expandBoundingBoxByLightPointBounds (const DtLightPointNode *lightPointNode, const osg::Matrixd &instanceXForm)
 
- Protected Attributes inherited from makVrv::DtCellIndirectGeo
DtIndirectModelsContainer * myModelsContainer
 
bool myOwnsModelsContainer
 
osg::ref_ptr< DtIndirectGeometry > myIndirectGeometry
 
osg::ref_ptr< osg::Group > myIndirectGeoIntersectionGroup
 
osg::BoundingBoxd myBoundingBox
 
Threading::Mutex myMutableBoundingBoxMutex
 
DtDe & myDe
 
bool myFirstInstance
 
bool myIncludeIntersectionGeoInNodePath
 
std::unordered_map< int, int > myModelIdToNumInstances
 
std::unordered_map< int,
osg::ref_ptr< osg::Node > > 
myModelIdToModelNode
 

Constructor & Destructor Documentation

makVrv::DtCellGeoSpecificIndirectGeo::DtCellGeoSpecificIndirectGeo ( DtDe &  de,
const DtCullShaderConfig &  cullShaderConfig,
bool  includeIntersectionGeoInNodePath,
const DtIndirectGeometrySubType &  geometrySubType,
const DtIndirectFadeParameters &  fadeParameters 
)

CTOR.

virtual makVrv::DtCellGeoSpecificIndirectGeo::~DtCellGeoSpecificIndirectGeo ( )
virtual

DTOR.

makVrv::DtCellGeoSpecificIndirectGeo::DtCellGeoSpecificIndirectGeo ( )
privatedelete

not allowed

makVrv::DtCellGeoSpecificIndirectGeo::DtCellGeoSpecificIndirectGeo ( const DtCellGeoSpecificIndirectGeo &  rhs)
privatedelete

not allowed

Member Function Documentation

DtCellGeoSpecificIndirectGeo& makVrv::DtCellGeoSpecificIndirectGeo::operator= ( const DtCellGeoSpecificIndirectGeo &  rhs)
privatedelete

not allowed

virtual int makVrv::DtCellGeoSpecificIndirectGeo::addInstance ( DtCellIndirectGeoInstance &  instance,
const std::string &  modelName,
bool  cullFaceEnabled,
std::function< void(osg::ref_ptr< osg::Node >)> *  createdNodeCallback = nullptr 
)
virtual
Parameters
instanceThe indirect geo instance; model id and model node will be set on it.
modelNameThe name of the model as registered with the registrar.
cullFaceEnabledWhether back-face culling is enabled for this instance.
createdNodeCallbackOptional callback invoked after the OSG node is created.
Returns
The instance id in the indirect geometry, or -1 on error.
virtual int makVrv::DtCellGeoSpecificIndirectGeo::addInstance ( DtCellIndirectGeoInstance &  instance,
osg::ref_ptr< const osg::Node >  modelNode,
const std::string &  modelNameSuffix,
bool  cullFaceEnabled,
const DtIndirectPolygonOffset &  polygonOffset 
)
virtual
Parameters
instanceThe indirect geo instance; model id and model node will be set on it.
modelNodeThe top-level OSG node corresponding to the model geometry.
modelNameSuffixDebug suffix appended to the pointer-value model name string.
cullFaceEnabledWhether back-face culling is enabled for this instance.
polygonOffsetPolygon offset settings for this instance.
Returns
The instance id in the indirect geometry, or -1 on error.

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)