User manual:   Main Page   Overview   Installation   User Interface   Tutorial   Example   FAQ   Version Updates
Reference manual:   Class List   Class Members   Globals, enums and defines

Edge Class Reference

Defines an edge. More...

List of all members.

Public Methods

 Edge (VertexID v1=-1, VertexID v2=-1)
void set (VertexID v1, VertexID v2)
VertexID getV1 ()
VertexID getV2 ()
bool operator== (const Edge &edge)
void operator= (const Edge &edge)


Detailed Description

Defines an edge.

The edge is defined by the two VertexID's of the two vertices of the edge. The edge has no direction, so the order on the two VertexID's is random.


Constructor & Destructor Documentation

Edge::Edge VertexID    v1 = -1,
VertexID    v2 = -1
[inline]
 

Constructor.

Initializes the edge with the VertexID's

Parameters:
v1 The VertexID of one of the edge's vertices
v2 The VertexID of the second edge vertex


Member Function Documentation

VertexID Edge::getV1   [inline]
 

Get the first VertexID.

Returns:
The VertexID of the first vertex

VertexID Edge::getV2   [inline]
 

Get the second VertexID.

Returns:
The VertexID of the second vertex

void Edge::operator= const Edge &    edge [inline]
 

Sets the edge according to edge.

Parameters:
edge The Edge to copy

bool Edge::operator== const Edge &    edge [inline]
 

Compares 2 Edges.

Edges are the same if they have the same two VertexID's (not necessarily in the same order)

Parameters:
edge The Edge to compare to
Return values:
true The edges are the same
false The edges are different

void Edge::set VertexID    v1,
VertexID    v2
[inline]
 

Sets the VertexID's.

Parameters:
v1 The VertexID of one of the edge's vertices
v2 The VertexID of the second edge vertex


The documentation for this class was generated from the following file:
MeshMaker 5.2 Manual
This software library was written by Roni Raab, ronir@cs.technion.ac.il.
Last updated on May 2003.
This software is for academic and research use only.