26 class DtInstanceContainer;
65 virtual void update(
const osg::FrameStamp* frameStamp)
override;
72 virtual void slot_setSwitch(osgSim::MultiSwitch* clone, osgSim::MultiSwitch* master,
int instanceId);
75 virtual bool slot_setSequence(osg::Sequence* clone, osg::Sequence* master,
int instanceId);
82 virtual void addSequence(osg::Sequence* sequence,
int instanceId)
override;
virtual bool slot_setSequence(osg::Sequence *clone, osg::Sequence *master, int instanceId)
set the sequence
handles the switches for all the indirect geometry. Sets up the default state of osg::Switch, osgSim::MultiSwitch, and DtDynamicTerrainSwitchNode. Connects to a signal for the DtDynamicTerrainSwitchNode so it can update the indirect buffer when a switch changes. saves off the node path hash for every switch path that is added. Owned by a DtIndirectGeometry 1:1 This manager's switches get updated per frame via looking at the actual switches/multi-switches
Definition: DtIndirectSwitchManager.h:70
DtVirtualBaseClassCreator< DtIndirectSignalBasedSwitchManager, DtInstanceContainer & > DtIndirectSignalBasedSwitchManagerCreator
creator
Definition: DtIndirectSignalBasedSwitchManager.h:29
unsigned int myValue
Definition: DtIndirectSignalBasedSwitchManager.h:92
DtIndirectSignalBasedSwitchManager & operator=(const DtIndirectSwitchManager &other)=delete
Assignment Operator Not implemented – Assignment Not Allowed.
virtual void slot_setSwitch(osgSim::MultiSwitch *clone, osgSim::MultiSwitch *master, int instanceId)
set the multi-switch state of an instance/clone, with an instance id. The representative 'master' tha...
virtual void updateActiveSequences(const osg::FrameStamp *frameStamp)
update
MapInstanceToMapOfSequences myActiveMapSequenceToInfo
Definition: DtIndirectSignalBasedSwitchManager.h:96
osg::Sequence * mySequence
Definition: DtIndirectSignalBasedSwitchManager.h:91
virtual void printInfo()
print out the info of what's contained in the maps
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:23
Definition: DtIndirectSignalBasedSwitchManager.h:88
virtual void update(const osg::FrameStamp *frameStamp) override
override of DtIndirectSwitchManager::update
This is used for entities indicate whether this manager's switches get updated directly using signals...
Definition: DtIndirectSignalBasedSwitchManager.h:43
virtual ~DtIndirectSignalBasedSwitchManager()
DTOR.
virtual void addSequence(osg::Sequence *sequence, int instanceId) override
add a sequence
Contains makVrv::DtIndirectSwitchManager class.
std::map< osg::Sequence *, SequenceAndValue > MapOfSequences
Definition: DtIndirectSignalBasedSwitchManager.h:94
std::map< int, MapOfSequences > MapInstanceToMapOfSequences
Definition: DtIndirectSignalBasedSwitchManager.h:95
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Helper class to manage instances This class allows you to add a DtInstance_64 Internally, however it stores this as a DtInstance (which the GPU can directly read)
Definition: DtInstanceContainer.h:31
const char * creatorTypeName< DtIndirectSignalBasedSwitchManager >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtIndirectSignalBasedSwitchManager.h:36
friend DtIndirectSignalBasedSwitchManagerCreator
only creator can create
Definition: DtIndirectSignalBasedSwitchManager.h:47
DtIndirectSignalBasedSwitchManager()=delete
default constructor not implemented
virtual void removeSwitchPaths(int instanceId)
remove the switch paths/infos associated with an instance