![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /***************************************************************************** 00002 * Copyright (c) 2011 MAK Technologies, Inc. 00003 * All rights reserved. 00004 *****************************************************************************/ 00005 /***************************************************************************** 00006 * $RCSfile: DtOsgScribeBoxModel.h,v $ $Revision: 1.13 $ $State: Exp $ 00007 *****************************************************************************/ 00008 00012 00013 #pragma once 00014 00015 #include <vrvOsg/vrvOsg.h> 00016 00017 #include <vrvCore/DtScribeBoxModel.h> 00018 #include <vrvCore/DtUniqueID.h> 00019 00020 #include <matrix/vlVector.h> 00021 #include <matrix/vlTaitBryan.h> 00022 00023 #include <osg/MatrixTransform> 00024 00025 namespace osg 00026 { 00027 class Group; 00028 } 00029 00030 namespace makVrv 00031 { 00032 00033 class DtDe; 00034 class DtOsgSceneConnector; 00035 00041 class DT_DLL_VRVOSG DtOsgScribeBoxModel 00042 : public DtScribeBoxModel 00043 { 00044 public: 00045 00047 DtOsgScribeBoxModel( DtDe& de, DtUniqueID& id ); 00048 00050 virtual ~DtOsgScribeBoxModel(); 00051 00052 //@name Distributed Interface 00054 00055 virtual void setColor( float r, float g, float b, float alpha ); 00056 virtual void setLineWidth( double lineWidth ); 00057 00058 virtual void setVisible( bool visible ); 00059 virtual void setPosition( int vtx, const DtVector& position ); 00060 virtual void setOrientation( int vtx, const DtTaitBryan& orientation ); 00061 00062 virtual void setSolid( bool solid ); 00063 00065 00067 virtual void setOccluded( bool ); 00068 00072 virtual void setLineSmoothing(bool); 00073 00074 //@name Local Interface 00076 00077 virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet, 00078 int visualizerType ); 00079 virtual void addToSceneAsProp( const DtUniqueID& sceneObjectId ); 00080 virtual void removeFromScene(); 00081 00083 00086 virtual void setModelScalingEnabled( bool b ); 00087 00089 virtual void setLocalModelScalingEnabled( bool enabled ); 00090 00092 virtual void setLocalModelScalingAmount( float localScale ); 00093 00094 protected: 00095 00096 DtOsgSceneConnector* mySceneConnector; 00097 osg::Vec4 myColor; 00098 double myLineWidth; 00099 00100 }; 00101 00102 }