VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowTextInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtWindowText.h>
17 #include <vector>
18 
19 namespace makVrv
20 {
25  {
26  public:
28  virtual ~DtWindowTextInstance();
29 
31  virtual void setVisible(bool isVisible) = 0;
32 
34  virtual void setTopLeftCorner( float x, float y ) = 0;
35 
37  virtual void setColor(float r,float g,float b,float a) = 0;
38 
40  virtual void setText(const std::string& textString) = 0;
41 
46  virtual void setFont(const std::string& fontFile, float sizeInPoints) = 0;
47 
49  virtual void setTextBoxWidth(unsigned int widthInPixels) = 0;
50 
52  virtual void setAlignment(DtWindowText::TextAlignment alignment) = 0;
53 
56  virtual void setTransform( DtMatrix3<double> transform ) = 0;
57 
59  virtual void update() = 0;
60 
62  virtual void setClipBox( DtVector2<double> bottomLeftLocation, DtVector2<double> topRightLocation ) = 0;
63 
66  virtual void setGroup( int groupId ) = 0;
67 
72  virtual void setChannelOverlay( const std::string& displayName,
73  const std::string& windowName, const std::string& channelName ) = 0;
74  };
75 
79  {
80  public:
83 
85  virtual ~DtWindowTextInstanceCreator();
86 
88  static DtWindowTextInstanceCreator& instance( DtDe& de );
89 
91  static void registerInstance( DtDe& de, DtWindowTextInstanceCreator* instance );
92 
94  virtual DtWindowTextInstance* create();
95  protected:
97  };
98 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
3 dimensional matrix
Creator for DtWindowTextInstance, will throw if you create on it. osg creator is registered in vrvOsg...
Definition: DtWindowTextInstance.h:78
Interface for a DtWindowTextInstance An object that draws a 2D text.
Definition: DtWindowTextInstance.h:24
Contains makVrv::DtWindowText class.
Interface for classes with settable visibility, such as a 3D model or 2D graphic. ...
Definition: DtSetVisibilityInterface.h:22
Contains makVrv::DtVirtualBaseClass class.
DtDe & myDe
Definition: DtWindowTextInstance.h:96
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains the DtSetVisibilityInterface.
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:70
TextAlignment
Definition: DtWindowText.h:41
Contains DLL export macros.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)