ReSCue - Retrieval System for Curves
Main Page   Class Hierarchy   Compound List   File List   Compound Members  

rescue::polygonal_curve Template Class Reference

This class provides basic functionality for polygonal curves, such as appending points, removing points, file-IO and iterators, as well as expressing the action of a transformation group acting on the curve. More...

#include <polygonal_curve.h>

List of all members.

Public Types

typedef point point_t
typedef point::arithmetic_t arithmetic_t
typedef arithmetic_t arithmetic
typedef rigid_motion<arithmetic> motion
typedef int size_t
typedef polygon_vertex<point> vertex
typedef polygon_edge<point> edge
typedef vertex_iterator pc_vertex_iterator

Public Methods

size_t length ()
 returns the number of edges (not the number of vertices!) of the curve.

 polygonal_curve ()
 Standard-Konstruktor, welcher einen leeren Polygonzug erzeugt. More...

 polygonal_curve (const polygonal_curve<point>& P, const int n)
 Erzeugt eine neue Polygonkurve, indem von P die ersten
Kanten entfernt werden.


 polygonal_curve (const polygonal_curve<point>&)
 Copy-Construcotr for a polygonal curve. More...

 polygonal_curve (const polygonal_curve<point>& P, vertex* one)
 Erzeugt eine Polygonkurve, bei der die erste Kante von P durch die Kante one ersetzt wird.

 ~polygonal_curve ()
polygonal_curve<point>& operator= (const polygonal_curve<point>&)
 Copy-Construcotr for a polygonal curve. More...

void clear ()
void push_front (vertex* v)
void push_back (vertex* v)
void delete_last_point ()
vertex_iterator vertex_begin () const
vertex_iterator vertex_end () const
edge_iterator edge_begin ()
edge_iterator edge_end ()
void read (std::fstream&)
void write (std::fstream&)
polygonal_curve<point>& operator *= (const motion& m)
bool empty ()


Detailed Description

template<class point> template class rescue::polygonal_curve

This class provides basic functionality for polygonal curves, such as appending points, removing points, file-IO and iterators, as well as expressing the action of a transformation group acting on the curve.


Constructor & Destructor Documentation

template<classpoint>
rescue::polygonal_curve< point >::polygonal_curve<point> ( )
 

Standard-Konstruktor, welcher einen leeren Polygonzug erzeugt.

Dieser kann durch push_front() -Aufrufe zu einem nicht-leeren Polygonzug erweitert werden.

template<classpoint>
rescue::polygonal_curve< point >::polygonal_curve<point> ( const polygonal_curve< point >& P )
 

Copy-Construcotr for a polygonal curve.

All vertices in the returned curve are newly instantiated.


Member Function Documentation

template<classpoint>
polygonal_curve< point >& rescue::polygonal_curve< point >::operator= ( const polygonal_curve< point >& P )
 

Copy-Construcotr for a polygonal curve.

All vertices in the returned curve are newly instantiated.


The documentation for this class was generated from the following file:
ReSCue - Retrieval System for Curves
Universität Bonn, Institut für Informatik III, 2001