![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtOsg3DTextModel.h,v $ $Revision: 1.13 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #pragma once 00014 #include <vrvOsg/vrvOsg.h> 00015 #include <vrvCore/Dt3DTextModel.h> 00016 #include <vrvCore/DtUniqueID.h> 00017 00018 namespace osg 00019 { 00020 class Group; 00021 } 00022 00023 namespace makVrv 00024 { 00025 class DtDe; 00026 class DtOsgSceneConnector; 00027 class Dt3DTextModelInstance; 00028 00032 class DT_DLL_VRVOSG DtOsg3DTextModel : public Dt3DTextModel 00033 { 00034 public: 00035 DtOsg3DTextModel(DtDe& de, DtUniqueID id); 00036 00037 virtual ~DtOsg3DTextModel(); 00038 00039 //@name Distributed Interface 00041 virtual void setVisible(bool visible); 00042 virtual void setPosition( int vtx, const DtVector& position ); 00043 virtual void setOrientation( int vtx, const DtTaitBryan& orientation ); 00044 00045 virtual void setColor( float r, float g, float b, float a ); 00046 virtual void setFont( const std::string& fontName ); 00047 virtual void setFontSize( double size ); 00048 virtual void setText( const std::string& text ); 00049 00050 virtual void setModelDefinition(const std::string& modelDefinition); 00051 00052 virtual void setSolid(bool solid); 00054 00055 protected: 00056 00057 //@name Local Interface 00059 virtual void addToScene( const DtUniqueID& sceneObjectId, int modelSet, 00060 int visualizerType ); 00061 virtual void removeFromScene(); 00062 00063 virtual void setModelInstance(DtModelInstance* modelInstance ); 00065 00066 protected: 00067 DtOsgSceneConnector* mySceneConnector; 00068 Dt3DTextModelInstance* myTextModelInstance; 00069 00070 }; 00071 }