VR-Forces 4.10 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) 2019 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
29
namespace
makVrv
30
{
31
class
DtParticleEffect;
32
35
class
DT_DLL_VRVOSG
DtParticleSystemModelInstance
:
public
DtOsgModelInstance
36
{
37
public
:
38
40
virtual
void
setIntensity(
float
intensity) = 0;
41
43
virtual
void
setScale(
float
scale) = 0;
44
48
virtual
void
setIgnoreModelScaling(
bool
ignoreModelScaling) = 0;
49
51
virtual
bool
ignoreModelScaling()
const
= 0;
52
54
virtual
void
setDuration(
double
seconds) = 0;
55
57
virtual
void
setWind(
const
DtVector
& windVector,
const
DtVector
& up) = 0;
58
60
virtual
void
setMaxParticlesToEmit(
int
max) = 0;
61
64
virtual
bool
realize(
DtModelDefinition
& definition) = 0;
65
67
virtual
osg::Node* getOrLoadFromDefinition(
DtModelDefinition
&definition ) = 0;
68
70
virtual
void
addToConnector(
DtOsgSceneConnector
* connector ) = 0;
71
73
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector ) = 0;
74
76
virtual
void
stop() = 0;
77
79
virtual
void
start() = 0;
80
82
virtual
void
pause() = 0;
83
85
virtual
void
resume() = 0;
86
88
virtual
void
setVisible(
bool
isVisible) = 0;
89
91
virtual
void
setOffset(
const
DtVector
&
offset
) = 0;
92
94
virtual
void
setArtPart(
int
artPart) = 0;
95
97
virtual
void
setPosition(
double
x,
double
y,
double
z) = 0;
98
100
virtual
void
setPosition(
int
index,
double
x,
double
y,
double
z) = 0;
101
102
protected
:
103
105
DtParticleSystemModelInstance
(
DtDe
& de) :
DtOsgModelInstance
(de) {
106
;
107
}
108
109
110
};
111
112
}
DT_DLL_VRVOSG
#define DT_DLL_VRVOSG
Definition:
vrvOsg.h:23
makVrv::DtModelDefinition
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition:
DtModelDefinition.h:38
DtOsgModelInstance.h
Contains makVrv::DtOsgModelInstance class.
makVrv::DtOsgSceneConnector
DtOsgSceneConnector is used by models to create an OSG position/orientation transform so that it can ...
Definition:
DtOsgSceneConnector.h:76
DtVector
makVrv::DtOsgModelInstance
The base class for simple OSG based model instances.
Definition:
DtOsgModelInstance.h:76
DtParticleEffect.h
makVrv::DtParticleSystemModelInstance
A virtual base class for a particle effect from a model definition.
Definition:
DtParticleSystemModelInstance.h:35
vrvOsg.h
Contains DLL export macros.
makVrv::DtDe
The DtDe is the core component of any VR-Vantage application.
Definition:
DtDe.h:69
DtOsgRibbon.h
Base class for ribbons.
offset
voidpf uLong offset
Definition:
ioapi.h:42
makVrv::DtParticleSystemModelInstance::DtParticleSystemModelInstance
DtParticleSystemModelInstance(DtDe &de)
Create the effect, no op constructor.
Definition:
DtParticleSystemModelInstance.h:105
Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (
www.mak.com
)