![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2009 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtOsgCylinderModel.h,v $ $Revision: 1.0 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvOsg/vrvOsg.h> 00016 #include <vrvCore/DtCylinderModel.h> 00017 #include <vrvCore/DtUniqueID.h> 00018 00019 #include <matrix/vlVector.h> 00020 00021 #include <osg/MatrixTransform> 00022 00023 namespace osg 00024 { 00025 class Group; 00026 } 00027 00028 namespace makVrv 00029 { 00030 class DtDe; 00031 class DtOsgSceneConnector; 00032 00035 class DT_DLL_VRVOSG DtOsgCylinderModel : public DtCylinderModel 00036 { 00037 public: 00038 DtOsgCylinderModel(DtDe& de, DtUniqueID& id); 00039 00040 virtual ~DtOsgCylinderModel(); 00041 00042 //@name Distributed Interface 00044 00046 virtual void setUseTwoPositions(bool twoPoints); 00047 00049 virtual void setDimensions(float length, float width, float height); 00050 00052 virtual void setColor(float r,float g,float b,float a); 00053 00055 virtual void setPosition( int vtx, const DtVector& position ); 00056 00058 virtual void setOrientation( int vtx, const DtTaitBryan& orientation ); 00059 00061 virtual void setLightingEnabled( bool enabled ); 00062 00064 virtual void setVisible(bool isVisible); 00065 00067 virtual void setSolid(bool solid); 00068 00070 00071 //@name Local Interface 00073 00075 virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet, 00076 int visualizerType ); 00077 00079 virtual void removeFromScene(); 00081 00082 protected: 00083 DtOsgSceneConnector* mySceneConnector; 00084 bool myUseTwoPositions; 00085 }; 00086 } 00087