VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgWindowTextInstance.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtOsgWindowTextInstance.h,v $ $Revision: 1.17 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtOsgWindowTextInstance_H_
14
#define DtOsgWindowTextInstance_H_
15
16
#include <
vrvOsg/vrvOsg.h
>
17
#include <
vrvCore/DtWindowTextInstance.h
>
18
#include <
vrvGraphics/DtFont.h
>
19
#include <osg/Vec2>
20
21
namespace
makVrv
22
{
23
class
DtDe;
24
class
DtTextProxy;
25
29
class
DT_DLL_VRVOSG
DtOsgWindowTextInstance
:
public
DtWindowTextInstance
30
{
31
public
:
33
DtOsgWindowTextInstance
(
DtDe
& de);
34
36
virtual
~
DtOsgWindowTextInstance
();
37
39
virtual
void
setTopLeftCorner(
float
x,
float
y) ;
40
42
virtual
void
setVisible(
bool
isVisible);
43
45
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
46
48
virtual
void
setText(
const
std::string& textString);
49
51
virtual
void
setFont(
const
std::string& fontFile,
float
sizeInPoints);
52
54
virtual
void
setTextBoxWidth(
unsigned
int
widthInPixels);
55
57
virtual
void
setAlignment(
DtWindowText::TextAlignment
alignment);
58
60
virtual
bool
visible()
const
;
61
62
protected
:
63
65
void
createText();
66
67
DtDe
&
myDe
;
68
float
myColorR
, myColorG, myColorB, myColorA;
69
std::string
myFontFile
;
70
std::string
myTextString
;
71
float
mySize
;
72
float
myWidth
;
73
float
myTopLeftX
;
74
float
myTopLeftY
;
75
DtFont::TextAlignement
myAlignment
;
76
DtTextProxy
*
myText
;
77
};
78
}
79
80
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)