OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgParticle::OrbitOperator Class Reference

#include <OrbitOperator.h>

Inheritance diagram for osgParticle::OrbitOperator:
Inheritance graph
[legend]
Collaboration diagram for osgParticle::OrbitOperator:
Collaboration graph
[legend]

Public Member Functions

 OrbitOperator ()
 
 OrbitOperator (const OrbitOperator &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
 META_Object (osgParticle, OrbitOperator)
 
void setCenter (const osg::Vec3 &c)
 Set the center of orbit. More...
 
const osg::Vec3getCenter () const
 Get the center of orbit. More...
 
void setMagnitude (float mag)
 Set the acceleration scale. More...
 
float getMagnitude () const
 Get the acceleration scale. More...
 
void setEpsilon (float eps)
 Set the acceleration epsilon. More...
 
float getEpsilon () const
 Get the acceleration epsilon. More...
 
void setMaxRadius (float max)
 Set max radius between the center and the particle. More...
 
float getMaxRadius () const
 Get max radius between the center and the particle. More...
 
void operate (Particle *P, double dt)
 Apply the acceleration to a particle. Do not call this method manually. More...
 
void beginOperate (Program *prg)
 Perform some initializations. Do not call this method manually. More...
 
- Public Member Functions inherited from osgParticle::Operator
 Operator ()
 
 Operator (const Operator &copy, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
 
virtual const char * libraryName () const
 
virtual const char * className () const
 
virtual bool isSameKindAs (const osg::Object *obj) const
 
bool isEnabled () const
 Get whether this operator is enabled. More...
 
void setEnabled (bool v)
 Enable or disable this operator. More...
 
virtual void operateParticles (ParticleSystem *ps, double dt)
 
virtual void endOperate ()
 Do something after all particles have been processed. More...
 
- Public Member Functions inherited from osg::Object
 Object ()
 
 Object (bool threadSafeRefUnref)
 
 Object (const Object &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
virtual ObjectcloneType () const =0
 
virtual Objectclone (const CopyOp &) const =0
 
std::string getCompoundClassName () const
 
virtual NodeasNode ()
 
virtual const NodeasNode () const
 
virtual NodeVisitorasNodeVisitor ()
 
virtual const NodeVisitorasNodeVisitor () const
 
virtual StateAttributeasStateAttribute ()
 
virtual const StateAttributeasStateAttribute () const
 
virtual UniformasUniform ()
 
virtual const UniformasUniform () const
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
virtual void setName (const std::string &name)
 
void setName (const char *name)
 
const std::string & getName () const
 
void setDataVariance (DataVariance dv)
 
DataVariance getDataVariance () const
 
virtual void computeDataVariance ()
 
void setUserDataContainer (osg::UserDataContainer *udc)
 
osg::UserDataContainergetUserDataContainer ()
 
const osg::UserDataContainergetUserDataContainer () const
 
osg::UserDataContainergetOrCreateUserDataContainer ()
 
virtual void setUserData (Referenced *obj)
 
virtual ReferencedgetUserData ()
 
virtual const ReferencedgetUserData () const
 
template<typename T >
bool getUserValue (const std::string &name, T &value) const
 
template<typename T >
void setUserValue (const std::string &name, const T &value)
 
virtual void resizeGLObjectBuffers (unsigned int)
 
virtual void releaseGLObjects (osg::State *=0) const
 
template<typename T >
BoolValueObject
UCharValueObject
UShortValueObject
UIntValueObject
DoubleValueObject
Vec3fValueObject
Vec2dValueObject
Vec4dValueObject
PlaneValueObject
MatrixdValueObject
BoundingBoxdValueObject
BoundingSpheredValueObject
bool 
getUserValue (const std::string &name, T &value) const
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Protected Member Functions

virtual ~OrbitOperator ()
 
OrbitOperatoroperator= (const OrbitOperator &)
 
- Protected Member Functions inherited from osgParticle::Operator
virtual ~Operator ()
 
Operatoroperator= (const Operator &)
 
- Protected Member Functions inherited from osg::Object
virtual ~Object ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

osg::Vec3 _center
 
osg::Vec3 _xf_center
 
float _magnitude
 
float _epsilon
 
float _maxRadius
 
- Protected Attributes inherited from osg::Object
std::string _name
 
DataVariance _dataVariance
 
osg::UserDataContainer_userDataContainer
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Public Types inherited from osg::Object
enum  DataVariance { DYNAMIC, STATIC, UNSPECIFIED }
 
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 

Detailed Description

An orbit operator forces particles in the orbit around a point. Refer to David McAllister's Particle System API (http://www.particlesystems.org)

Definition at line 29 of file OrbitOperator.h.

Constructor & Destructor Documentation

osgParticle::OrbitOperator::OrbitOperator ( )
inline

Definition at line 32 of file OrbitOperator.h.

osgParticle::OrbitOperator::OrbitOperator ( const OrbitOperator copy,
const osg::CopyOp copyop = osg::CopyOp::SHALLOW_COPY 
)
inline

Definition at line 36 of file OrbitOperator.h.

virtual osgParticle::OrbitOperator::~OrbitOperator ( )
inlineprotectedvirtual

Definition at line 74 of file OrbitOperator.h.

Member Function Documentation

void osgParticle::OrbitOperator::beginOperate ( Program prg)
inlinevirtual

Perform some initializations. Do not call this method manually.

Reimplemented from osgParticle::Operator.

Definition at line 97 of file OrbitOperator.h.

Here is the call graph for this function:

const osg::Vec3& osgParticle::OrbitOperator::getCenter ( ) const
inline

Get the center of orbit.

Definition at line 47 of file OrbitOperator.h.

float osgParticle::OrbitOperator::getEpsilon ( ) const
inline

Get the acceleration epsilon.

Definition at line 59 of file OrbitOperator.h.

float osgParticle::OrbitOperator::getMagnitude ( ) const
inline

Get the acceleration scale.

Definition at line 53 of file OrbitOperator.h.

float osgParticle::OrbitOperator::getMaxRadius ( ) const
inline

Get max radius between the center and the particle.

Definition at line 65 of file OrbitOperator.h.

osgParticle::OrbitOperator::META_Object ( osgParticle  ,
OrbitOperator   
)
void osgParticle::OrbitOperator::operate ( Particle P,
double  dt 
)
inlinevirtual

Apply the acceleration to a particle. Do not call this method manually.

Implements osgParticle::Operator.

Definition at line 86 of file OrbitOperator.h.

Here is the call graph for this function:

OrbitOperator& osgParticle::OrbitOperator::operator= ( const OrbitOperator )
inlineprotected

Definition at line 75 of file OrbitOperator.h.

void osgParticle::OrbitOperator::setCenter ( const osg::Vec3 c)
inline

Set the center of orbit.

Definition at line 44 of file OrbitOperator.h.

void osgParticle::OrbitOperator::setEpsilon ( float  eps)
inline

Set the acceleration epsilon.

Definition at line 56 of file OrbitOperator.h.

void osgParticle::OrbitOperator::setMagnitude ( float  mag)
inline

Set the acceleration scale.

Definition at line 50 of file OrbitOperator.h.

void osgParticle::OrbitOperator::setMaxRadius ( float  max)
inline

Set max radius between the center and the particle.

Definition at line 62 of file OrbitOperator.h.

Member Data Documentation

osg::Vec3 osgParticle::OrbitOperator::_center
protected

Definition at line 77 of file OrbitOperator.h.

float osgParticle::OrbitOperator::_epsilon
protected

Definition at line 80 of file OrbitOperator.h.

float osgParticle::OrbitOperator::_magnitude
protected

Definition at line 79 of file OrbitOperator.h.

float osgParticle::OrbitOperator::_maxRadius
protected

Definition at line 81 of file OrbitOperator.h.

osg::Vec3 osgParticle::OrbitOperator::_xf_center
protected

Definition at line 78 of file OrbitOperator.h.


The documentation for this class was generated from the following file: