VR-Forces Development_Version 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
DtParticleSystemModelInstance.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
#include <
vrvOsg/vrvOsg.h
>
12
#include <
vrvOsg/DtOsgModelInstance.h
>
13
#include <
vrvOsg/DtParticleEffect.h
>
14
#include <
vrvOsg/DtOsgRibbon.h
>
15
16
#include <matrix/vlVector.h>
17
18
#include <osg/ref_ptr>
19
#include <osg/BoundingBox>
20
#include <osg/MatrixTransform>
21
22
namespace
osg
23
{
24
class
Geode;
25
class
Group
;
26
}
27
28
namespace
makVrv
29
{
30
class
DtParticleEffect;
31
34
class
DT_DLL_VRVOSG
DtParticleSystemModelInstance
:
public
DtOsgModelInstance
35
{
36
public
:
37
38
friend
class
DtParticleSystemModelInstanceCreator
;
39
41
virtual
~
DtParticleSystemModelInstance
();
42
44
virtual
void
setIntensity(
float
intensity);
45
47
virtual
void
setScale(
float
scale);
48
50
virtual
void
setDuration(
double
seconds);
51
53
virtual
void
setWind(
const
DtVector
& windVector,
const
DtVector
& up);
54
56
virtual
void
setMaxParticlesToEmit(
int
max);
57
60
virtual
bool
realize(
DtModelDefinition
& definition);
61
62
virtual
osg::Node* buildEffectNode(
DtModelDefinition
&definition );
63
65
virtual
void
addToConnector(
DtOsgSceneConnector
* connector );
66
68
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector );
69
71
virtual
void
stop();
72
74
virtual
void
start();
75
77
virtual
void
pause();
78
79
virtual
void
resume();
80
82
virtual
void
setVisible
(
bool
isVisible) {}
83
84
protected
:
85
87
DtParticleSystemModelInstance
(
DtDe
& de);
88
89
osg::BoundingBox calculateParentExtents(osg::Node* parent);
90
92
osg::Node* findFromCache(
DtModelDefinition
& definition);
93
95
osg::Node* loadNode(
const
std::string& filenameParam,
const
std::string& resourcePathList );
96
97
protected
:
98
osg::ref_ptr<DtParticleEffect>
myEffect
;
99
};
100
103
class
DT_DLL_VRVOSG
DtParticleSystemModelInstanceCreator
:
public
DtModelInstanceCreator
104
{
105
public
:
106
108
static
void
registerCreator(
DtDe
& de);
109
111
virtual
~
DtParticleSystemModelInstanceCreator
();
112
114
virtual
DtModelInstance
* create(
DtDe
& de);
115
116
protected
:
117
DtParticleSystemModelInstanceCreator
();
118
};
119
}
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)