VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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);
54
57
//virtual void setPosition( const DtVector& position);
58
61
virtual
bool
realize(
DtModelDefinition
& definition);
62
63
virtual
osg::Node* buildEffectNode(
DtModelDefinition
&definition );
64
66
virtual
void
addToConnector(
DtOsgSceneConnector
* connector );
67
69
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector );
70
72
virtual
void
stop();
73
75
virtual
void
start();
76
78
virtual
void
pause();
79
80
virtual
void
resume();
81
83
virtual
void
setVisible
(
bool
isVisible) {}
84
85
protected
:
86
88
DtParticleSystemModelInstance
(
DtDe
& de);
89
90
osg::BoundingBox calculateParentExtents(osg::Node* parent);
91
93
osg::Node* findFromCache(
DtModelDefinition
& definition);
94
96
osg::Node* loadNode(
const
std::string& filenameParam,
const
std::string& resourcePathList );
97
98
protected
:
99
osg::ref_ptr<DtParticleEffect>
myEffect
;
100
};
101
104
class
DT_DLL_VRVOSG
DtParticleSystemModelInstanceCreator
:
public
DtModelInstanceCreator
105
{
106
public
:
107
109
static
void
registerCreator(
DtDe
& de);
110
112
virtual
~
DtParticleSystemModelInstanceCreator
();
113
115
virtual
DtModelInstance
* create(
DtDe
& de);
116
117
protected
:
118
DtParticleSystemModelInstanceCreator
();
119
};
120
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)