Public Member Functions | Protected Attributes

MeshLib::CEdge Class Reference

CEdge class, which is the base class of all kinds of edge classes. More...

#include <Edge.h>

Collaboration diagram for MeshLib::CEdge:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CEdge ()
 ~CEdge ()
CHalfEdge *& halfedge (int id)
bool boundary ()
CHalfEdge *& other (CHalfEdge *he)
std::string & string ()
void _from_string ()
void _to_string ()

Protected Attributes

CHalfEdgem_halfedge [2]
std::string m_string

Detailed Description

CEdge class, which is the base class of all kinds of edge classes.

Definition at line 26 of file Edge.h.


Constructor & Destructor Documentation

MeshLib::CEdge::CEdge (  )  [inline]

CEdge constructor, set both halfedge pointers to be NULL.

Definition at line 32 of file Edge.h.

{ m_halfedge[0] = NULL; m_halfedge[1] = NULL; };

MeshLib::CEdge::~CEdge (  )  [inline]

CEdge destructor.

Definition at line 36 of file Edge.h.

{};


Member Function Documentation

void MeshLib::CEdge::_from_string (  )  [inline]

Read the traits from the string.

Definition at line 61 of file Edge.h.

{};

Here is the caller graph for this function:

void MeshLib::CEdge::_to_string (  )  [inline]

Save the traits to the string.

Definition at line 65 of file Edge.h.

{};

bool MeshLib::CEdge::boundary (  )  [inline]

whether the edge is on the boundary.

Definition at line 47 of file Edge.h.

{ return (m_halfedge[0] == NULL && m_halfedge[1] != NULL ) || (m_halfedge[0] != NULL && m_halfedge[1] == NULL ); };

CHalfEdge* & MeshLib::CEdge::halfedge ( int  id  )  [inline]

The halfedge attached to the current edge

Parameters:
id either 0 or 1
Returns:
the halfedge[id]

Definition at line 43 of file Edge.h.

{ assert( 0<=id && id < 2 ); return m_halfedge[id];};

Here is the caller graph for this function:

CHalfEdge* & MeshLib::CEdge::other ( CHalfEdge he  )  [inline]

The dual halfedge to the input halfedge

Parameters:
he halfedge attached to the current edge
Returns:
the other halfedge attached to the current edge

Definition at line 53 of file Edge.h.

{ return (he != m_halfedge[0] )?m_halfedge[0]:m_halfedge[1]; };

std::string& MeshLib::CEdge::string (  )  [inline]

The string of the current edge.

Definition at line 57 of file Edge.h.

{ return m_string; };

Here is the caller graph for this function:


Member Data Documentation

Pointers to the two halfedges attached to the current edge.

Definition at line 65 of file Edge.h.

std::string MeshLib::CEdge::m_string [protected]

The string associated to the current edge.

Definition at line 74 of file Edge.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Defines