VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsg3DTextModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
12 #include <vrvCore/Dt3DTextModel.h>
13 #include <vrvCore/DtUniqueID.h>
14 
15 namespace osg
16 {
17  class Group;
18 }
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtOsgSceneConnector;
24  class Dt3DTextModelInstance;
25 
30  {
31  public:
33 
34  virtual ~DtOsg3DTextModel();
35 
36  //@name Distributed Interface
38  virtual void setVisible(bool visible);
39  virtual void setPosition( int vtx, const DtVector& position );
40  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
41 
42  virtual void setColor( float r, float g, float b, float a );
43  virtual void setFont( const std::string& fontName );
44  virtual void setFontSize( double size );
45  virtual void setText( const std::string& text );
46 
47  virtual void setModelDefinition(const std::string& modelDefinition);
48 
52  virtual void setIsSupportModel(bool isSupport);
54 
55  protected:
56 
57  //@name Local Interface
59  virtual void addToScene( const DtUniqueID& sceneObjectId, DtModelSetId modelSet,
60  int visualizerType );
61  virtual void removeFromScene();
62 
63  virtual void setModelInstance(DtModelInstance* modelInstance );
65 
66  protected:
69 
70  };
71 }
The base class for all model instances.
Definition: DtModelInstance.h:41
DtOsg3DTextModel is a model class for creating attachable projected text. It creates its own model in...
Definition: DtOsg3DTextModel.h:29
Dt3DTextModelInstance * myTextModelInstance
Definition: DtOsg3DTextModel.h:68
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
Dt3DTextModel is eyepoint-aligned text located in 3D database coordinates. It is scaled so that its s...
Definition: Dt3DTextModel.h:20
voidpf void uLong size
Definition: ioapi.h:39
Distributed model for drawing shapes.
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:77
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
Contains makVrv::DtUniqueID type.
Contains DLL export macros.
Model instance to draw 3D text.
Definition: Dt3DTextModelInstance.h:34
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtModelSetId
Definition: DtModelSetEnums.h:19
DtOsgSceneConnector * mySceneConnector
Definition: DtOsg3DTextModel.h:67

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)