VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsg
DtOsgTacticalSmokeModel.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 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
setSolid(
bool
solid);
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
100
//@name Inherited DtModel methods
102
104
virtual
void
addToScene(
105
const
DtUniqueID
&
id
,
int
modelSet,
int
visualizerType);
106
108
virtual
void
removeFromScene();
109
111
virtual
void
setModelDefinition(
const
std::string& str);
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
};
147
148
}
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
)