VR-Forces 4.3 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
DtOsgParticleSystemModel.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtOsgParticleSystemModel.h,v $ $Revision: 1.17 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtOsgParticleSystemModel_H_
14
#define DtOsgParticleSystemModel_H_
15
16
#include <
vrvOsg/vrvOsg.h
>
17
#include <
vrvCore/DtParticleSystemModel.h
>
18
#include <osg/Group>
19
#include <matrix/vlVector.h>
20
21
namespace
makVrv
22
{
23
class
DtOsgSceneConnector;
24
class
DtParticleSystemModelInstance;
25
28
class
DT_DLL_VRVOSG
DtOsgParticleSystemModel
:
public
DtParticleSystemModel
29
{
30
public
:
31
33
DtOsgParticleSystemModel
(
DtDe
& de,
DtUniqueID
id
);
34
36
virtual
~
DtOsgParticleSystemModel
();
37
39
virtual
void
setModelDefinition(
const
std::string& str );
40
43
virtual
std::string className()
const
;
44
46
virtual
void
setIntensity(
float
intensity);
47
49
virtual
void
setScale(
float
scale);
50
52
virtual
void
setDuration(
double
seconds);
53
55
56
virtual
void
setPosition(
int
vtx,
const
DtVector
& position);
57
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation);
59
61
virtual
void
setWindDirection(
const
DtVector
& direction);
62
64
virtual
void
stop();
65
67
virtual
void
start();
68
70
virtual
void
pause();
71
72
virtual
void
resume();
73
75
virtual
void
setVisible(
bool
isVisible);
76
78
virtual
void
setSolid(
bool
solid);
79
80
protected
:
81
82
virtual
void
addToScene(
const
DtUniqueID
&
id
,
int
modelSet,
83
int
visualizerType);
84
85
virtual
void
removeFromScene();
86
87
protected
:
88
virtual
void
slot_handleWindDirectionChanged(
float
dir);
89
virtual
void
slot_handleWindSpeedChanged(
float
speed);
90
virtual
void
updateWind();
91
92
DtOsgSceneConnector
*
mySceneConnector
;
93
double
myIntensity
;
94
bool
myIntensitySet
;
95
double
myScale
;
96
bool
myScaleSet
;
97
double
myDuration
;
98
bool
myDurationSet
;
99
bool
myOrientUp
;
100
bool
myPositionSet
;
101
bool
myOrientationSet
;
102
DtVector
myPosition
;
103
DtTaitBryan
myOrientation
;
104
DtDe
&
myDe
;
105
106
float
myWindSpeed
;
107
float
myWindDirection
;
108
DtVector
myUp
;
109
bool
myUpSet
;
110
};
111
}
112
113
#endif
114
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)