VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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
66
virtual
void
slot_releaseResources();
67
69
virtual
void
slot_onViewCreated();
70
72
void
createText();
73
74
DtDe
&
myDe
;
75
float
myColorR
, myColorG, myColorB, myColorA;
76
std::string
myFontFile
;
77
std::string
myTextString
;
78
float
mySize
;
79
float
myWidth
;
80
float
myTopLeftX
;
81
float
myTopLeftY
;
82
DtFont::TextAlignement
myAlignment
;
83
DtTextProxy
*
myText
;
84
bool
myIsVisible
;
85
};
86
}
87
88
#endif
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)