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

ParticleVertex Class Reference

#include <ParticleVertex.h>

Inheritance diagram for ParticleVertex:

Inheritance graph
[legend]
Collaboration diagram for ParticleVertex:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class represents a vertex in a mesh at which particle information is contained.

It is an extension of the gmMesh, since a ParticleVertex contains position and normal information just as a gmVertex does. Methods which access position and normal info are overrided to act on particle members.

Definition at line 24 of file ParticleVertex.h.

Public Member Functions

 ParticleVertex (SurfaceParticle *p)
 Constructor.

gmVector3 & getPosition ()
 Returns the particle position.

gmVector3 & getNormal ()
 Returns the particle normal.

BOOL getNeighbors (std::vector< ParticleVertex * > *nbors)
 Get neighboring particle vertices.

ParticleEdgefindEdge (const NhalfEdgeVertex *vertex)
 Find an edge.

ParticleEdgefindDirectedEdge (const NhalfEdgeVertex *vertex)
 Find a directed edge.


Private Attributes

SurfaceParticle * particle
 The particle at this vertex.


Constructor & Destructor Documentation

ParticleVertex::ParticleVertex SurfaceParticle *  p  ) 
 

Constructor.

A particle is required to create a particle vertex.

Parameters:
p Particle at this vertex.

Definition at line 14 of file ParticleVertex.cpp.

References particle.


Member Function Documentation

ParticleEdge* ParticleVertex::findDirectedEdge const NhalfEdgeVertex vertex  )  [inline]
 

Find a directed edge.

Parameters:
vertex Vertex to find directed edge from.
Returns:
The directed edge from the vertex.

Reimplemented from gmVertex.

Definition at line 64 of file ParticleVertex.h.

References NhalfEdgeVertex::findDirectedEdge(), and vertex.

ParticleEdge* ParticleVertex::findEdge const NhalfEdgeVertex vertex  )  [inline]
 

Find an edge.

Parameters:
vertex Vertex to find edge from.
Returns:
The edge of the vertex.

Reimplemented from gmVertex.

Definition at line 53 of file ParticleVertex.h.

References NhalfEdgeVertex::findEdge(), and vertex.

BOOL ParticleVertex::getNeighbors std::vector< ParticleVertex * > *  nbors  ) 
 

Get neighboring particle vertices.

Parameters:
nbors Neighboring vertices.
Returns:
State of query.

Definition at line 28 of file ParticleVertex.cpp.

References BOOL, and NhalfEdgeVertex::getNeighbors().

gmVector3& ParticleVertex::getNormal  )  [inline, virtual]
 

Returns the particle normal.

Reimplemented from gmVertex.

Definition at line 43 of file ParticleVertex.h.

References particle.

gmVector3& ParticleVertex::getPosition  )  [inline, virtual]
 

Returns the particle position.

Reimplemented from gmVertex.

Definition at line 38 of file ParticleVertex.h.

References particle.


Member Data Documentation

SurfaceParticle* ParticleVertex::particle [private]
 

The particle at this vertex.

Definition at line 28 of file ParticleVertex.h.

Referenced by getNormal(), getPosition(), and ParticleVertex().


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