VR-Forces 4.6.1 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
DtOsgTacticalSmokeModel.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 <
vrvOsg/DtTacticalSmokeModelInstance.h
>
14
15
#include <
vrvCore/DtTacticalSmokeModel.h
>
16
#include <
vrvCore/DtUniqueID.h
>
17
18
#include <matrix/vlVector.h>
19
#include <matrix/vlTaitBryan.h>
20
21
namespace
makVrv
22
{
23
24
class
DtDe;
25
class
DtOsgSceneConnector;
26
29
class
DT_DLL_VRVOSG
DtOsgTacticalSmokeModel
:
public
DtTacticalSmokeModel
30
{
31
public
:
32
36
DtOsgTacticalSmokeModel
(
DtDe
& de,
DtUniqueID
id
);
37
39
virtual
~
DtOsgTacticalSmokeModel
();
40
44
virtual
std::string className()
const
;
45
46
//@name Distributed Interface
48
52
virtual
void
setPosition(
int
vtx,
const
DtVector
& pos);
53
57
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& ori);
58
61
virtual
void
setVisible(
bool
isVisible);
62
66
virtual
void
setIsSupportModel(
bool
isSupport);
67
72
virtual
void
setDensity(
int
vtx,
double
dens);
73
80
virtual
void
setOneSigmas(
int
vtx,
const
DtVector
& sigma);
81
84
virtual
void
setWindDirection(
const
DtVector
& winddir);
85
87
virtual
void
start();
88
90
virtual
void
stop();
91
93
virtual
void
pause();
94
96
virtual
void
resume();
97
99
101
virtual
void
setModelDefinition(
const
std::string& str);
102
103
//@name Inherited DtModel methods
105
107
virtual
void
addToScene(
108
const
DtUniqueID
&
id
,
int
modelSet,
int
visualizerType);
109
111
virtual
void
removeFromScene();
112
114
115
private
:
117
void
removeInstanceFromScene();
118
121
DtTacticalSmokeModelInstance
* tacticalSmokeModelInstance()
122
{
123
return
dynamic_cast<
DtTacticalSmokeModelInstance
*
>
(modelInstance());
124
}
125
126
private
:
129
DtOsgTacticalSmokeModel
();
130
133
DtOsgTacticalSmokeModel
(
const
DtOsgTacticalSmokeModel
&);
134
137
DtOsgTacticalSmokeModel
& operator=(
const
DtOsgTacticalSmokeModel
&);
138
139
private
:
140
DtOsgSceneConnector
*
mySceneConnector
;
141
DtVector
myPosition
;
142
DtTaitBryan
myOrientation
;
143
bool
myPositionIsSet
;
144
bool
myOrientationIsSet
;
145
bool
myOrientUp
;
146
bool
myBasePositionSet
;
147
};
148
149
}
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)