Magick++ 7.1.2
Loading...
Searching...
No Matches
Magick::PathSmoothCurvetoRel Class Reference
Inheritance diagram for Magick::PathSmoothCurvetoRel:
Collaboration diagram for Magick::PathSmoothCurvetoRel:

Public Member Functions

 PathSmoothCurvetoRel (const Coordinate &coordinates_)
 
 PathSmoothCurvetoRel (const CoordinateList &coordinates_)
 
 PathSmoothCurvetoRel (const PathSmoothCurvetoRel &original_)
 
void operator() (MagickCore::DrawingWand *context_) const
 
VPathBasecopy () const
 

Private Attributes

CoordinateList _coordinates
 

Detailed Description

Definition at line 2713 of file Drawable.h.

Constructor & Destructor Documentation

◆ PathSmoothCurvetoRel() [1/3]

Magick::PathSmoothCurvetoRel::PathSmoothCurvetoRel ( const Coordinate & coordinates_)

Definition at line 2078 of file Drawable.cpp.

2080 : _coordinates(1,coordinates_)
2081{
2082}

◆ PathSmoothCurvetoRel() [2/3]

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

Definition at line 2083 of file Drawable.cpp.

2085 : _coordinates(coordinates_)
2086{
2087}

◆ PathSmoothCurvetoRel() [3/3]

Magick::PathSmoothCurvetoRel::PathSmoothCurvetoRel ( const PathSmoothCurvetoRel & original_)

Definition at line 2088 of file Drawable.cpp.

2090 : VPathBase (original_),
2091 _coordinates(original_._coordinates)
2092{
2093}

◆ ~PathSmoothCurvetoRel()

Magick::PathSmoothCurvetoRel::~PathSmoothCurvetoRel ( void )

Definition at line 2094 of file Drawable.cpp.

2095{
2096}

Member Function Documentation

◆ copy()

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

Implements Magick::VPathBase.

Definition at line 2111 of file Drawable.cpp.

2112{
2113 return new PathSmoothCurvetoRel(*this);
2114}

◆ operator()()

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

Implements Magick::VPathBase.

Definition at line 2097 of file Drawable.cpp.

2099{
2100 for( CoordinateList::const_iterator p = _coordinates.begin();
2101 p != _coordinates.end(); p++ )
2102 {
2103 double x2 = p->x();
2104 double y2 = p->y();
2105 p++;
2106 if (p == _coordinates.end() )
2107 break;
2108 DrawPathCurveToSmoothRelative( context_, x2, y2, p->x(), p->y() );
2109 }
2110}

Member Data Documentation

◆ _coordinates

CoordinateList Magick::PathSmoothCurvetoRel::_coordinates
private

Definition at line 2736 of file Drawable.h.


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