VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvDrawControl
DtText2DObject.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2006 MaK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtText2DObject.h,v $ $Revision: 1.3 $ $State: Exp $
7
******************************************************************************/
8
#pragma once
9
14
15
#include <vlutil/vlString.h>
16
17
#include <
vrvDrawControl/vrvDrawControl.h
>
18
19
#include <
vrvDrawControl/DtDrawControlObject.h
>
20
#include <
vrvDrawControl/DtVdcVector2D.h
>
21
#include <
vrvDrawControl/DtVdcColor.h
>
22
#include <
vrfExtObjects/2dGraphicalObjectTextStateRecord.h
>
23
24
#include <vl/exerciseConn.h>
25
26
namespace
vrvControlToolkit
27
{
33
class
DT_DLL_VRVDRAWCONTROL
DtText2DObject
:
public
DtDrawControlObject
34
{
35
public
:
50
DtText2DObject
(DtExerciseConn* exConn,
unsigned
id
,
const
DtString
& text,
51
const
DtVdcVector2D
& position,
DtVdcColor
color =
DtVdcColor::DtVdcWhite
,
52
bool
flashing =
false
);
53
54
// \brief Virtual destructor
55
virtual
~
DtText2DObject
();
56
57
private
:
62
DtText2DObject
();
63
64
public
:
70
virtual
DtString
text()
const
;
71
77
virtual
void
setText(
const
DtString
& text );
78
84
virtual
DtVdcVector2D
position()
const
;
85
91
virtual
void
setPosition(
const
DtVdcVector2D
& position );
92
98
virtual
const
DtVdcColor
& color()
const
;
99
105
virtual
void
setColor (
const
DtVdcColor
& color );
106
112
virtual
bool
flashing()
const
;
113
119
virtual
void
setFlashing(
bool
flashing );
120
124
virtual
void
setFont(
const
char
* fontFile,
float
size);
125
126
virtual
void
setRemoteGraphicSet(
const
std::string& setName);
127
136
virtual
void
update();
137
138
protected
:
139
DtVdcVector2D
myPosition
;
140
DtVdcColor
myColor
;
141
bool
myFlashing
;
142
DtString
myText
;
143
144
Dt2DGraphicalObjectTextStateRecord
*
myStateRecord
;
145
};
146
147
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)