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

gmVertex Class Reference

#include <gmMesh.h>

Inheritance diagram for gmVertex:

Inheritance graph
[legend]
Collaboration diagram for gmVertex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

constructors
 gmVertex ()
 basic constructor

 gmVertex (gmVector3 &position, gmVector3 &normal)
 constructor with position vertex given as gmVector3

 gmVertex (R32 a, R32 b, R32 c, R32 d, R32 e, R32 f)
 constructor with position vertex given as 3 floats

queries
virtual gmVector3 & getPosition ()
 get the position of this vertex

virtual gmVector3 & getNormal ()
 get the normal of this vertex

BOOL getNeighbors (std::vector< gmVertex * > *pVertexArray)
 overloaded to use gmVertex

gmEdgefindEdge (const NhalfEdgeVertex *pVertex)
 overloaded to use gmEdge

gmEdgefindDirectedEdge (const NhalfEdgeVertex *pVertex)
 overloaded to use gmEdge

set properties
virtual void setPosition (gmVector3 &position)
 set the position of the vertex

virtual void setPosition (R32 a, R32 b, R32 c)
 set the position of the vertex

virtual void setNormal (gmVector3 &normal)
 set the normal of the vertex

virtual void setNormal (R32 a, R32 b, R32 c)
 set the normal of the vertex


Private Attributes

protected variables
gmVector3 m_position
 vector discribing the position of the vertex

gmVector3 m_normal
 vector discribing the normal of the vertex


Constructor & Destructor Documentation

gmVertex::gmVertex  )  [inline]
 

basic constructor

Definition at line 33 of file gmMesh.h.

References getNormal(), getPosition(), and NhalfEdgeVertex::NhalfEdgeVertex().

gmVertex::gmVertex gmVector3 &  position,
gmVector3 &  normal
[inline]
 

constructor with position vertex given as gmVector3

Definition at line 35 of file gmMesh.h.

References getNormal(), getPosition(), and NhalfEdgeVertex::NhalfEdgeVertex().

gmVertex::gmVertex R32  a,
R32  b,
R32  c,
R32  d,
R32  e,
R32  f
[inline]
 

constructor with position vertex given as 3 floats

Definition at line 38 of file gmMesh.h.

References getNormal(), getPosition(), NhalfEdgeVertex::NhalfEdgeVertex(), and R32.


Member Function Documentation

gmEdge* gmVertex::findDirectedEdge const NhalfEdgeVertex pVertex  )  [inline]
 

overloaded to use gmEdge

Reimplemented from NhalfEdgeVertex.

Reimplemented in ParticleVertex.

Definition at line 63 of file gmMesh.h.

References NhalfEdgeVertex::findDirectedEdge().

gmEdge* gmVertex::findEdge const NhalfEdgeVertex pVertex  )  [inline]
 

overloaded to use gmEdge

Reimplemented from NhalfEdgeVertex.

Reimplemented in ParticleVertex.

Definition at line 60 of file gmMesh.h.

References NhalfEdgeVertex::findEdge().

BOOL gmVertex::getNeighbors std::vector< gmVertex * > *  pVertexArray  )  [inline]
 

overloaded to use gmVertex

Definition at line 49 of file gmMesh.h.

References BOOL, and NhalfEdgeVertex::getNeighbors().

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

get the normal of this vertex

Reimplemented in ParticleVertex.

Definition at line 47 of file gmMesh.h.

References m_normal.

Referenced by ModButterflySubdivision::divideEdge(), and gmVertex().

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

get the position of this vertex

Reimplemented in ParticleVertex.

Definition at line 45 of file gmMesh.h.

References m_position.

Referenced by ModButterflySubdivision::divideEdge(), and gmVertex().

virtual void gmVertex::setNormal R32  a,
R32  b,
R32  c
[inline, virtual]
 

set the normal of the vertex

Definition at line 76 of file gmMesh.h.

References m_normal, and R32.

virtual void gmVertex::setNormal gmVector3 &  normal  )  [inline, virtual]
 

set the normal of the vertex

Definition at line 74 of file gmMesh.h.

References m_normal.

virtual void gmVertex::setPosition R32  a,
R32  b,
R32  c
[inline, virtual]
 

set the position of the vertex

Definition at line 72 of file gmMesh.h.

References m_position, and R32.

virtual void gmVertex::setPosition gmVector3 &  position  )  [inline, virtual]
 

set the position of the vertex

Definition at line 70 of file gmMesh.h.

References m_position.


Member Data Documentation

gmVector3 gmVertex::m_normal [private]
 

vector discribing the normal of the vertex

Note:
This should never be used outside of it's accessor functions! Subclasses may store this elsewhere.

Definition at line 26 of file gmMesh.h.

Referenced by getNormal(), and setNormal().

gmVector3 gmVertex::m_position [private]
 

vector discribing the position of the vertex

Note:
This should never be used outside of it's accessor functions! Subclasses may store this elsewhere.

Definition at line 23 of file gmMesh.h.

Referenced by getPosition(), and setPosition().


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