VR-Forces 4.0.4 Class Documentation
examples/tutorialDistributedSimulation4C/ExampleSimulationObject.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/DtDe.h>
00012 #include <vrvCore/DtUniqueID.h>
00013 
00014 #include <osg/PositionAttitudeTransform>
00015 
00016 #include <string>
00017 
00018 namespace makVrv
00019 {
00020 
00021    class ExampleSimulationObject
00022    {
00023 
00024    public:
00025 
00027       ExampleSimulationObject(DtDe& de, DtUniqueID id);
00028 
00029       virtual ~ExampleSimulationObject();
00030 
00032       void loadModel(const std::string& filename);
00033 
00035       void removeModel();
00036 
00038       void setRotationAngle(double rotationAngleInDegrees);
00039 
00040    protected:
00041 
00042       DtDe& myDe;
00043       osg::ref_ptr<osg::PositionAttitudeTransform> myPat;
00044 
00045    };
00046 }

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)