クラス rcsc::DelaunayTriangulation::Edge

triangle's edge data. [詳細]

#include <delaunay_triangulation.h>

すべてのメンバ一覧

Public メソッド

 Edge (const int id, const Vertex *v0, const Vertex *v1)
 create edge with two vertices. vertices must not be NULL.
 ~Edge ()
 nothing to do
void removeTriangle (TrianglePtr tri)
 remove pointer to the triangle that this edge belongs to. This edge is NOT removed.
void setTriangle (TrianglePtr tri)
 set the triangle that this edge belongs to.
int id () const
 get Id number of this edge
const Vertexvertex (const std::size_t i) const
 get the raw pointer to the vertex that this edge has
Triangletriangle (const std::size_t i) const
 get the raw pointer to the triangle that this edge belongs to
bool hasVertex (const Vertex *v) const
 check if this edge has the specified vertex or not.


説明

triangle's edge data.


コンストラクタとデストラクタ

rcsc::DelaunayTriangulation::Edge::Edge ( const int  id,
const Vertex v0,
const Vertex v1 
) [inline]

create edge with two vertices. vertices must not be NULL.

引数:
id Id number of this edge.
v0 raw pointer to the first vertex
v1 raw pointer to the second vertex


関数

void rcsc::DelaunayTriangulation::Edge::removeTriangle ( TrianglePtr  tri  )  [inline]

remove pointer to the triangle that this edge belongs to. This edge is NOT removed.

引数:
tri pointer to the target triangle

void rcsc::DelaunayTriangulation::Edge::setTriangle ( TrianglePtr  tri  )  [inline]

set the triangle that this edge belongs to.

引数:
tri raw pointer to the triangle.
It is not checked whether this edge belongs to that triangle. If the target triangle is already set or two triangle is already set, this function has no effect. So, this method should be called from Triangle's constructor.

int rcsc::DelaunayTriangulation::Edge::id (  )  const [inline]

get Id number of this edge

戻り値:
Id number

const Vertex* rcsc::DelaunayTriangulation::Edge::vertex ( const std::size_t  i  )  const [inline]

get the raw pointer to the vertex that this edge has

引数:
i specifies array index
戻り値:
const pointer to the vertex

Triangle* rcsc::DelaunayTriangulation::Edge::triangle ( const std::size_t  i  )  const [inline]

get the raw pointer to the triangle that this edge belongs to

引数:
i specifies array index
戻り値:
pointer to the triangle

bool rcsc::DelaunayTriangulation::Edge::hasVertex ( const Vertex v  )  const [inline]

check if this edge has the specified vertex or not.

引数:
v raw pointer to the vertex
戻り値:
true if this edge has the specified vertex.


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0