VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtText2DObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
11 
12 #include <vlutil/vlString.h>
13 
15 
20 
21 #include <vl/exerciseConn.h>
22 
23 namespace vrvControlToolkit
24 {
31  {
32  public:
49  DtText2DObject(DtExerciseConn* exConn, unsigned id, const DtString& text,
50  const DtVdcVector2D& position, DtVdcColor color = DtVdcColor::DtVdcWhite,
51  bool flashing = false );
52 
53  // \brief Virtual destructor
54  virtual ~DtText2DObject();
55 
56  private:
62 
63  public:
69  virtual DtString text() const;
70 
76  virtual void setText( const DtString& text );
77 
83  virtual DtVdcVector2D position() const;
84 
90  virtual void setPosition( const DtVdcVector2D& position );
91 
97  virtual const DtVdcColor& color() const;
98 
104  virtual void setColor (const DtVdcColor& color );
105 
111  virtual bool flashing() const;
112 
118  virtual void setFlashing( bool flashing );
119 
126  virtual void setFont(const char* fontFilePath, float size);
127 
128  virtual void setRemoteGraphicSet(const std::string& setName);
129 
138  virtual void update();
139 
140  protected:
145 
147  };
148 
149 }
DtDrawControlObject.h contains the class definition for DtDrawControlObject, the base class from whic...
DtVdcVector2D myPosition
Definition: DtText2DObject.h:141
DtString myText
Definition: DtText2DObject.h:144
voidpf void uLong size
Definition: ioapi.h:39
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:186
A 2D Text Stealth Draw Control Object.
Definition: DtText2DObject.h:30
bool myFlashing
Definition: DtText2DObject.h:143
Definition: DtVdcVector2D.h:33
DtVdcColor myColor
Definition: DtText2DObject.h:142
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
DtDrawControlObject is the base class from which all Draw Control Objects are derived.
Definition: DtDrawControlObject.h:35
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
Definition: 2dGraphicalObjectTextStateRecord.h:23
Dt2DGraphicalObjectTextStateRecord * myStateRecord
Definition: DtText2DObject.h:146
DtVdcColor.h contains the class definition for DtVdcColor, which is used to represent colors for all ...
Contains the Dt2DGraphicalObjectTextStateRecord class declaration.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)