VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
DtOsg3DVolumetricLineModel.h
Go to the documentation of this file.
1
// /******************************************************************************
2
// ** Copyright (c) 2015 MAK Technologies, Inc.
3
// ** All rights reserved.
4
// ******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
#include <
vrvCore/Dt3DVolumetricLineModel.h
>
14
#include <matrix/coordTransform.h>
15
16
#include <vector>
17
18
#include <matrix/vlVector.h>
19
20
namespace
geos
21
{
22
namespace
geom
23
{
24
class
CoordinateSequence;
25
}
26
}
27
28
namespace
makVrv
29
{
30
class
DtOsgSceneConnector;
31
38
class
DT_DLL_VRVOSG
DtOsg3DVolumetricLineModel
:
public
Dt3DVolumetricLineModel
39
{
40
public
:
42
DtOsg3DVolumetricLineModel
(
DtDe
& de,
DtUniqueID
id
);
43
45
virtual
~
DtOsg3DVolumetricLineModel
();
46
48
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a );
49
51
virtual
void
setInsideColor(
float
r,
float
g,
float
b,
float
a );
52
54
virtual
void
getInsideColor(
float
& r,
float
& g,
float
& b,
float
& a);
55
57
virtual
void
setOutsideColor(
float
r,
float
g,
float
b,
float
a );
58
60
virtual
void
getOutsideColor(
float
& r,
float
& g,
float
& b,
float
& a);
61
63
virtual
void
setPhysicalLineHeight(
double
height );
64
66
virtual
void
setPhysicalLineWidth(
double
height );
67
69
virtual
void
setDimensions(
double
w,
double
h );
70
72
virtual
void
setPickable(
bool
);
73
75
virtual
void
setSolid(
bool
);
76
78
virtual
void
setScribed(
bool
);
79
81
virtual
void
setScribeColor(
float
r,
float
g,
float
b,
float
a );
82
84
virtual
void
setScribeWidth(
float
);
85
87
virtual
void
addPoint(
const
DtVector
& position,
int
index = -1);
88
90
virtual
void
removePoint(
int
index);
91
93
virtual
void
removePosition(
int
index);
94
96
virtual
void
setPoint(
int
index,
const
DtVector
& position);
97
99
virtual
void
setPosition(
int
index,
const
DtVector
& position);
100
102
void
setOrigin(
const
DtVector
&
origin
);
103
105
virtual
void
setVisible(
bool
isVisible);
106
108
virtual
void
setFill(
bool
f);
109
111
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation );
112
116
virtual
void
setScribeAllPolygons(
bool
);
117
121
virtual
void
setIsSupportModel(
bool
isSupport);
122
125
virtual
void
setUseDynamicOrigin(
bool
);
126
128
virtual
void
setModelDefinition(
const
std::string& str );
129
130
protected
:
132
virtual
void
update();
133
135
virtual
void
needsUpdate();
136
137
// @name Inherited DtModel methods
138
// @{
139
141
virtual
void
addToScene(
const
DtUniqueID
& sceneObjectId,
int
modelSet,
int
visualizerType );
142
144
virtual
void
removeFromScene();
145
146
// @}
147
148
protected
:
149
DtOsgSceneConnector
*
mySceneConnector
;
150
DtUniqueID
myParentId
;
151
DtVector
myOrigin
;
152
153
bool
myNeedsUpdate
;
154
bool
myGeometryChanged
;
155
float
myPhysicalLineWidth
;
156
float
myPhysicalLineHeight
;
157
bool
myUseDynamicOrigin
;
158
159
geos::geom::CoordinateSequence*
myCoordinateSequence
;
160
DtCoordTransform
myGeocentricToTopographicTransform
;
161
DtCoordTransform
myTopographicToGeocentricTransform
;
162
};
163
}
164
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)