GOps Class Reference

[libgfc Index] [libgfc Hierarchy] [Headers]


Class for generic Ordered Point Sets More...

#include <src/gops.h>

Inherits: GObject

Public Members


Detailed Description

Class for generic Ordered Point Sets.

Each OPS object contains several "parts" that are a series of ordered points or vertices (pairs of x,y coordinates). GOps provides the infrastructure for defining ADTs such as GPolygon and GArc, both are essentially represented by multiple parts of ordered series of points (In the case of GArc, the parts are the branches; while for GPolygon the parts are the holes or rings). GOps provides the basic functionalities for manipulating such point sets.


Result addPart(int n_pnts, Coord* c) [public virtual]

add a part, which is just an array of coordinate pairs.

int getPart(int nth, Coord*& cp) [public virtual]

return the information about a specific part.

int getPartSize(int nth) [public virtual]

return the number of points (pairs of cooridnates) in the nth part

double totalLength() const [public virtual]

total length of all the parts.

double partLength(int nth) const [public virtual]

return the length of the nth part


Documentation generated by lqian@lqian-sun on Wed Jul 14 09:36:10 EDT 1999
Kdoc