VR-Forces 4.3.1 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) 2012 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
57
virtual
bool
realize(
DtModelDefinition
& definition);
58
59
virtual
osg::Node* buildEffectNode(
DtModelDefinition
&definition );
60
62
virtual
void
addToConnector(
DtOsgSceneConnector
* connector );
63
65
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector );
66
68
virtual
void
stop();
69
71
virtual
void
start();
72
74
virtual
void
pause();
75
76
virtual
void
resume();
77
79
virtual
void
setVisible
(
bool
isVisible) {}
80
81
protected
:
82
84
DtParticleSystemModelInstance
(
DtDe
& de);
85
86
osg::BoundingBox calculateParentExtents(osg::Node* parent);
87
89
osg::Node* findFromCache(
DtModelDefinition
& definition);
90
92
osg::Node* loadNode(
const
std::string& filenameParam,
const
std::string& resourcePathList );
93
94
protected
:
95
osg::ref_ptr<DtParticleEffect>
myEffect
;
96
};
97
100
class
DT_DLL_VRVOSG
DtParticleSystemModelInstanceCreator
:
public
DtModelInstanceCreator
101
{
102
public
:
103
105
static
void
registerCreator(
DtDe
& de);
106
108
virtual
~
DtParticleSystemModelInstanceCreator
();
109
111
virtual
DtModelInstance
* create(
DtDe
& de);
112
113
protected
:
114
DtParticleSystemModelInstanceCreator
();
115
};
116
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)