VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
DtOsgRectangularPyramidModel.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
14
#include <
vrvCore/DtRectangularPyramidModel.h
>
15
16
namespace
makVrv
17
{
18
class
DtOsgSceneConnector;
19
}
20
21
namespace
makVrv
22
{
23
26
class
DT_DLL_VRVOSG
DtOsgRectangularPyramidModel
27
:
public
DtRectangularPyramidModel
28
{
29
public
:
30
33
DtOsgRectangularPyramidModel
(
makVrv::DtDe
& de,
makVrv::DtUniqueID
&
id
);
34
36
virtual
~
DtOsgRectangularPyramidModel
();
37
38
// @name Inherited DtModel methods
39
// @{
40
43
virtual
std::string className()
const
;
44
48
virtual
void
addToScene(
const
makVrv::DtUniqueID
& sceneObjectId,
49
int
modelSet,
int
visualizerType );
50
54
virtual
void
removeFromScene();
55
61
virtual
void
setModelDefinition(
const
std::string& str );
62
68
virtual
void
setPosition(
int
vtx,
const
DtVector
& position );
69
75
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation );
76
78
79
// @name Inherited DtGpsAccuracyModel methods
80
// @{
81
87
virtual
void
setRelativePosition(
double
x,
double
y,
double
z );
88
94
virtual
void
setRelativeOrientation(
const
DtTaitBryan& ori );
95
98
virtual
void
setSize(
double
slantHeight );
99
106
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a );
107
114
virtual
void
setInnerColor(
float
r,
float
g,
float
b,
float
a );
115
122
virtual
void
setOuterColor(
float
r,
float
g,
float
b,
float
a );
123
126
virtual
void
setXHalfAngle(
double
xHalfAngle );
127
130
virtual
void
setYHalfAngle(
double
yHalfAngle );
131
136
virtual
void
setShowLines(
bool
showLines );
137
142
virtual
void
setLinesHaveAlpha(
bool
lineAlpha );
143
147
virtual
void
setIsSupportModel(
bool
isSupport);
148
150
151
protected
:
153
virtual
void
update();
154
156
virtual
void
needsUpdate();
157
158
protected
:
159
160
makVrv::DtOsgSceneConnector
*
mySceneConnector
;
161
DtUniqueID
myTargetObjectId
;
162
DtUniqueID
myHostObjectId
;
163
DtVector
myRelativePosition
;
164
bool
myNeedsUpdate
;
165
};
166
167
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)