MarSTDv2004: CEdge Class Reference

MarSTDv2004

CEdge Class Reference

Inheritance diagram for CEdge:

Inheritance graph
[legend]
Collaboration diagram for CEdge:

Collaboration graph
[legend]
List of all members.

Detailed Description

Edges are used by polygons to define their contours using vectors. An edge also has 3 planes. These are used to optimize collision detetcion, etc.

Definition at line 33 of file CEdge.h.

Public Member Functions

void operator= (CEdge &edge)
CEdgeunlink ()
void setColour (float r, float g, float b, float a=1.0)
void setTexCoord (float u, float v, float w=0.0)
void setTexCoord (int texture, float u, float v, float w=0.0)
CVertex interpolateLinear (CVertex &vertex1, CVertex &vertex2, float t)
CVertex operator * (float scale)
CVertex operator+ (CVertex vertex)

Public Attributes

CPlane plane
 Plane perpendicular to polygon normal and edge.
CPlane edge_plane
 Plane parallel to edge. edge_plane * edge2->p == 1.0.
CPlane poly_plane
 Average plane of all planes of the polygons that share this point.
CEdgeedge2
 Edge that will give next point.
CEdgeprev
 Previous edge in DLL.
CEdgenext
 Next edge in DLL.
CVector p
 XYZ position.
float c [4]
 RGBA colour. Range [0.0, 1.0].
float t [VERTEX_TEX_COUNT][VERTEX_TEX_COMPONENTS]
 UVST texture coordinates. Range [0.0, 1.0].

Member Function Documentation

void CEdge::operator= CEdge edge  ) 
 

Copies vector.

Definition at line 61 of file CEdge.h.

Here is the call graph for this function:

CEdge* CEdge::unlink  ) 
 

Unlinks this edge from DLL.

Definition at line 78 of file CEdge.h.

void CVertex::setColour float  r,
float  g,
float  b,
float  a = 1.0
[inherited]
 

Sets four colour components. Alpha is defined as 1.0 by default.

void CVertex::setTexCoord float  u,
float  v,
float  w = 0.0
[inherited]
 

Sets texture coordinates for texture 0. Third texture coordinate defaults to 0.0.

void CVertex::setTexCoord int  texture,
float  u,
float  v,
float  w = 0.0
[inherited]
 

Sets texture coordinates for texture texture.

Parameters:
texture Index of texture coordinates to set. Range [0..VERTEX_TEX_COUNT-1].
See also:
set_texture()

CVertex CVertex::operator * float  scale  )  [inherited]
 

Scales all components of vertex.

Parameters:
scale Scaling factor to multiply all components with.
Returns:
Vertex with value of all components of vertex scaled by scale

CVertex CVertex::operator+ CVertex  vertex  )  [inherited]
 

Adds all components of vertex.

Parameters:
vertex Vertex to add to vertex object
Returns:
Vertex with value of all components of vertices summed.


The documentation for this class was generated from the following file:
Generated on Tue Feb 8 21:59:35 2005 for MarSTDv2004 by  doxygen 1.4.1