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

C2DLineBaseSet Class Reference

C2DLineBaseSet class, a collection of lines. More...

#include <2DLineBaseSet.h>

Inheritance diagram for C2DLineBaseSet:

C2DBaseSet C2DBase List of all members.

Public Member Functions

 C2DLineBaseSet (void)
 Constructor.
 ~C2DLineBaseSet (void)
 Destructor.
void AddCopy (const C2DLineBaseSet &Other)
 Adds a copy of the other pointer array.
void MakeCopy (const C2DLineBaseSet &Other)
 Makes a copy of the other.
void operator<< (C2DBaseSet &Other)
 Passes ONLY the pointers of this type from the Other into this.
void Add (C2DLineBase *NewItem)
 Adds a new pointer and takes responsibility for it.
void AddCopy (const C2DLineBase &NewItem)
 Adds a copy of the item given.
void DeleteAndSet (int nIndx, C2DLineBase *NewItem)
 Deletes the current item and sets the pointer to be the new one.
C2DLineBase * ExtractAndSet (int nIndx, C2DLineBase *NewItem)
 Extracts the current item and sets the pointer to be the new one.
C2DLineBase * GetAt (int nIndx)
 Returns the value at the point given.
const C2DLineBase * GetAt (int nIndx) const
 Returns the value at the point given.
C2DLineBase & operator[] (int nIndx)
 Returns a reference to the value at the point given.
const C2DLineBase & operator[] (int nIndx) const
 Returns a reference to the value at the point given.
C2DLineBase * GetLast (void)
 Returns a pointer to the last item.
C2DLineBase * ExtractAt (unsigned int nIndx)
 Extracts the pointer passing deletion responsibility over.
C2DLineBase * ExtractLast (void)
 Extracts the pointer passing deletion responsibility over.
void InsertAt (unsigned int nIndex, C2DLineBase *NewItem)
 Insertion.
void InsertAt (unsigned int nIndex, C2DLineBaseSet &Other)
 Insertion of another array.
void operator<< (C2DLineBaseSet &Other)
 Passes all the pointers from the Other into this.
void operator<< (C2DLineBase *NewItem)
 Adds a new pointer and takes responsibility for it.
void GetIntersections (C2DPointSet *pPoints, CIndexSet *pIndexes1=0, CIndexSet *pIndexes2=0) const
 Calls base class.
void GetIntersections (const C2DLineBaseSet &Other, C2DPointSet *pPoints, CIndexSet *pIndexesThis=0, CIndexSet *pIndexesOther=0, const C2DRect *pBoundingRectThis=0, const C2DRect *pBoundingRectOther=0) const
 Calls base class.
bool HasCrossingLines (void) const
 True if there are crossing lines in the set.
bool IsClosed (bool bEndsOnly=true) const
 Checks for closure i.e. it forms a closed shape.
bool AddIfCommonEnd (C2DLineBaseSet &Other)
 Adds the other to this if there is a common end i.e. they can be joined up.
void Remove0Lines (double dTolerance)
 Removes lines that are small, based on the tolerance.
void ReverseDirection (void)
 Reverses the direction.

Detailed Description

C2DLineBaseSet class, a collection of lines.

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


Constructor & Destructor Documentation

C2DLineBaseSet::C2DLineBaseSet (  void   ) 
 

Constructor.

--------------------------------------------------------------------------
C2DLineBaseSet::C2DLineBaseSet

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

C2DLineBaseSet::~C2DLineBaseSet (  void   ) 
 

Destructor.

--------------------------------------------------------------------------
C2DLineBaseSet::~C2DLineBaseSet

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


Member Function Documentation

void C2DLineBaseSet::AddCopy (  const C2DLineBase &  Line  ) 
 

Adds a copy of the item given.

--------------------------------------------------------------------------
CGeoLineSetBase::AddCopy

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

void C2DLineBaseSet::AddCopy (  const C2DLineBaseSet &  Other  ) 
 

Adds a copy of the other pointer array.

--------------------------------------------------------------------------
C2DLineBaseSet::AddCopy

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

bool C2DLineBaseSet::AddIfCommonEnd (  C2DLineBaseSet &  Other  ) 
 

Adds the other to this if there is a common end i.e. they can be joined up.

--------------------------------------------------------------------------
C2DLineBaseSet::AddIfCommonEnd

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

void C2DLineBaseSet::GetIntersections (  const C2DLineBaseSet &  Other,
C2DPointSet *  pPoints,
CIndexSet *  pIndexesThis = 0,
CIndexSet *  pIndexesOther = 0,
const C2DRect *  pBoundingRectThis = 0,
const C2DRect *  pBoundingRectOther = 0
)  const
 

Calls base class.

--------------------------------------------------------------------------
C2DLineBaseSet::GetIntersections

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

void C2DLineBaseSet::GetIntersections (  C2DPointSet *  pPoints,
CIndexSet *  pIndexes1 = 0,
CIndexSet *  pIndexes2 = 0
)  const
 

Calls base class.

--------------------------------------------------------------------------
C2DLineBaseSet::GetIntersections

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

bool C2DLineBaseSet::HasCrossingLines (  void   )  const
 

True if there are crossing lines in the set.

--------------------------------------------------------------------------
C2DLineBaseSet::HasCrossingLines

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

bool C2DLineBaseSet::IsClosed (  bool  bEndsOnly = true  )  const
 

Checks for closure i.e. it forms a closed shape.

--------------------------------------------------------------------------
C2DLineBaseSet::IsClosed

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

void C2DLineBaseSet::MakeCopy (  const C2DLineBaseSet &  Other  ) 
 

Makes a copy of the other.

--------------------------------------------------------------------------
C2DLineBaseSet::MakeCopy

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

void C2DLineBaseSet::operator<< (  C2DBaseSet &  Other  ) 
 

Passes ONLY the pointers of this type from the Other into this.

--------------------------------------------------------------------------
C2DLineBaseSet::operator<<

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

Reimplemented from C2DBaseSet.

void C2DLineBaseSet::Remove0Lines (  double  dTolerance  ) 
 

Removes lines that are small, based on the tolerance.

--------------------------------------------------------------------------
C2DLineBaseSet::Remove0Lines

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

void C2DLineBaseSet::ReverseDirection (  void   ) 
 

Reverses the direction.

--------------------------------------------------------------------------
C2DLineBaseSet::ReverseDirection

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


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