![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 // /****************************************************************************** 00002 // ** Copyright (c) 2008 MAK Technologies, Inc. 00003 // ** All rights reserved. 00004 // ******************************************************************************/ 00005 // /****************************************************************************** 00006 // ** $RCSfile: DtExampleObject.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 // ******************************************************************************/ 00008 00009 #ifndef DtExampleObject_H_ 00010 #define DtExampleObject_H_ 00011 00012 #include <vrvCore/DtDe.h> 00013 #include <vrvCore/DtUniqueID.h> 00014 00015 #include <osg/PositionAttitudeTransform> 00016 00017 #include <string> 00018 00019 namespace makVrv 00020 { 00021 class DtExampleObject 00022 { 00023 00024 public: 00025 00027 DtExampleObject(DtDe& de, DtUniqueID id); 00028 00029 virtual ~DtExampleObject(); 00030 00031 void loadModel(const std::string& filename); 00032 00033 void setRotationAngle(double rotationAngleInDegrees); 00034 00035 protected: 00036 00037 DtDe& myDe; 00038 osg::ref_ptr<osg::PositionAttitudeTransform> myPat; 00039 00040 }; 00041 00042 } 00043 00044 #endif