VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtEllipsoidArcModelInstance.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtEllipsoidArcModelInstance.h,v $ $Revision: 1.0 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtEllipsoidArcModelInstance_H_
14
#define DtEllipsoidArcModelInstance_H_
15
16
#include <
vrvOsg/vrvOsg.h
>
17
#include <
vrvOsg/DtOsgModelInstance.h
>
18
19
#include <osg/Geode>
20
#include <osg/MatrixTransform>
21
22
namespace
makVrv
23
{
26
class
DT_DLL_VRVOSG
DtEllipsoidArcModelInstance
:
public
DtOsgModelInstance
27
{
28
public
:
29
30
struct
EllipsoidArcParameters
31
{
32
float
xLength
;
// diameter along x axis
33
float
yLength
;
// diameter along y axis
34
float
zLength
;
// diameter along z axis
35
double
azimuthMin
;
// display segment of ellipsoid with above this azimuth
36
double
azimuthMax
;
// display segment of ellipsoid with up to this azimuth
37
double
inclinationMin
;
// display segment of ellipsoid with above this inclination
38
double
inclinationMax
;
// display segment of ellipsoid with up to this azimuth
39
float
rColor
;
// RGBA red value
40
float
gColor
;
// RGBA green value
41
float
bColor
;
// RGBA blue value
42
float
aColor
;
// RGBA alpha value
43
bool
flashing
;
// Like HTML blink
44
int
maxTriangles
;
// maximum # of triangles to use
45
};
46
48
static
const
EllipsoidArcParameters
defaultParameters
;
49
50
friend
class
DtEllipsoidArcModelInstanceCreator
;
51
53
virtual
~
DtEllipsoidArcModelInstance
();
54
56
virtual
void
setDimensions(
double
x,
double
y,
double
z);
57
59
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
60
63
virtual
bool
realize(
DtModelDefinition
& definition);
64
66
virtual
void
addToConnector(
DtOsgSceneConnector
* connector );
67
69
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector );
70
72
virtual
void
setVisible
(
bool
isVisible) {}
73
74
protected
:
76
DtEllipsoidArcModelInstance
(
DtDe
& de);
77
79
virtual
void
build(
const
EllipsoidArcParameters& parameters);
80
82
EllipsoidArcParameters
myParameters
;
83
84
osg::ref_ptr<osg::Geode>
myFrontGeode
;
85
osg::ref_ptr<osg::Geode>
myBackGeode
;
86
osg::ref_ptr<osg::MatrixTransform>
myTransform
;
87
};
88
91
class
DT_DLL_VRVOSG
DtEllipsoidArcModelInstanceCreator
:
public
DtModelInstanceCreator
92
{
93
public
:
94
96
static
void
registerCreator(
DtDe
& de);
97
99
virtual
~
DtEllipsoidArcModelInstanceCreator
();
100
102
virtual
DtModelInstance
* create(
DtDe
& de);
103
104
protected
:
105
106
DtEllipsoidArcModelInstanceCreator
();
107
};
108
}
109
110
#endif
111
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)