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:
47  DtText2DObject(DtExerciseConn* exConn, unsigned id, const DtString& text,
48  const DtVdcVector2D& position, DtVdcColor color = DtVdcColor::DtVdcWhite,
49  bool flashing = false );
50 
51  // \brief Virtual destructor
52  virtual ~DtText2DObject();
53 
54  private:
60 
61  public:
67  virtual DtString text() const;
68 
74  virtual void setText( const DtString& text );
75 
81  virtual DtVdcVector2D position() const;
82 
88  virtual void setPosition( const DtVdcVector2D& position );
89 
95  virtual const DtVdcColor& color() const;
96 
102  virtual void setColor (const DtVdcColor& color );
103 
109  virtual bool flashing() const;
110 
116  virtual void setFlashing( bool flashing );
117 
124  virtual void setFont(const char* fontFilePath, float size);
125 
126  virtual void setRemoteGraphicSet(const std::string& setName);
127 
136  virtual void update();
137 
138  protected:
143 
145  };
146 
147 }
DtDrawControlObject.h contains the class definition for DtDrawControlObject, the base class from whic...
DtVdcVector2D myPosition
Definition: DtText2DObject.h:139
DtString myText
Definition: DtText2DObject.h:142
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:141
Definition: DtVdcVector2D.h:33
DtVdcColor myColor
Definition: DtText2DObject.h:140
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:144
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 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)