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

ParticleShaderGradientField Class Reference

#include <ParticleShaderGradientField.h>

Inheritance diagram for ParticleShaderGradientField:

Inheritance graph
[legend]
Collaboration diagram for ParticleShaderGradientField:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

void attachAttributes ()
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

ImplicitInterrogatorimpInt
ParticleBoundingBoxbounds
double vectorLength
double stepSize
double normalizeVector

Constructor & Destructor Documentation

ParticleShaderGradientField::ParticleShaderGradientField Particles ps = NULL  ) 
 

Definition at line 9 of file ParticleShaderGradientField.cpp.

References bounds, impInt, normalizeVector, stepSize, and vectorLength.


Member Function Documentation

void ParticleShaderGradientField::attachAttributes  )  [virtual]
 

Reimplemented from ParticleShader.

Definition at line 23 of file ParticleShaderGradientField.cpp.

References ParticleStuff::attachAttribute(), ParticleShader::attachAttributes(), and impInt.

void ParticleShaderGradientField::draw  )  [virtual]
 

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

Reimplemented from ParticleShader.

Definition at line 56 of file ParticleShaderGradientField.cpp.

References bounds, Particles::getBehavior(), ParticleBoundingBox::getBounds(), ImplicitInterrogator::getImplicit(), Implicit::grad(), Box3d::high(), impInt, Box3d::low(), normalizeVector, origin(), ParticleStuff::ps, stepSize, and vectorLength.

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

Get the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 34 of file ParticleShaderGradientField.cpp.

References normalizeVector, stepSize, and vectorLength.

ParticleShaderGradientField::MAKE_PARTICLESTUFF_NAME  ) 
 

int ParticleShaderGradientField::qlen  )  [virtual]
 

parameters

Reimplemented from ParticleStuff.

Definition at line 29 of file ParticleShaderGradientField.cpp.

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

Get the names of the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 48 of file ParticleShaderGradientField.cpp.

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

Set particle stuff parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 41 of file ParticleShaderGradientField.cpp.

References normalizeVector, stepSize, and vectorLength.


Member Data Documentation

ParticleBoundingBox* ParticleShaderGradientField::bounds [protected]
 

Definition at line 18 of file ParticleShaderGradientField.h.

Referenced by draw(), and ParticleShaderGradientField().

ImplicitInterrogator* ParticleShaderGradientField::impInt [protected]
 

Definition at line 16 of file ParticleShaderGradientField.h.

Referenced by attachAttributes(), draw(), and ParticleShaderGradientField().

double ParticleShaderGradientField::normalizeVector [protected]
 

Definition at line 22 of file ParticleShaderGradientField.h.

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

double ParticleShaderGradientField::stepSize [protected]
 

Definition at line 21 of file ParticleShaderGradientField.h.

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

double ParticleShaderGradientField::vectorLength [protected]
 

Definition at line 20 of file ParticleShaderGradientField.h.

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


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