GOps Class Reference
[libgfc Index] [libgfc Hierarchy]
[Headers]
Class for generic Ordered Point Sets More...
#include <src/gops.h>
Inherits: GObject
Public Members
- enum {max_parts=1024}
- int n_points
- int n_parts
- int* parts
- Coord* coord
- GOps ()
- GOps (const GOps& o)
- GOps& operator= (const GOps& other)
- virtual ~GOps ()
- virtual Result init (void)
- virtual uint32 getPSize () const
- virtual Result input (const char* )
- virtual Result output (char*& )
- virtual Result pack (DataPipe& )
- virtual Result unpack (DataPipe& )
- virtual Result mbr (GRect& r) const
- virtual Result calcMbr (GRect& r)
- virtual void setMbr (const GRect& r)
- virtual Result scale (double xf, double yf, double zf=1)
- virtual Result translate (double xf, double yf, double zf=1)
- virtual Result rotate (double, bool)
- virtual Result transform (const GMatrix&)
- virtual Result addPart (int n_pnts, Coord* c)
- virtual int getPart (int nth, Coord*& cp)
- virtual int getPartSize (int nth)
- virtual void set (int n_parts, int n_pnts, const int* parts, const Coord* coord)
- virtual double totalLength () const
- virtual double partLength (int nth) const
- virtual int isInside (const GRect& r) const
- virtual int isInside (const GCircle& c) const
- virtual int intersects (int n_pnts, Coord* coo) const
- virtual int intersects (const GSegment& seg_in) const
- virtual int intersects (const GRect& r) const
- virtual int intersects (const GCircle& c) const
- virtual int intersects (const GOps& other) const
- friend ostream& operator<< (ostream&, const GOps& o)
- friend DataPipe& operator<< (DataPipe& p, GObject& a)
- friend DataPipe& operator>> (DataPipe& p, GObject& a)
- int PointCapacity (int n_pnts)
- int PartsCapacity (int n_parts)
- virtual Result extendPartsTo (int n, bool keep)
- virtual Result extendPointTo (int n, bool keep)
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
|