Magick++ 7.1.2
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
 

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 2041 of file Drawable.cpp.

2043 : _coordinates(1,coordinates_)
2044{
2045}

◆ PathSmoothCurvetoAbs() [2/3]

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

Definition at line 2046 of file Drawable.cpp.

2048 : _coordinates(coordinates_)
2049{
2050}

◆ PathSmoothCurvetoAbs() [3/3]

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

Definition at line 2051 of file Drawable.cpp.

2053 : VPathBase (original_),
2054 _coordinates(original_._coordinates)
2055{
2056}

◆ ~PathSmoothCurvetoAbs()

Magick::PathSmoothCurvetoAbs::~PathSmoothCurvetoAbs ( void )

Definition at line 2057 of file Drawable.cpp.

2058{
2059}

Member Function Documentation

◆ copy()

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

Implements Magick::VPathBase.

Definition at line 2074 of file Drawable.cpp.

2075{
2076 return new PathSmoothCurvetoAbs(*this);
2077}

◆ operator()()

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

Implements Magick::VPathBase.

Definition at line 2060 of file Drawable.cpp.

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

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: