VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgProjectedTextModel.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtOsgAttachableProjectedTextModel_H_
11 #define DtOsgAttachableProjectedTextModel_H_
12 
13 #include <vrvOsg/vrvOsg.h>
15 #include <vrvCore/DtUniqueID.h>
16 #include <matrix/vlVector.h>
17 
18 namespace osg
19 {
20  class Group;
21 }
22 
23 namespace makVrv
24 {
25  class DtDe;
26  class DtProjectedTextModelInstance;
27  class DtOsgSceneConnector;
28 
33  : public DtProjectedTextModel
34  {
35  public:
37 
38  virtual ~DtOsgProjectedTextModel();
39 
40  //@name Distributed Interface
42  virtual void setPosition( int vtx, const DtVector& position );
43  virtual void setOrientation( int vtx, const DtTaitBryan& orientation );
44 
45  virtual void setColor( const DtVector& rgbColor );
46  virtual void setFontName( const std::string& fontName );
47  virtual void setFontSize( double size );
48  virtual void setText( const std::string& text );
49  virtual void setVisible(bool isVisible);
50  virtual void setIsSupportModel(bool isSupport);
52 
53  protected:
54 
55  //@name Local Interface
57  virtual void addToScene( const DtUniqueID& sceneObjectId, DtModelSetId modelSet,
58  int visualizerType );
59  virtual void removeFromScene();
61 
62  protected:
63  virtual void createModelInstance();
64 
65  protected:
66  // casting avoidance
69  };
70 }
71 
72 #endif
73 
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtProjectedTextModel is the abstract interface for a model class for creating attachable projected te...
Definition: DtProjectedTextModel.h:23
voidpf void uLong size
Definition: ioapi.h:39
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition: DtOsgSceneConnector.h:77
DtOsgProjectedTextModel is a model class for creating attachable projected text. It creates its own m...
Definition: DtOsgProjectedTextModel.h:32
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtProjectedTextModelInstance * myTextInstance
Definition: DtOsgProjectedTextModel.h:67
DtOsgSceneConnector * mySceneConnector
Definition: DtOsgProjectedTextModel.h:68
Contains makVrv::DtUniqueID type.
Contains DLL export macros.
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:72
Distributed model for drawing shapes.
DtModelSetId
Definition: DtModelSetEnums.h:19
OSG-specific instance of an attachable, projected text model (as used for HAT lines) ...
Definition: DtProjectedTextModelInstance.h:30

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)