Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages

RS_InfoArea Class Reference

Class for getting information about an area. More...

#include <rs_infoarea.h>

List of all members.

Public Member Functions

 RS_InfoArea ()
 Constructor.
 ~RS_InfoArea ()
 Destructor.
void reset ()
 Resets the points.
void addPoint (const RS_Vector &p)
 Adds a point to the internal list.
void calculate ()
 Calculates the area and the circumference of the area.
void close ()
 Closes the polygon if it is not closed already.
bool isValid ()
bool isClosed ()
double getArea () const
double getCircumference () const
int count () const
RS_Vector at (int i) const


Detailed Description

Class for getting information about an area.

Author:
Guenter Szolderits

Andrew Mustun


Member Function Documentation

void RS_InfoArea::addPoint const RS_Vector p  ) 
 

Adds a point to the internal list.

Parameters:
p coordinate of the point

bool RS_InfoArea::isClosed  ) 
 

Return values:
true If the area is closed (i.e. start point and end point are identical)
false Otherwise.

bool RS_InfoArea::isValid  ) 
 

Return values:
true If the area is defined (i.e. there are at least 3 points)
false If there are only two or less points.


The documentation for this class was generated from the following files:
Generated on Sat Jan 6 13:48:23 2007 for qcadlib by  doxygen 1.4.4