te::mnt::TinLine Class Reference

#include <Tin.h>

Public Member Functions

bool ExchangeNode (int32_t oldNodeId, int32_t newNodeId)
 Method for exchange nodes in the triangulation. More...
 
bool ExchangePolygon (int32_t oldPolyId, int32_t newPolyId)
 Method for exchange polygons in the triangulation. More...
 
int32_t getLeftPolygon ()
 
int32_t getNodeFrom ()
 
int32_t getNodeTo ()
 
int32_t getRightPolygon ()
 
Ltype getType ()
 
void Nodes (int32_t nodefrom, int32_t nodeto)
 
bool operator< (const TinLine &rhs) const
 
bool operator== (const TinLine &rhs) const
 
bool operator> (const TinLine &rhs) const
 
void Polygons (int32_t leftpoly, int32_t rightpoly)
 
void setLeftPolygon (int32_t polyid)
 
void setNodeFrom (int32_t nodeid)
 
void setNodeTo (int32_t nodeid)
 
void setRightPolygon (int32_t polyid)
 
void setType (Ltype ltype)
 
bool SwapNode ()
 Method for swap two nodes. More...
 
bool SwapNodePolygon ()
 Method for swap two nodes and two adjacent polygons. More...
 
bool SwapPolygon ()
 Method for swap two adjacent polygons. More...
 
 TinLine ()
 
 TinLine (int32_t &nodefrom, int32_t &nodeto, int32_t &leftpoly, int32_t &rightpoly, Ltype type)
 

Protected Attributes

int32_t m_leftpoly
 left polygon number More...
 
int32_t m_nodefrom
 initial node number More...
 
int32_t m_nodeto
 last node number More...
 
int32_t m_rightpoly
 right polygon number More...
 
Ltype m_type
 line type More...
 

Detailed Description

Definition at line 82 of file Tin.h.

Constructor & Destructor Documentation

te::mnt::TinLine::TinLine ( )
inline

Definition at line 85 of file Tin.h.

te::mnt::TinLine::TinLine ( int32_t &  nodefrom,
int32_t &  nodeto,
int32_t &  leftpoly,
int32_t &  rightpoly,
Ltype  type 
)
inline

Definition at line 87 of file Tin.h.

Member Function Documentation

bool te::mnt::TinLine::ExchangeNode ( int32_t  oldNodeId,
int32_t  newNodeId 
)

Method for exchange nodes in the triangulation.

Parameters
oldNodeIdis the identification number of the old node
newNodeIdis the identification number of the new node
Returns
TRUE if the nodes are the polygons are exchanged or FALSE otherwise
bool te::mnt::TinLine::ExchangePolygon ( int32_t  oldPolyId,
int32_t  newPolyId 
)

Method for exchange polygons in the triangulation.

Parameters
oldPolyIdis the identification number of the old polygon
newPolyIdis the identification number of the new polygon
Returns
TRUE if the polygons are the polygons are exchanged or FALSE otherwise
int32_t te::mnt::TinLine::getLeftPolygon ( )
inline

Get left polygon number.

Definition at line 119 of file Tin.h.

References m_leftpoly.

int32_t te::mnt::TinLine::getNodeFrom ( )
inline

Get initial node number.

Definition at line 100 of file Tin.h.

References m_nodefrom.

int32_t te::mnt::TinLine::getNodeTo ( )
inline

Get last node number.

Definition at line 106 of file Tin.h.

References m_nodeto.

int32_t te::mnt::TinLine::getRightPolygon ( )
inline

Get right polygon number.

Definition at line 125 of file Tin.h.

References m_rightpoly.

Ltype te::mnt::TinLine::getType ( )
inline

Get line type.

Definition at line 154 of file Tin.h.

References m_type.

void te::mnt::TinLine::Nodes ( int32_t  nodefrom,
int32_t  nodeto 
)
inline

Set initial and last node numbers.

Definition at line 109 of file Tin.h.

References m_nodefrom, and m_nodeto.

bool te::mnt::TinLine::operator< ( const TinLine rhs) const
bool te::mnt::TinLine::operator== ( const TinLine rhs) const
bool te::mnt::TinLine::operator> ( const TinLine rhs) const
void te::mnt::TinLine::Polygons ( int32_t  leftpoly,
int32_t  rightpoly 
)
inline

Set left and right polygon numbers

Definition at line 128 of file Tin.h.

References m_leftpoly, and m_rightpoly.

void te::mnt::TinLine::setLeftPolygon ( int32_t  polyid)
inline

Set left polygon number.

Definition at line 116 of file Tin.h.

References m_leftpoly.

void te::mnt::TinLine::setNodeFrom ( int32_t  nodeid)
inline

Set initial node number.

Definition at line 97 of file Tin.h.

References m_nodefrom.

void te::mnt::TinLine::setNodeTo ( int32_t  nodeid)
inline

Set last node number.

Definition at line 103 of file Tin.h.

References m_nodeto.

void te::mnt::TinLine::setRightPolygon ( int32_t  polyid)
inline

Set right polygon number.

Definition at line 122 of file Tin.h.

References m_rightpoly.

void te::mnt::TinLine::setType ( Ltype  ltype)
inline

Set line type.

Definition at line 151 of file Tin.h.

References m_type.

bool te::mnt::TinLine::SwapNode ( )

Method for swap two nodes.

Returns
TRUE always
bool te::mnt::TinLine::SwapNodePolygon ( )

Method for swap two nodes and two adjacent polygons.

Returns
TRUE always
bool te::mnt::TinLine::SwapPolygon ( )

Method for swap two adjacent polygons.

Returns
TRUE always

Member Data Documentation

int32_t te::mnt::TinLine::m_leftpoly
protected

left polygon number

Definition at line 177 of file Tin.h.

Referenced by getLeftPolygon(), Polygons(), and setLeftPolygon().

int32_t te::mnt::TinLine::m_nodefrom
protected

initial node number

Definition at line 175 of file Tin.h.

Referenced by getNodeFrom(), Nodes(), and setNodeFrom().

int32_t te::mnt::TinLine::m_nodeto
protected

last node number

Definition at line 176 of file Tin.h.

Referenced by getNodeTo(), Nodes(), and setNodeTo().

int32_t te::mnt::TinLine::m_rightpoly
protected

right polygon number

Definition at line 178 of file Tin.h.

Referenced by getRightPolygon(), Polygons(), and setRightPolygon().

Ltype te::mnt::TinLine::m_type
protected

line type

Definition at line 179 of file Tin.h.

Referenced by getType(), and setType().


The documentation for this class was generated from the following file: