VR-Forces 4.0.4 Class Documentation
examples/exampleDistributedDraw/DtDistributedDrawDriver.h
Go to the documentation of this file.
00001 // /****************************************************************************** 
00002 // ** Copyright (c) 2008 MAK Technologies, Inc. 
00003 // ** All rights reserved. 
00004 // ******************************************************************************/ 
00005 // /****************************************************************************** 
00006 // ** $RCSfile: DtDistributedDrawDriver.h,v $ $Revision: 1.1 $ $State: Exp $ 
00007 // ******************************************************************************/ 
00008 
00011 
00012 #ifndef DtDistributedDrawDriver_H_
00013 #define DtDistributedDrawDriver_H_
00014 
00015 #include <vrvCore/DtDriver.h>
00016 #include <vrvCore/DtAgentManager.h>
00017 #include "DtExampleDrawObjectAgent.hpp"
00018 
00019 using namespace makVrv;
00020 
00021 // This driver owns a DtExampleDrawObject, and is responsible for keeping track of 
00022 // the draw object's state & creating or destroying it when the driver is started or stopped.
00023 class DtDistributedDrawDriver : public DtDriver
00024 {
00025 public:
00027    DtDistributedDrawDriver(DtAgentManager& agentManager,
00028       const std::string& instanceName);
00029 
00031    virtual ~DtDistributedDrawDriver();
00032 
00034    virtual const std::string& className() const;
00035 
00038    virtual void drawRandomSphere();
00039 
00040 protected:
00041 
00047 
00050    virtual bool onStart();
00051 
00053    virtual bool onStop();
00054 
00056    virtual void slot_displayEngineAdded( const DtDeRecord& igRecord );
00057 
00059    virtual bool onTick();
00060 
00062    virtual void updateSphere();
00063   
00065    DtExampleDrawObjectAgent* myDrawAgent;
00066 
00068    double mySphereX, mySphereY, mySphereZ;
00069 
00071    bool mySphereInScene;
00072 
00073 };
00074 
00075 #endif

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)