Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qgar::WDSegmentList Class Reference
[Polygonal approximations]

#include <qgarlib/WDSegmentList.H>

List of all members.


Detailed Description

Polygonal approximation of a chain of points, using Wall & Danielsson's method.

The method is described in [Wall and Danielsson, 1984].

Todo:
The class should be a client of STL class list, instead of deriving from it!
Author:
Karl Tombre
Date:
July 3, 2001 09:56
Since:
Qgar 1.0

Definition at line 386 of file WDSegmentList.H.

Public Member Functions

Constructors
 WDSegmentList (AbstractGenPointChain< int > &chain, int wdThreshold)
 Construct from given chain, using given threshold.
Destructor
virtual ~WDSegmentList ()
 Virtual destructor.

Private Member Functions

Auxiliary functions
void PRIVATEperform (AbstractGenPointChain< int > &, int)
 Perform polygonal approximation.

Private Attributes

Auxiliary data
WDSegment _cutSeg
 Used for angular points processing.
WDSegment _newSeg
 Used for angular points processing.


Constructor & Destructor Documentation

qgar::WDSegmentList::WDSegmentList AbstractGenPointChain< int > &  chain,
int  wdThreshold
 

Construct from given chain, using given threshold.

Definition at line 223 of file WDSegmentList.C.

References PRIVATEperform().

qgar::WDSegmentList::~WDSegmentList  )  [virtual]
 

Virtual destructor.

Definition at line 237 of file WDSegmentList.C.


Member Function Documentation

void qgar::WDSegmentList::PRIVATEperform AbstractGenPointChain< int > &  ,
int 
[private]
 

Perform polygonal approximation.

Definition at line 254 of file WDSegmentList.C.

References _cutSeg, _newSeg, qgar::WDSegment::approxFactor(), qgar::AbstractGenPointChain< T >::back(), qgar::AbstractGenPointChain< T >::current(), qgar::WDSegment::direction(), qgar::AbstractGenPointChain< T >::empty(), qgar::AbstractGenPointChain< T >::front(), qgar::AbstractGenPointChain< T >::hasNext(), qgar::AbstractGenPointChain< T >::moveNext(), qgar::Math::QG_SQRT_MAX_INT16b, qgar::qgDirection(), qgar::QGE_DIRECTION_E, qgar::WDSegment::set(), qgar::WDSegment::setApproxFactor(), qgar::WDSegment::setDirection(), qgar::AbstractGenPrimitive< T >::setSource(), qgar::WDSegment::setSqrLength(), qgar::AbstractGenPrimitive< T >::setTarget(), qgar::AbstractGenPointChain< T >::setToBegin(), qgar::AbstractGenPrimitive< T >::source(), qgar::WDSegment::sqrLength(), qgar::AbstractGenPrimitive< T >::target(), qgar::WDSegment::translateTarget(), qgar::WALLDANIELSSONSEGMENTLIST_MAX_DIR_CHANGE, qgar::GenPoint< T >::x(), and qgar::GenPoint< T >::y().

Referenced by WDSegmentList().


Member Data Documentation

WDSegment qgar::WDSegmentList::_cutSeg [private]
 

Used for angular points processing.

Definition at line 443 of file WDSegmentList.H.

Referenced by PRIVATEperform().

WDSegment qgar::WDSegmentList::_newSeg [private]
 

Used for angular points processing.

Definition at line 448 of file WDSegmentList.H.

Referenced by PRIVATEperform().


The documentation for this class was generated from the following files: