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

ParticleShaderChain Class Reference

#include <ParticleShaderChain.h>

Inheritance diagram for ParticleShaderChain:

Inheritance graph
[legend]
Collaboration diagram for ParticleShaderChain:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MAKE_PARTICLESTUFF_NAME ()
 ParticleShaderChain (Particles *ps=NULL)
void findChains ()
void drawGradientField ()
virtual void draw ()
 each shader knows how to draw all the particles based on its attributes

int qlen ()
 parameters

void getq (double *q)
 Get the parameters.

void setq (double *q)
 Set particle stuff parameters.

void qname (char **qn)
 Get the names of the parameters.


Protected Attributes

double lineWidth
double percentLength
bool autoUpdate
std::vector< Neighborchains

Constructor & Destructor Documentation

ParticleShaderChain::ParticleShaderChain Particles ps = NULL  ) 
 

Definition at line 8 of file ParticleShaderChain.cpp.

References autoUpdate, lineWidth, and percentLength.


Member Function Documentation

void ParticleShaderChain::draw  )  [virtual]
 

each shader knows how to draw all the particles based on its attributes

Reimplemented from ParticleShader.

Definition at line 42 of file ParticleShaderChain.cpp.

References autoUpdate, chains, findChains(), ParticlePosition::getPosition(), lineWidth, ParticleShader::position, ParticleStuff::ps, and Particles::size().

void ParticleShaderChain::drawGradientField  ) 
 

void ParticleShaderChain::findChains  ) 
 

Definition at line 67 of file ParticleShaderChain.cpp.

References chains, ParticlePosition::getPosition(), ParticleShaderChain::Neighbor::n1, ParticleShaderChain::Neighbor::n2, percentLength, ParticleShader::position, ParticleStuff::ps, and Particles::size().

Referenced by SingularityAdhesion::cleanup(), and draw().

void ParticleShaderChain::getq double *  q  )  [virtual]
 

Get the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 21 of file ParticleShaderChain.cpp.

References autoUpdate, lineWidth, and percentLength.

ParticleShaderChain::MAKE_PARTICLESTUFF_NAME  ) 
 

int ParticleShaderChain::qlen  )  [virtual]
 

parameters

Reimplemented from ParticleStuff.

Definition at line 16 of file ParticleShaderChain.cpp.

void ParticleShaderChain::qname char **  qn  )  [virtual]
 

Get the names of the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 35 of file ParticleShaderChain.cpp.

void ParticleShaderChain::setq double *  q  )  [virtual]
 

Set particle stuff parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 28 of file ParticleShaderChain.cpp.

References autoUpdate, lineWidth, and percentLength.


Member Data Documentation

bool ParticleShaderChain::autoUpdate [protected]
 

Definition at line 29 of file ParticleShaderChain.h.

Referenced by draw(), getq(), ParticleShaderChain(), and setq().

std::vector<Neighbor> ParticleShaderChain::chains [protected]
 

Definition at line 30 of file ParticleShaderChain.h.

Referenced by draw(), and findChains().

double ParticleShaderChain::lineWidth [protected]
 

Definition at line 28 of file ParticleShaderChain.h.

Referenced by draw(), getq(), ParticleShaderChain(), and setq().

double ParticleShaderChain::percentLength [protected]
 

Definition at line 28 of file ParticleShaderChain.h.

Referenced by findChains(), getq(), ParticleShaderChain(), and setq().


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