OpenSceneGraph 3.6.5
ExplosionEffect
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2 *
3 * This library is open source and may be redistributed and/or modified under
4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5 * (at your option) any later version. The full license is in LICENSE file
6 * included with this distribution, and on the openscenegraph.org website.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * OpenSceneGraph Public License for more details.
12*/
13
14#ifndef OSGPARTICLE_EXPLOSIONEFFECT
15#define OSGPARTICLE_EXPLOSIONEFFECT
16
20
21namespace osgParticle
22{
23
25 {
26 public:
27
28 explicit ExplosionEffect(bool automaticSetup=true);
29
30 ExplosionEffect(const osg::Vec3& position, float scale=1.0f, float intensity=1.0f);
31
33
35
36 virtual void setDefaults();
37
38 virtual void setUpEmitterAndProgram();
39
40 virtual Emitter* getEmitter() { return _emitter.get(); }
41 virtual const Emitter* getEmitter() const { return _emitter.get(); }
42
43 virtual Program* getProgram() { return _program.get(); }
44 virtual const Program* getProgram() const { return _program.get(); }
45
46 protected:
47
48 virtual ~ExplosionEffect() {}
49
52
53 };
54}
55
56#endif
Vec3f Vec3
Definition Vec3:21
The osgParticle library is a NodeKit that extends the core scene graph to support particle effects.
Definition AccelOperator:27
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
An abstract base class for particle emitters.
Definition Emitter:35
osg::ref_ptr< FluidProgram > _program
Definition ExplosionEffect:51
virtual void setUpEmitterAndProgram()
virtual const Emitter * getEmitter() const
Definition ExplosionEffect:41
ExplosionEffect(bool automaticSetup=true)
virtual Program * getProgram()
Definition ExplosionEffect:43
META_Node(osgParticle, ExplosionEffect)
ExplosionEffect(const osg::Vec3 &position, float scale=1.0f, float intensity=1.0f)
virtual Emitter * getEmitter()
Definition ExplosionEffect:40
ExplosionEffect(const ExplosionEffect &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
osg::ref_ptr< ModularEmitter > _emitter
Definition ExplosionEffect:50
virtual ~ExplosionEffect()
Definition ExplosionEffect:48
virtual const Program * getProgram() const
Definition ExplosionEffect:44
ParticleEffect(bool automaticSetup=true)
Definition ParticleEffect:27
An abstract ParticleProcessor descendant for modifying particles "on the fly" during the cull travers...
Definition Program:36
#define OSGPARTICLE_EXPORT
Definition Export:40

osg logo
Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.