Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

C2DLineBase Class Reference

C2DLineBase class, an abstract class which defines the functionality that a Line class must have. More...

#include <2DLineBase.h>

Inheritance diagram for C2DLineBase:

C2DBase C2DArc C2DLine List of all members.

Public Member Functions

 C2DLineBase (C2DBase::E_TYPE Type)
 Constructor.
 ~C2DLineBase (void)
 Destructor.
virtual bool Crosses (const C2DLineBase &Other, C2DPointSet *IntersectionPts=0) const =0
 Intersection with another.
virtual double Distance (const C2DPoint &Point) const =0
 Minimum distance to a point.
virtual double Distance (const C2DPoint &TestPoint, C2DPoint *ptOnThis) const =0
 Minimum distance to a point.
virtual double Distance (const C2DLineBase &Other, C2DPoint *ptOnThis=0, C2DPoint *ptOnOther=0) const =0
 Minimum distance to another.
virtual C2DPoint GetPointFrom (void) const =0
 The point from.
virtual C2DPoint GetPointTo (void) const =0
 The point to.
virtual double GetLength (void) const =0
 The length.
virtual void ReverseDirection (void)=0
 Reverse direction of the line.
virtual void GetSubLines (const C2DPointSet &PtsOnLine, C2DLineBaseSet &LineSet) const =0
virtual void SnapToGrid (void)=0
 Snaps this to the conceptual grid.

Detailed Description

C2DLineBase class, an abstract class which defines the functionality that a Line class must have.

C2DLineBase class, an abstract class which defines the functionality that a Line class must have (in addition to that in C2DBase) to be a line. Lines that inherit properly from this can be used in the C2DPolyBase class to form a closed area / shape with all the associated functions such as distance and intersections.

---------------------------------------------------------------------------


Constructor & Destructor Documentation

C2DLineBase::C2DLineBase C2DBase::E_TYPE  Type  ) 
 

Constructor.

--------------------------------------------------------------------------
C2DLineBase::C2DLineBase

---------------------------------------------------------------------------

C2DLineBase::~C2DLineBase void   ) 
 

Destructor.

--------------------------------------------------------------------------
C2DLineBase::~C2DLineBase

---------------------------------------------------------------------------


Member Function Documentation

virtual void C2DLineBase::GetSubLines const C2DPointSet PtsOnLine,
C2DLineBaseSet LineSet
const [pure virtual]
 

Given a set of points on the line, this function creates sub lines defined by those points. Required by intersection, union and difference functions in the C2DPolyBase class.

Implemented in C2DArc, and C2DLine.


The documentation for this class was generated from the following files:
Generated on Mon Apr 21 11:43:51 2008 for GeoLib by  doxygen 1.4.4