VR-Vantage 2.7 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvGraphics
DtPolygon.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 <
vrvGraphics/vrvGraphics.h
>
13
14
namespace
makVrv
15
{
16
19
class
DT_DLL_VRVGRAPHICS
DtPolygon
20
{
21
public
:
22
23
virtual
~
DtPolygon
();
24
29
virtual
void
setVertexCount(
unsigned
int
vertexCount ) = 0;
30
32
virtual
unsigned
int
vertexCount()
const
= 0;
33
37
virtual
void
set2DPositions(
const
std::vector<float>& vertices ) = 0;
38
45
virtual
void
set2DPosition(
unsigned
int
index
,
float
x
,
float
y
) = 0;
46
50
virtual
void
get2DPosition(
unsigned
int
index,
51
float
& x,
float
& y )
const
= 0;
52
59
virtual
void
set3DPosition(
unsigned
int
index,
60
float
x,
float
y,
float
z
,
float
w
) = 0;
61
68
virtual
void
get3DPosition(
unsigned
int
index,
69
float
& x,
float
& y,
float
& z,
float
& w )
const
= 0;
70
77
virtual
void
set3DDirectionAndLength(
unsigned
int
index,
78
float
x,
float
y,
float
z,
float
l
) = 0;
79
84
virtual
void
setStipple(
unsigned
int
stipplePattern ) = 0;
85
92
virtual
void
setVertexColor(
unsigned
int
index,
93
float
r
,
float
g
,
float
b
,
float
a
) = 0;
94
101
virtual
void
getVertexColor(
unsigned
int
index,
102
float
& r,
float
& g,
float
& b,
float
& a ) = 0;
103
109
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a ) = 0;
110
116
virtual
void
getColor(
float
& r,
float
& g,
float
& b,
float
& a )
const
= 0;
117
120
virtual
void
setEventsEnabled(
bool
b,
unsigned
long
long
userData = 0) = 0;
121
123
virtual
int
group
()
const
= 0;
124
126
virtual
void
setGroup(
int
) = 0;
127
};
128
129
}
130
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)