OpenSceneGraph 3.6.5
PointPlacer
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//osgParticle - Copyright (C) 2002 Marco Jez
14
15#ifndef OSGPARTICLE_POINT_PLACER
16#define OSGPARTICLE_POINT_PLACER 1
17
19#include <osgParticle/Particle>
20
21#include <osg/CopyOp>
22#include <osg/Object>
23
24namespace osgParticle
25{
26
32 public:
33 inline PointPlacer();
34 inline PointPlacer(const PointPlacer& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
35
37
42 inline void place(Particle* P) const;
43
45 inline osg::Vec3 getControlPosition() const;
46
47 protected:
48 virtual ~PointPlacer() {}
49 PointPlacer& operator=(const PointPlacer&) { return *this; }
50 };
51
52 // INLINE FUNCTIONS
53
56 {
57 }
58
59 inline PointPlacer::PointPlacer(const PointPlacer& copy, const osg::CopyOp& copyop)
60 : CenteredPlacer(copy, copyop)
61 {
62 }
63
64 inline void PointPlacer::place(Particle* P) const
65 {
67 }
68
69
71 {
72 return getCenter();
73 }
74
75}
76
77
78#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
CenteredPlacer()
Definition CenteredPlacer:56
const osg::Vec3 & getCenter() const
Get the center point.
Definition CenteredPlacer:66
Implementation of a particle.
Definition Particle:47
void setPosition(const osg::Vec3 &p)
Set the position vector.
Definition Particle:483
PointPlacer()
Definition PointPlacer:54
PointPlacer & operator=(const PointPlacer &)
Definition PointPlacer:49
virtual ~PointPlacer()
Definition PointPlacer:48
osg::Vec3 getControlPosition() const
return the control position
Definition PointPlacer:70
void place(Particle *P) const
Place a particle.
Definition PointPlacer:64
META_Object(osgParticle, PointPlacer)

osg logo
Generated at Wed Jul 23 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.