15#ifndef OSGPARTICLE_CENTERED_PLACER
16#define OSGPARTICLE_CENTERED_PLACER 1
34 virtual const char*
libraryName()
const {
return "osgParticle"; }
35 virtual const char*
className()
const {
return "CenteredPlacer"; }
45 inline void setCenter(
float x,
float y,
float z);
57 :
Placer(), center_(0, 0, 0)
62 :
Placer(copy, copyop), center_(copy.center_)
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
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
void set(value_type x, value_type y, value_type z)
Definition Vec3f:67
virtual bool isSameKindAs(const osg::Object *obj) const
Definition CenteredPlacer:36
CenteredPlacer()
Definition CenteredPlacer:56
virtual ~CenteredPlacer()
Definition CenteredPlacer:48
virtual const char * className() const
return the name of the object's class type.
Definition CenteredPlacer:35
const osg::Vec3 & getCenter() const
Get the center point.
Definition CenteredPlacer:66
void setCenter(const osg::Vec3 &v)
Set the center point.
Definition CenteredPlacer:71
virtual const char * libraryName() const
return the name of the object's library.
Definition CenteredPlacer:34
Placer()
Definition Placer:56