libetonyek::KEYPath::Element Class Reference

An element of path. More...

List of all members.

Public Member Functions

virtual ~Element ()=0
virtual Elementclone () const =0
virtual bool approxEqualsTo (const Element *other, double eps) const =0
 Test whether this element is equal to other.
virtual void transform (const KEYTransformation &tr)=0
 Transform this path element.
virtual WPXPropertyList toWPG () const =0
 Create WPG representation of this path element.

Detailed Description

An element of path.


Constructor & Destructor Documentation


Member Function Documentation

virtual bool libetonyek::KEYPath::Element::approxEqualsTo ( const Element other,
double  eps 
) const [pure virtual]

Test whether this element is equal to other.

Note:
Because all implementations of this interface are directly derived from it (i.e., thay have no subclasses), it is enough to check if other has a compatible type, not that this and other have the same type (which would require double dispatch).
Returns:
true if this and other are equal.

Referenced by libetonyek::approxEqual().

virtual Element* libetonyek::KEYPath::Element::clone ( ) const [pure virtual]
virtual WPXPropertyList libetonyek::KEYPath::Element::toWPG ( ) const [pure virtual]

Create WPG representation of this path element.

virtual void libetonyek::KEYPath::Element::transform ( const KEYTransformation tr) [pure virtual]

Transform this path element.

  • [in] tr the transformation

Referenced by libetonyek::KEYPath::operator*=().


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