VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowText.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>
13 #include <vrvCore/DtUniqueID.h>
14 #include <vrvCore/DtWindowObject.h>
15 
16 #include <vector>
17 #include <string>
18 
19 namespace makVrv
20 {
21  class DtDe;
22  class DtWindowTextInstance;
23 
39  {
40  public:
42  {
43  Left = 0,
44  Center = 1,
45  Right = 2,
46  Justify = 3,
47  };
48 
50  DtWindowText(DtDe& de, DtUniqueID id);
51 
53  virtual ~DtWindowText();
54 
58  virtual void setTopLeftCorner( float x, float y);
59 
61  virtual void setVisible(bool isVisible);
62 
64  virtual void setColor(float r,float g,float b,float a);
65 
67  virtual void setText(const std::string& textString);
68 
73  virtual void setFont(const std::string& fontFile, float sizeInPoints);
74 
76  virtual void setTextBoxWidth(unsigned int widthInPixels);
77 
79  virtual void setAlignment(unsigned int alignment);
80 
83  virtual void setInstance(DtWindowTextInstance* instance);
84 
86  virtual DtWindowTextInstance* findInstance();
87 
90  virtual void setGroup( int groupId );
91 
96  virtual void setChannelOverlay( const std::string& displayName,
97  const std::string& windowName, const std::string& channelName ) override;
98  protected:
100  virtual void update();
101 
103  virtual void needsUpdate();
104  protected:
107  };
108 }
109 
Interface for a DtWindowTextInstance An object that draws a 2D text.
Definition: DtWindowTextInstance.h:24
Base class for a graphical object that exists in a window Implements a parenting system for DtWindowO...
Definition: DtWindowObject.h:24
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
bool myConnectedToPostUpdate
Definition: DtWindowText.h:106
Contains makVrv::DtUniqueID type.
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
DtWindowTextInstance * myInstance
Definition: DtWindowText.h:105
Contains makVrv::DtWindowObject class.
A model-like object that draws a 2D text on screen. This window text class inherits from DtWindowObje...
Definition: DtWindowText.h:38
TextAlignment
Definition: DtWindowText.h:41
Contains DLL export macros.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)