Magick++ 7.1.1
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
 
virtual void operator() (MagickCore::DrawingWand *context_) const =0
 
virtual VPathBasecopy () const =0
 

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

2078 : _coordinates(1,coordinates_)
2079{
2080}

◆ PathSmoothCurvetoRel() [2/3]

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

Definition at line 2081 of file Drawable.cpp.

2083 : _coordinates(coordinates_)
2084{
2085}

◆ PathSmoothCurvetoRel() [3/3]

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

Definition at line 2086 of file Drawable.cpp.

2088 : VPathBase (original_),
2089 _coordinates(original_._coordinates)
2090{
2091}

◆ ~PathSmoothCurvetoRel()

Magick::PathSmoothCurvetoRel::~PathSmoothCurvetoRel ( void  )

Definition at line 2092 of file Drawable.cpp.

2093{
2094}

Member Function Documentation

◆ copy()

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

Implements Magick::VPathBase.

Definition at line 2109 of file Drawable.cpp.

2110{
2111 return new PathSmoothCurvetoRel(*this);
2112}

◆ operator()()

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

Implements Magick::VPathBase.

Definition at line 2095 of file Drawable.cpp.

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

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: