![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtOsgSimpleModel.h,v $ $Revision: 1.13 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvOsg/vrvOsg.h> 00016 #include <vrvCore/DtModel.h> 00017 #include <vrvCore/DtUniqueID.h> 00018 #include <matrix/vlVector.h> 00019 #include <matrix/vlTaitBryan.h> 00020 00021 #include <osg/MatrixTransform> 00022 namespace osg 00023 { 00024 class Group; 00025 } 00026 00027 namespace makVrv 00028 { 00029 class DtDe; 00030 class DtOsgSceneConnector; 00031 00037 class DT_DLL_VRVOSG DtOsgSimpleModel : public DtModel 00038 { 00039 public: 00040 DtOsgSimpleModel(DtDe& de, DtUniqueID& id); 00041 00042 virtual ~DtOsgSimpleModel(); 00043 00044 //@name Distributed Interface 00046 00048 virtual void setModelDefinition(const std::string& str); 00049 virtual void setVisible(bool visible); 00050 virtual void setPosition( int vtx, const DtVector& position ); 00051 virtual void setOrientation( int vtx, const DtTaitBryan& orientation ); 00053 00054 //@name Local Interface 00056 virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet, 00057 int visualizerType ); 00058 00059 // Add to scene as a prop ( no modelset / visualizer type specified ) 00060 virtual void addToSceneAsProp( const DtUniqueID& sceneObjectId ); 00061 virtual void removeFromScene(); 00062 00064 virtual void setSolid(bool isSolid); 00066 00067 protected: 00068 DtOsgSceneConnector* mySceneConnector; 00069 }; 00070 }