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

ParticleShaderTriangle Class Reference

#include <ParticleShaderTriangle.h>

Inheritance diagram for ParticleShaderTriangle:

Inheritance graph
[legend]
Collaboration diagram for ParticleShaderTriangle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MAKE_PARTICLESTUFF_NAME ()
 ParticleShaderTriangle (Particles *ps=NULL)
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.

void attachAttributes ()

Public Attributes

double lineWidth
double gradientMin
double gradientMax
bool faceNormal
ImplicitInterrogatorimpInt

Private Member Functions

void drawPolygon (ParticleOpenMesh &mesh)
void drawWireframe (ParticleOpenMesh &mesh)

Constructor & Destructor Documentation

ParticleShaderTriangle::ParticleShaderTriangle Particles ps = NULL  ) 
 

Definition at line 7 of file ParticleShaderTriangle.cpp.

References faceNormal, gradientMax, gradientMin, and lineWidth.


Member Function Documentation

void ParticleShaderTriangle::attachAttributes  )  [virtual]
 

Reimplemented from ParticleShader.

Definition at line 16 of file ParticleShaderTriangle.cpp.

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

void ParticleShaderTriangle::draw  )  [virtual]
 

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

Reimplemented from ParticleShader.

Definition at line 51 of file ParticleShaderTriangle.cpp.

References drawPolygon(), drawWireframe(), faceNormal, lineWidth, ParticleMesh::mesh, ParticleOpenMesh, and ParticleShader::position.

void ParticleShaderTriangle::drawPolygon ParticleOpenMesh mesh  )  [private]
 

Definition at line 68 of file ParticleShaderTriangle.cpp.

References faceNormal, ImplicitInterrogator::getImplicit(), Implicit::gradGradN2(), gradientMax, gradientMin, impInt, lineWidth, and ParticleOpenMesh.

Referenced by draw().

void ParticleShaderTriangle::drawWireframe ParticleOpenMesh mesh  )  [private]
 

Definition at line 134 of file ParticleShaderTriangle.cpp.

References ParticleOpenMesh.

Referenced by draw().

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

Get the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 27 of file ParticleShaderTriangle.cpp.

References faceNormal, gradientMax, gradientMin, and lineWidth.

ParticleShaderTriangle::MAKE_PARTICLESTUFF_NAME  ) 
 

int ParticleShaderTriangle::qlen  )  [virtual]
 

parameters

Reimplemented from ParticleStuff.

Definition at line 22 of file ParticleShaderTriangle.cpp.

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

Get the names of the parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 43 of file ParticleShaderTriangle.cpp.

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

Set particle stuff parameters.

Defaults to no parameters.

Reimplemented from ParticleStuff.

Definition at line 35 of file ParticleShaderTriangle.cpp.

References faceNormal, gradientMax, gradientMin, and lineWidth.


Member Data Documentation

bool ParticleShaderTriangle::faceNormal
 

Definition at line 30 of file ParticleShaderTriangle.h.

Referenced by draw(), drawPolygon(), getq(), ParticleShaderTriangle(), and setq().

double ParticleShaderTriangle::gradientMax
 

Definition at line 29 of file ParticleShaderTriangle.h.

Referenced by drawPolygon(), getq(), ParticleShaderTriangle(), and setq().

double ParticleShaderTriangle::gradientMin
 

Definition at line 28 of file ParticleShaderTriangle.h.

Referenced by drawPolygon(), getq(), ParticleShaderTriangle(), and setq().

ImplicitInterrogator* ParticleShaderTriangle::impInt
 

Definition at line 31 of file ParticleShaderTriangle.h.

Referenced by attachAttributes(), and drawPolygon().

double ParticleShaderTriangle::lineWidth
 

Definition at line 27 of file ParticleShaderTriangle.h.

Referenced by draw(), drawPolygon(), getq(), ParticleShaderTriangle(), and setq().


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