Magick++ 7.1.1
Loading...
Searching...
No Matches
Magick::PathSmoothCurvetoAbs Class Reference
Inheritance diagram for Magick::PathSmoothCurvetoAbs:
Collaboration diagram for Magick::PathSmoothCurvetoAbs:

Public Member Functions

 PathSmoothCurvetoAbs (const Magick::Coordinate &coordinates_)
 
 PathSmoothCurvetoAbs (const CoordinateList &coordinates_)
 
 PathSmoothCurvetoAbs (const PathSmoothCurvetoAbs &original_)
 
void operator() (MagickCore::DrawingWand *context_) const
 
VPathBasecopy () const
 
virtual void operator() (MagickCore::DrawingWand *context_) const =0
 
virtual VPathBasecopy () const =0
 

Private Attributes

CoordinateList _coordinates
 

Detailed Description

Definition at line 2689 of file Drawable.h.

Constructor & Destructor Documentation

◆ PathSmoothCurvetoAbs() [1/3]

Magick::PathSmoothCurvetoAbs::PathSmoothCurvetoAbs ( const Magick::Coordinate coordinates_)

Definition at line 2039 of file Drawable.cpp.

2041 : _coordinates(1,coordinates_)
2042{
2043}

◆ PathSmoothCurvetoAbs() [2/3]

Magick::PathSmoothCurvetoAbs::PathSmoothCurvetoAbs ( const CoordinateList &  coordinates_)

Definition at line 2044 of file Drawable.cpp.

2046 : _coordinates(coordinates_)
2047{
2048}

◆ PathSmoothCurvetoAbs() [3/3]

Magick::PathSmoothCurvetoAbs::PathSmoothCurvetoAbs ( const PathSmoothCurvetoAbs original_)

Definition at line 2049 of file Drawable.cpp.

2051 : VPathBase (original_),
2052 _coordinates(original_._coordinates)
2053{
2054}

◆ ~PathSmoothCurvetoAbs()

Magick::PathSmoothCurvetoAbs::~PathSmoothCurvetoAbs ( void  )

Definition at line 2055 of file Drawable.cpp.

2056{
2057}

Member Function Documentation

◆ copy()

Magick::VPathBase * Magick::PathSmoothCurvetoAbs::copy ( ) const
virtual

Implements Magick::VPathBase.

Definition at line 2072 of file Drawable.cpp.

2073{
2074 return new PathSmoothCurvetoAbs(*this);
2075}

◆ operator()()

void Magick::PathSmoothCurvetoAbs::operator() ( MagickCore::DrawingWand *  context_) const
virtual

Implements Magick::VPathBase.

Definition at line 2058 of file Drawable.cpp.

2060{
2061 for( CoordinateList::const_iterator p = _coordinates.begin();
2062 p != _coordinates.end(); p++ )
2063 {
2064 double x2 = p->x();
2065 double y2 = p->y();
2066 p++;
2067 if (p == _coordinates.end() )
2068 break;
2069 DrawPathCurveToSmoothAbsolute( context_, x2, y2, p->x(), p->y() );
2070 }
2071}

Member Data Documentation

◆ _coordinates

CoordinateList Magick::PathSmoothCurvetoAbs::_coordinates
private

Definition at line 2711 of file Drawable.h.


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