Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ParticleAttribute Class Reference

#include <ParticleAttribute.h>

Inheritance diagram for ParticleAttribute:

Inheritance graph
[legend]
Collaboration diagram for ParticleAttribute:

Collaboration graph
[legend]
List of all members.

Detailed Description

ParticleAttribute defines special data that is required by different types of behaviors.

This data is also visualized by renderers via the context of behaviors.

Definition at line 11 of file ParticleAttribute.h.

Public Member Functions

 ParticleAttribute (Particles *ps, std::string &name)
 Default constructor Assign a name and attach to a particle system.

virtual void addMeTo (Particles *new_ps)
 Add attribute to a particle system.

virtual void removeMe ()
 Remove the attribute from the current particle system.

virtual void clear ()


Constructor & Destructor Documentation

ParticleAttribute::ParticleAttribute Particles ps,
std::string &  name
 

Default constructor Assign a name and attach to a particle system.

Parameters:
ps The owning Particles object.
name The name of this attribute.

Definition at line 11 of file ParticleAttribute.cpp.


Member Function Documentation

void ParticleAttribute::addMeTo Particles new_ps  )  [virtual]
 

Add attribute to a particle system.

This does not set the particle system of the attribute. Use ParticleAttribute::setParticleSystem to integrate an attribute into a particle system.

Implements ParticleStuff.

Definition at line 17 of file ParticleAttribute.cpp.

References Particles::attributes, and ParticleStuff::name.

virtual void ParticleAttribute::clear  )  [inline, virtual]
 

Reimplemented in AdaptiveRepulsionData, ParticleAge, ParticleEigen, ParticleLocality, ParticleLocalityGrid, ParticleMaterial, ParticleMesh, ParticleOrientation, and ParticlePosition.

Definition at line 37 of file ParticleAttribute.h.

void ParticleAttribute::removeMe  )  [virtual]
 

Remove the attribute from the current particle system.

Does not destroy the attribute. Just unlinks it from the current particle system.

Implements ParticleStuff.

Definition at line 37 of file ParticleAttribute.cpp.

References Particles::attributes, ParticleStuff::name, and ParticleStuff::ps.


The documentation for this class was generated from the following files:
Generated on Mon Jun 28 15:02:37 2004 for Advanced Surface Library by doxygen 1.3.4