Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
IntPolygon2dC::IntPolygon2dC(void)
IntPolygon2dC::IntPolygon2dC(const IntPolygon2dC &)
IntPolygon2dC::IntPolygon2dC(const Index2ListC &)
IntPolygon2dC::IntPolygon2dC(const DListC &)
IntPolygon2dC::IntPolygon2dC(const DListC &)
IntPolygon2dC::List(void) const
IntPolygon2dC::Area2(void) const
IntPolygon2dC::MinimumRectangle(void) const
IntPolygon2dC::MyList(void)
IntPolygon2dC::operator>>(istream &,IntPolygon2dC &)
IntPolygon2dC::operator<<(ostream &,const IntPolygon2dC &)
IntPolygon2dC
 
An integer polygon in 2d space
 
include "amma/IPolyg2.hh"
User Level:Default
Library:Mcg2
Example:exBnd.cc
Section:Geometry.2-D
In Scope:std

Comments:
The IntPolygon2dC class is a representation of a polygon in 2 dimensional digital space. A polygon is the region of a plane bounded by a finite collection of line segments forming a simple closed curve.

Parent Classes: Typedefs:
typedef LongIntT AreaT;
polygon area

typedef RealT DAreaT;
non-integer area during computation.

Methods:
IntPolygon2dC()
Empty polygon.

IntPolygon2dC(const IntPolygon2dC & points)
Another access to the polygon.

IntPolygon2dC(const Index2ListC & points)
Constructs a polygon from a list of points. The 'points' will be shared by the polygon (as a big object).

IntPolygon2dC(const DListC<EdgePtrC> & vertexes)
Construct a polygon from a list of vertexes.

IntPolygon2dC(const DListC<EdgeCPtrC> & vertexes)
Construct a polygon from a list of vertexes. Access to the object model --------------------------

const Index2ListC & List() const
Access to the constant list of vertexes. Derived characteristics of the object -------------------------------------

AreaT Area2() const
Returns twice the signed area of this polygon. Ref.: - O'Rourke,J.: Computatinal geometry in C; Cambridge University Press, 1994, pp. 20-26

IntRectangleTPC MinimumRectangle() const
Returns a minimum enclosing rectangle of this polygon. The polygon must be convex and counter-clockwise oriented.

Index2ListC & MyList()
Returns the reference to the list of indexes.

istream & operator>>(istream & s,IntPolygon2dC & pol)

ostream & operator<<(ostream & s,const IntPolygon2dC & pol)


Programmer:Radek Marik, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001