In file contour/Contour.h:

class ContourLine : public ListElement<ContourLine>

Line class including a list of VertexContour : only includes topological properties

Inheritance:


Public Classes

enum Topology
If the line is open or close

Public Methods

Contour* getContour () const
returns the contour where the line belongs
unsigned int getNbVertices () const
Returns the number of points
Topology getTopology () const
Returns the topology
void setClosedTopology ()
sets the current line as closed
void setEdgePointer ()
set the vertex array stored in each edge consistent with the vertex list
void addVertex (VertexContour *v)
add a vertex at the end of the line
ObjectsList <VertexContour> ::iterator firstVertexContour () const
returns an iterator on the list of vertices
ObjectsList <VertexContour> ::iterator lastVertexContour () const
returns an iterator on the list of vertices
VertexContour* getFirst (void) const
returns the first vertex of the list of type V
VertexContour* getLast (void) const
returns the last vertex of the list of type V
template void applyVertex (void (MT::*fn)(void))
apply a member function to all vertices
virtual VertexContour* createVertex ()
create a new vertex : use a virtual function in order to create inherited vertices

Public

constructors
ContourLine (Contour *c, Topology t=CLOSED)
Build a line without any vertices
ContourLine (ContourLine *l)
Build a dummy line
destructor
virtual ~ContourLine ()
empty

Protected Fields

Contour* contour
the contour where the line belongs
Topology topology
The topology of the line
ObjectsList <VertexContour> vertexList
the list of vertices

Documentation

Line class including a list of VertexContour : only includes topological properties
enum Topology
If the line is open or close

Contour* contour
the contour where the line belongs

Topology topology
The topology of the line

ObjectsList <VertexContour> vertexList
the list of vertices

Contour* getContour() const
returns the contour where the line belongs
Returns:
the contour where the line belongs

unsigned int getNbVertices() const
Returns the number of points
Returns:
the number of vertices

Topology getTopology() const
Returns the topology
Returns:
the line topology

void setClosedTopology()
sets the current line as closed

void setEdgePointer()
set the vertex array stored in each edge consistent with the vertex list

void addVertex(VertexContour *v)
add a vertex at the end of the line
Parameters:
v - the vertex to be added

constructors

ContourLine(Contour *c, Topology t=CLOSED)
Build a line without any vertices
Parameters:
c - the contour where the line belongs
t - the line topology

ContourLine(ContourLine *l)
Build a dummy line
Parameters:
l - any line

destructor

virtual ~ContourLine()
empty

ObjectsList <VertexContour> ::iterator firstVertexContour() const
returns an iterator on the list of vertices. The iterator points on vertices of type VertexContour

ObjectsList <VertexContour> ::iterator lastVertexContour() const
returns an iterator on the list of vertices. The iterator points on vertices of type VertexContour

VertexContour* getFirst(void) const
returns the first vertex of the list of type V

VertexContour* getLast(void) const
returns the last vertex of the list of type V

template void applyVertex(void (MT::*fn)(void))
apply a member function to all vertices
Parameters:
fn - a function applied on a vertex

virtual VertexContour* createVertex()
create a new vertex : use a virtual function in order to create inherited vertices


Direct child classes:
ContourLine3D
ContourLine2D

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de