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 | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtIntersectorsContainer Class Reference

Utility class that contains intersectors for all model sets in the system (3d, xr, 2d) Use an object of this class when all models sets can be possibly needed. When you know which model set you need, you can just use the DtIntersectorCreator to create an intersector for a model set Models sets corresponding to 3d, xr and 2d are created by default (these correspond to values of 0, 1 and 5) Additional model sets can be registered with DtIntersectorsContainer::registerModelSet.

Public Member Functions

virtual ~DtIntersectorsContainer ()
 
 DtIntersectorsContainer ()=delete
 
 DtIntersectorsContainer (const DtIntersectorsContainer &rhs)=delete
 
DtIntersectorsContaineroperator= (const DtIntersectorsContainer &rhs)=delete
 
virtual DtIntersectorfindIntersector (DtModelSetId modelSet) const
 
virtual void registerModelSet (DtModelSetId modelSet)
 
virtual bool modelSetRegistered (DtModelSetId modelSet) const
 

Public Attributes

friend DtIntersectorsContainerCreator
 

Protected Member Functions

 DtIntersectorsContainer (DtDe &de)
 

Protected Attributes

DtDemyDe
 
std::unordered_map
< DtModelSetId, DtIntersector * > 
myIntersectors
 

Constructor & Destructor Documentation

virtual makVrv::DtIntersectorsContainer::~DtIntersectorsContainer ( )
virtual
makVrv::DtIntersectorsContainer::DtIntersectorsContainer ( )
delete
makVrv::DtIntersectorsContainer::DtIntersectorsContainer ( const DtIntersectorsContainer rhs)
delete
makVrv::DtIntersectorsContainer::DtIntersectorsContainer ( DtDe de)
protected

Member Function Documentation

DtIntersectorsContainer& makVrv::DtIntersectorsContainer::operator= ( const DtIntersectorsContainer rhs)
delete
virtual DtIntersector* makVrv::DtIntersectorsContainer::findIntersector ( DtModelSetId  modelSet) const
virtual

Get the intersector for the specified model set, if one exists. Null otherwise. This method is thread safe.

virtual void makVrv::DtIntersectorsContainer::registerModelSet ( DtModelSetId  modelSet)
virtual

Register a model set and create an unique intersector for it. If the model set is already registered, does nothing. This method is not thread safe.

virtual bool makVrv::DtIntersectorsContainer::modelSetRegistered ( DtModelSetId  modelSet) const
virtual

Is a model set registered? (and hence an intersector exists for it>)

Member Data Documentation

friend makVrv::DtIntersectorsContainer::DtIntersectorsContainerCreator
DtDe& makVrv::DtIntersectorsContainer::myDe
protected
std::unordered_map<DtModelSetId, DtIntersector*> makVrv::DtIntersectorsContainer::myIntersectors
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)