#include <2DLineBase.h>
Inheritance diagram for C2DLineBase:
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. |
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.
-------------------------------------------------------------------------- --------------------------------------------------------------------------- |
|
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. |