VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
Tutorials
File List
File Members
include
vrvGraphics
DtQuad.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2011 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvGraphics/vrvGraphics.h
>
13
#include <
vrvGraphics/DtOverlayResourceProvider.h
>
14
15
namespace
makVrv
16
{
17
18
class
DtQuadProxy;
19
class
DtBoundingBox;
20
class
DtQuadRenderer;
21
class
DtOverlayRenderer;
22
25
class
DT_DLL_VRVGRAPHICS
DtQuad
26
{
27
public
:
28
29
enum
FillType
30
{
31
Fill_Solid = 0,
32
Fill_Stipple
,
33
Fill_Texture
34
};
35
36
public
:
37
39
DtQuad
(
DtQuadRenderer
& renderer );
40
42
DtQuad
(
DtOverlayRenderer
& renderer );
43
45
~
DtQuad
();
46
48
void
setPosition(
float
x
,
float
y
,
float
z
,
float
w
);
49
51
void
getPosition(
float
&
x
,
float
&
y
,
float
&
z
,
float
&
w
)
const
;
52
54
void
setRotation(
float
angle
);
55
57
void
getRotation(
float
&
angle
)
const
;
58
61
void
setGroup(
float
order
);
62
64
float
group
()
const
;
65
67
void
setColor(
float
r
,
float
g
,
float
b
,
float
a
);
68
70
void
getColor(
float
&
r
,
float
&
g
,
float
&
b
,
float
&
a
)
const
;
71
73
void
setBounds(
const
DtBoundingBox
& bounds );
74
76
void
getBounds(
DtBoundingBox
& bounds )
const
;
77
80
void
setPoints(
const
float
points
[8] );
81
84
void
getPoints(
float
points
[8] );
85
89
void
setFillType( FillType
type
);
90
92
FillType fillType()
const
;
93
98
void
setFillParameter(
unsigned
int
param
,
unsigned
int
fullStipplePattern[32] = 0 );
99
101
void
setTextureParameter(
DtOverlayResourceProvider::NativeResourceHandle
texture
,
102
float
left = 0.0
f
,
float
right = 1.0
f
,
float
bottom = 0.0
f
,
float
top = 1.0
f
);
103
105
DtOverlayResourceProvider::NativeResourceHandle
textureParameter()
const
;
106
107
protected
:
108
109
DtQuadProxy
*
myProxy
;
110
111
};
112
113
}
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)