![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 // /****************************************************************************** 00002 // ** Copyright (c) 2008 MAK Technologies, Inc. 00003 // ** All rights reserved. 00004 // ******************************************************************************/ 00005 // /****************************************************************************** 00006 // ** $RCSfile: DtStateViewDriver.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 // ******************************************************************************/ 00008 00011 00012 #ifndef DtStateViewDriver_H_ 00013 #define DtStateViewDriver_H_ 00014 00015 #include <vrvCore/DtDriver.h> 00016 #include <vrvCore/DtAgentManager.h> 00017 #include <vrvCore/DtEntityState.h> 00018 00019 using namespace makVrv; 00020 00021 namespace makVrv 00022 { 00023 class DtObserver; 00024 class DtSimEntry; 00025 } 00026 00031 class DtStateViewDriver : public DtDriver 00032 { 00033 public: 00035 DtStateViewDriver(DtAgentManager& agentManager, 00036 const std::string& instanceName); 00037 00039 virtual ~DtStateViewDriver(); 00040 00042 virtual const std::string& className() const; 00043 00044 protected: 00045 00049 00052 virtual bool onStart(); 00053 00055 virtual bool onStop(); 00056 00058 virtual void slot_displayEngineAdded( const DtDeRecord& igRecord ); 00059 00061 virtual bool onTick(); 00062 00065 virtual void handleAttachToChanged(DtObserver* observer); 00066 00068 DtSimEntry* findSimEntry( DtUniqueID elementId ); 00069 00071 void disableCurrentStateView(); 00072 00074 virtual void slot_stateViewUpdated(DtVrlinkEntityStateView* stateView); 00075 00078 virtual void slot_simObjectRemoved(DtSimObjectEntry&); 00079 00081 DtVrlinkEntityStateView* myStateView; 00082 }; 00083 00084 #endif