VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
DtGraphAttribute.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2012 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
#include <
vrvOsg/DtAttribute.h
>
14
#include <
vrvOsg/DtBaseOutlineAttribute.h
>
15
16
#include <
vrvCore/DtWidget.h
>
17
18
#include <
vrvGraphics/DtBoundingBox.h
>
19
20
#include <vector>
21
22
namespace
makVrv
23
{
24
25
class
DtDe;
26
class
DtQuad;
27
class
DtLineSegment;
28
31
class
DT_DLL_VRVOSG
DtGraphAttribute
:
public
DtAttribute
32
{
33
public
:
34
39
DtGraphAttribute
(
DtDe
& de,
int
maxValues );
40
42
virtual
~
DtGraphAttribute
();
43
45
virtual
void
setOffset(
double
x,
double
y );
46
49
virtual
void
setPosition(
float
x,
float
y,
float
z,
float
w );
50
52
virtual
void
getMinSize(
double
& xOut,
double
& yOut );
53
55
virtual
void
setSize(
double
x,
double
y );
56
58
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a );
59
61
virtual
void
setPoint(
unsigned
int
pointIndex,
double
x,
double
y );
62
64
virtual
void
clear();
65
67
virtual
void
setShadowText(
bool
enabled );
68
70
virtual
void
setVisible(
bool
visible );
71
73
virtual
bool
visible()
const
;
74
77
virtual
void
setOverlay(
unsigned
int
overlayId );
78
81
virtual
void
setGroup(
unsigned
int
group );
82
83
protected
:
84
86
virtual
void
draw();
87
88
protected
:
89
90
typedef
std::vector<DtLineSegment*>
LineSegments
;
91
LineSegments
myLineSegments
;
92
93
typedef
std::vector<DtQuad*>
Quads
;
94
Quads
myQuads
;
95
96
typedef
std::vector<Dt2dPoint>
DtPointList
;
97
DtPointList
myPoints
;
98
99
DtBaseOutlineAttribute
myOutline
;
100
101
DtDe
&
myDe
;
102
103
float
myX
;
104
float
myY
;
105
float
myZ
;
106
float
myW
;
107
108
double
myOffsetX
;
109
double
myOffsetY
;
110
111
double
mySizeX
;
112
double
mySizeY
;
113
114
float
myR
;
115
float
myG
;
116
float
myB
;
117
float
myA
;
118
119
bool
myVisible
;
120
121
int
myMaxValues
;
122
123
};
124
125
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)