VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgWindowEllipseInstance.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtOsgWindowEllipseInstance.h,v $ $Revision: 1.17 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtOsgWindowEllipseInstance_H_
14
#define DtOsgWindowEllipseInstance_H_
15
16
#include <
vrvOsg/vrvOsg.h
>
17
#include <
vrvCore/DtWindowEllipseInstance.h
>
18
#include <osg/Vec2>
19
20
namespace
makVrv
21
{
22
class
DtDe;
23
class
DtPolygon;
24
28
class
DT_DLL_VRVOSG
DtOsgWindowEllipseInstance
:
public
DtWindowEllipseInstance
29
{
30
public
:
32
DtOsgWindowEllipseInstance
(
DtDe
& de);
33
35
virtual
~
DtOsgWindowEllipseInstance
();
36
38
virtual
void
setVisible(
bool
isVisible);
39
41
virtual
void
setFillPattern(
unsigned
int
fillPattern);
42
44
virtual
void
setFill(
bool
fill);
45
47
virtual
void
setScale(
double
scale);
48
50
virtual
void
setRotation(
double
rotation);
51
53
virtual
void
setNumVertices(
unsigned
int
numVertices);
54
57
virtual
void
setDimensions(
double
xLength,
double
yLength);
58
61
virtual
void
setCenter(
double
x,
double
y);
62
64
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
65
67
virtual
bool
visible();
68
69
protected
:
71
static
osg::Vec2 rotate(
const
osg::Vec2& v,
double
rad);
72
74
static
osg::Vec2 translate(
const
osg::Vec2& v,
const
osg::Vec2& translation );
75
77
static
osg::Vec2 scale(
const
osg::Vec2& v,
double
s );
78
80
virtual
void
updateVertices();
81
84
virtual
void
createPolygon();
85
86
DtDe
&
myDe
;
87
DtPolygon
*
myPolygon
;
88
89
double
myRotation
;
90
double
myScale
;
91
unsigned
int
myFillPattern
;
92
float
myColorR
, myColorG, myColorB, myColorA;
93
bool
myFill
;
94
osg::Vec2
myDimensions
;
95
osg::Vec2
myCenter
;
96
int
myNumVertices
;
97
};
98
}
99
100
#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
)