Adaptagrams
Public Member Functions | List of all members
Avoid::ReferencingPolygon Class Reference

A Polygon which just references its points from other Polygons. More...

#include <geomtypes.h>

Inheritance diagram for Avoid::ReferencingPolygon:
Inheritance graph
Collaboration diagram for Avoid::ReferencingPolygon:
Collaboration graph

Public Member Functions

void clear (void)
 Resets this to the empty polygon.
 
bool empty (void) const
 Returns true if this polygon is empty.
 
size_t size (void) const
 Returns the number of points in this polygon.
 
int id (void) const
 Returns the ID value associated with this polygon.
 
const Pointat (size_t index) const
 Returns a specific point in the polygon. More...
 
- Public Member Functions inherited from Avoid::PolygonInterface
 PolygonInterface ()
 Constructor.
 
virtual ~PolygonInterface ()
 Destructor.
 
Polygon boundingRectPolygon (void) const
 Returns the bounding rectangle for this polygon. More...
 
Box offsetBoundingBox (double offset) const
 Returns the bounding rectangle that contains this polygon with optionally some buffer space around it for routing. More...
 

Detailed Description

A Polygon which just references its points from other Polygons.

This type of Polygon is used to accurately represent cluster boundaries made up from the corner points of shapes.

Member Function Documentation

◆ at()

const Point & Avoid::ReferencingPolygon::at ( size_t  index) const
virtual

Returns a specific point in the polygon.

Parameters
[in]indexThe array index of the point to be returned.

Implements Avoid::PolygonInterface.

References Avoid::Polygon::ps, Avoid::Polygon::size(), and size().

Referenced by Avoid::Router::outputInstanceToSVG().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: