VR-Forces 4.7 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
DtParticleSystemModelInstance.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2018 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
52
virtual
void
setIgnoreModelScaling(
bool
ignoreModelScaling);
53
55
virtual
void
setDuration(
double
seconds);
56
58
virtual
void
setWind(
const
DtVector
& windVector,
const
DtVector
& up);
59
61
virtual
void
setMaxParticlesToEmit(
int
max);
62
65
virtual
bool
realize(
DtModelDefinition
& definition);
66
67
virtual
osg::Node* buildEffectNode(
DtModelDefinition
&definition );
68
70
virtual
void
addToConnector(
DtOsgSceneConnector
* connector );
71
73
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector );
74
76
virtual
void
stop();
77
79
virtual
void
start();
80
82
virtual
void
pause();
83
84
virtual
void
resume();
85
87
virtual
void
setVisible
(
bool
isVisible) {}
88
89
protected
:
90
92
DtParticleSystemModelInstance
(
DtDe
& de);
93
94
osg::BoundingBox calculateParentExtents(osg::Node* parent);
95
97
osg::Node* findFromCache(
DtModelDefinition
& definition);
98
100
osg::Node* loadNode(
const
std::string& filenameParam,
const
std::string& resourcePathList );
101
102
protected
:
103
osg::ref_ptr<DtParticleEffect>
myEffect
;
104
};
105
108
class
DT_DLL_VRVOSG
DtParticleSystemModelInstanceCreator
:
public
DtModelInstanceCreator
109
{
110
public
:
111
113
static
void
registerCreator(
DtDe
& de);
114
116
virtual
~
DtParticleSystemModelInstanceCreator
();
117
119
virtual
DtModelInstance
* create(
DtDe
& de);
120
121
protected
:
122
DtParticleSystemModelInstanceCreator
();
123
};
124
}
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)