VR-Forces 4.0.4 Class Documentation
examples/tutorialDistributedSimulation4A/DistributedSimulationDriver4A.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2011 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 
00008 
00009 #pragma once
00010 
00011 #include <vrvCore/DtDriver.h>
00012 #include <osg/PositionAttitudeTransform>
00013 
00014 class DtExerciseConn;
00015 
00016 namespace makVrv
00017 {
00018 namespace tutorialDistributedSimulation4A
00019 {
00020 
00021 class DistributedSimulationDriver : public DtDriver
00022 {
00023 public:
00024 
00026    DistributedSimulationDriver(DtAgentManager& agentManager, const std::string& instanceName);
00027 
00029    virtual ~DistributedSimulationDriver();
00030 
00032    virtual const std::string& className() const;
00033 
00034 protected:
00035 
00038    virtual bool onStart();
00039 
00041    virtual bool onStop();
00042 
00044    virtual bool onTick();
00045 
00046 protected:
00047 
00048    osg::ref_ptr<osg::PositionAttitudeTransform> myPat;
00049    DtExerciseConn* myConnection;
00050    bool myConnectionState;
00051    double myRotationDegree;
00052 };
00053 
00054 }
00055 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)