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

ParticleShaderStroke Class Reference

#include <ParticleShaderStroke.h>

Inheritance diagram for ParticleShaderStroke:

Inheritance graph
[legend]
Collaboration diagram for ParticleShaderStroke:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MAKE_PARTICLESTUFF_NAME ()
 ParticleShaderStroke (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
double curve
double inkDarkness
double lineTaper
bool autoUpdate
std::vector< Neighborchains

Constructor & Destructor Documentation

ParticleShaderStroke::ParticleShaderStroke Particles ps = NULL  ) 
 

Definition at line 8 of file ParticleShaderStroke.cpp.

References autoUpdate, curve, inkDarkness, lineTaper, lineWidth, and percentLength.


Member Function Documentation

void ParticleShaderStroke::draw  )  [virtual]
 

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

Reimplemented from ParticleShader.

Definition at line 54 of file ParticleShaderStroke.cpp.

References autoUpdate, SilhouetteAdhesion::camera, chains, curve, findChains(), Particles::getBehavior(), ParticlePosition::getPosition(), inkDarkness, lineTaper, lineWidth, ParticleOrientation::n, ParticleShader::orient, ParticleShader::position, ParticleStuff::ps, and Particles::size().

void ParticleShaderStroke::drawGradientField  ) 
 

void ParticleShaderStroke::findChains  ) 
 

Definition at line 125 of file ParticleShaderStroke.cpp.

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

Referenced by draw().

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

Get the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 24 of file ParticleShaderStroke.cpp.

References autoUpdate, curve, inkDarkness, lineTaper, lineWidth, and percentLength.

ParticleShaderStroke::MAKE_PARTICLESTUFF_NAME  ) 
 

int ParticleShaderStroke::qlen  )  [virtual]
 

parameters

Reimplemented from ParticleStuff.

Definition at line 19 of file ParticleShaderStroke.cpp.

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

Get the names of the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 44 of file ParticleShaderStroke.cpp.

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

Set particle stuff parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 34 of file ParticleShaderStroke.cpp.

References autoUpdate, curve, inkDarkness, lineTaper, lineWidth, and percentLength.


Member Data Documentation

bool ParticleShaderStroke::autoUpdate [protected]
 

Definition at line 29 of file ParticleShaderStroke.h.

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

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

Definition at line 30 of file ParticleShaderStroke.h.

Referenced by draw(), and findChains().

double ParticleShaderStroke::curve [protected]
 

Definition at line 28 of file ParticleShaderStroke.h.

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

double ParticleShaderStroke::inkDarkness [protected]
 

Definition at line 28 of file ParticleShaderStroke.h.

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

double ParticleShaderStroke::lineTaper [protected]
 

Definition at line 28 of file ParticleShaderStroke.h.

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

double ParticleShaderStroke::lineWidth [protected]
 

Definition at line 28 of file ParticleShaderStroke.h.

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

double ParticleShaderStroke::percentLength [protected]
 

Definition at line 28 of file ParticleShaderStroke.h.

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


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