Magick++ 6.9.13
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 2614 of file Drawable.h.

Constructor & Destructor Documentation

◆ PathSmoothCurvetoRel() [1/3]

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

Definition at line 1886 of file Drawable.cpp.

1888 : _coordinates(1,coordinates_)
1889{
1890}

◆ PathSmoothCurvetoRel() [2/3]

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

Definition at line 1891 of file Drawable.cpp.

1893 : _coordinates(coordinates_)
1894{
1895}

◆ PathSmoothCurvetoRel() [3/3]

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

Definition at line 1896 of file Drawable.cpp.

1898 : VPathBase (original_),
1899 _coordinates(original_._coordinates)
1900{
1901}

◆ ~PathSmoothCurvetoRel()

Magick::PathSmoothCurvetoRel::~PathSmoothCurvetoRel ( void )

Definition at line 1902 of file Drawable.cpp.

1903{
1904}

Member Function Documentation

◆ copy()

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

Implements Magick::VPathBase.

Definition at line 1919 of file Drawable.cpp.

1920{
1921 return new PathSmoothCurvetoRel(*this);
1922}

◆ operator()()

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

Implements Magick::VPathBase.

Definition at line 1905 of file Drawable.cpp.

1907{
1908 for( CoordinateList::const_iterator p = _coordinates.begin();
1909 p != _coordinates.end(); p++ )
1910 {
1911 double x2 = p->x();
1912 double y2 = p->y();
1913 p++;
1914 if (p == _coordinates.end() )
1915 break;
1916 DrawPathCurveToSmoothRelative( context_, x2, y2, p->x(), p->y() );
1917 }
1918}

Member Data Documentation

◆ _coordinates

CoordinateList Magick::PathSmoothCurvetoRel::_coordinates
private

Definition at line 2637 of file Drawable.h.


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