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
DtOsgParticleSystemModel.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/DtParticleSystemModel.h
>
14
#include <osg/Group>
15
#include <matrix/vlVector.h>
16
17
namespace
makVrv
18
{
19
class
DtOsgSceneConnector;
20
class
DtParticleSystemModelInstance;
21
24
class
DT_DLL_VRVOSG
DtOsgParticleSystemModel
:
public
DtParticleSystemModel
25
{
26
public
:
27
29
DtOsgParticleSystemModel
(
DtDe
& de,
DtUniqueID
id
);
30
32
virtual
~
DtOsgParticleSystemModel
();
33
35
virtual
void
setModelDefinition(
const
std::string& str );
36
39
virtual
std::string className()
const
;
40
42
virtual
void
setIntensity(
float
intensity);
43
45
virtual
void
setScale(
float
scale);
46
48
virtual
void
setDuration(
double
seconds);
49
51
52
virtual
void
setPosition(
int
vtx,
const
DtVector
& position);
53
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation);
55
57
virtual
void
setWindDirection(
const
DtVector
& direction);
58
60
virtual
void
setMaxParticlesToEmit(
int
max);
61
63
virtual
void
stop();
64
66
virtual
void
start();
67
69
virtual
void
pause();
70
71
virtual
void
resume();
72
74
virtual
void
setVisible(
bool
isVisible);
75
79
virtual
void
setIsSupportModel(
bool
isSupport);
80
81
protected
:
82
83
virtual
void
addToScene(
const
DtUniqueID
&
id
,
int
modelSet,
84
int
visualizerType);
85
86
virtual
void
addToSceneAsProp(
const
DtUniqueID
& sceneObjectId);
87
88
virtual
void
removeFromScene();
89
90
protected
:
91
virtual
void
slot_handleWindDirectionChanged(
float
dir);
92
virtual
void
slot_handleWindSpeedChanged(
float
speed);
93
virtual
void
updateWind();
94
95
DtOsgSceneConnector
*
mySceneConnector
;
96
double
myIntensity
;
97
bool
myIntensitySet
;
98
double
myScale
;
99
bool
myScaleSet
;
100
double
myDuration
;
101
bool
myDurationSet
;
102
bool
myOrientUp
;
103
bool
myPositionSet
;
104
bool
myOrientationSet
;
105
DtVector
myPosition
;
106
DtTaitBryan
myOrientation
;
107
108
float
myWindSpeed
;
109
float
myWindDirection
;
110
int
myMaxParticlesToEmit
;
111
DtVector
myUp
;
112
bool
myUpSet
;
113
};
114
}
115
116
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
)