![]() |
VR-Forces Developer's Guide
|
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.

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 |
| makVrv::DtCellGeoSpecificIndirectGeo::DtCellGeoSpecificIndirectGeo | ( | DtDe & | de, |
| const DtCullShaderConfig & | cullShaderConfig, | ||
| bool | includeIntersectionGeoInNodePath, | ||
| const DtIndirectGeometrySubType & | geometrySubType, | ||
| const DtIndirectFadeParameters & | fadeParameters | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
privatedelete |
not allowed
|
virtual |
| instance | The indirect geo instance; model id and model node will be set on it. |
| modelName | The name of the model as registered with the registrar. |
| cullFaceEnabled | Whether back-face culling is enabled for this instance. |
| createdNodeCallback | Optional callback invoked after the OSG node is created. |
|
virtual |
| instance | The indirect geo instance; model id and model node will be set on it. |
| modelNode | The top-level OSG node corresponding to the model geometry. |
| modelNameSuffix | Debug suffix appended to the pointer-value model name string. |
| cullFaceEnabled | Whether back-face culling is enabled for this instance. |
| polygonOffset | Polygon offset settings for this instance. |