9#define MAGICKCORE_IMPLEMENTATION 1
10#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
11#define MAGICK_DRAWABLE_IMPLEMENTATION
13#include "Magick++/Include.h"
17#include "Magick++/Drawable.h"
18#include "Magick++/Image.h"
25 return ( ( left_.x() == right_.x() ) && ( left_.y() == right_.y() ) );
30 return ( ! (left_ == right_) );
35 return ( !( left_ < right_ ) && ( left_ != right_ ) );
41 return ( (sqrt(left_.x()*left_.x() + left_.y()*left_.y())) <
42 (sqrt(right_.x()*right_.x() + right_.y()*right_.y())) );
47 return ( ( left_ > right_ ) || ( left_ == right_ ) );
52 return ( ( left_ < right_ ) || ( left_ == right_ ) );
56Magick::DrawableBase::~DrawableBase (
void )
61Magick::Drawable::Drawable (
void )
68 : dp(original_.copy())
73Magick::Drawable::~Drawable (
void )
80Magick::Drawable::Drawable (
const Magick::Drawable& original_ )
81 : dp(original_.dp? original_.dp->copy(): 0)
88 if (
this != &original_)
90 DrawableBase* temp_dp = (original_.dp ? original_.dp->copy() : 0);
98void Magick::Drawable::operator()( MagickCore::DrawingWand * context_ )
const
101 dp->operator()( context_ );
104MagickPPExport
int Magick::operator == (
const Magick::Drawable& ,
105 const Magick::Drawable& )
109MagickPPExport
int Magick::operator != (
const Magick::Drawable& ,
110 const Magick::Drawable& )
114MagickPPExport
int Magick::operator > (
const Magick::Drawable& ,
115 const Magick::Drawable& )
119MagickPPExport
int Magick::operator < (
const Magick::Drawable& ,
120 const Magick::Drawable& )
124MagickPPExport
int Magick::operator >= (
const Magick::Drawable& left_,
125 const Magick::Drawable& right_ )
127 return ( ( left_ > right_ ) || ( left_ == right_ ) );
129MagickPPExport
int Magick::operator <= (
const Magick::Drawable& left_,
130 const Magick::Drawable& right_ )
132 return ( ( left_ < right_ ) || ( left_ == right_ ) );
136Magick::VPathBase::~VPathBase (
void )
141Magick::VPath::VPath (
void )
148 : dp(original_.copy())
153 Magick::VPath::~VPath (
void )
160Magick::VPath::VPath (
const Magick::VPath& original_ )
161 : dp(original_.dp? original_.dp->copy(): 0)
168 if (
this != &original_)
170 VPathBase* temp_dp = (original_.dp ? original_.dp->copy() : 0);
178void Magick::VPath::operator()( MagickCore::DrawingWand * context_ )
const
181 dp->operator()( context_ );
184MagickPPExport
int Magick::operator == (
const Magick::VPath& ,
185 const Magick::VPath& )
189MagickPPExport
int Magick::operator != (
const Magick::VPath& ,
190 const Magick::VPath& )
194MagickPPExport
int Magick::operator > (
const Magick::VPath& ,
195 const Magick::VPath& )
199MagickPPExport
int Magick::operator < (
const Magick::VPath& ,
200 const Magick::VPath& )
204MagickPPExport
int Magick::operator >= (
const Magick::VPath& left_,
205 const Magick::VPath& right_ )
207 return ( ( left_ > right_ ) || ( left_ == right_ ) );
209MagickPPExport
int Magick::operator <= (
const Magick::VPath& left_,
210 const Magick::VPath& right_ )
212 return ( ( left_ < right_ ) || ( left_ == right_ ) );
220Magick::DrawableAffine::DrawableAffine(
double sx_,
double sy_,
221 double rx_,
double ry_,
222 double tx_,
double ty_ )
231Magick::DrawableAffine::DrawableAffine(
void )
233 GetAffineMatrix(&_affine);
235Magick::DrawableAffine::~DrawableAffine(
void )
238void Magick::DrawableAffine::operator()( MagickCore::DrawingWand * context_ )
const
240 DrawAffine( context_, &_affine );
242Magick::DrawableBase* Magick::DrawableAffine::copy()
const
248Magick::DrawableArc::~DrawableArc(
void )
251void Magick::DrawableArc::operator()( MagickCore::DrawingWand * context_ )
const
253 DrawArc( context_, _startX, _startY, _endX, _endY, _startDegrees, _endDegrees );
255Magick::DrawableBase* Magick::DrawableArc::copy()
const
264Magick::DrawableBezier::DrawableBezier (
const CoordinateList &coordinates_ )
265 : _coordinates(coordinates_)
270 : DrawableBase (original_),
271 _coordinates(original_._coordinates)
275Magick::DrawableBezier::~DrawableBezier(
void )
278void Magick::DrawableBezier::operator()( MagickCore::DrawingWand * context_ )
const
280 size_t num_coords = (size_t) _coordinates.size();
281 PointInfo *coordinates =
new PointInfo[num_coords];
283 PointInfo *q = coordinates;
284 CoordinateList::const_iterator p = _coordinates.begin();
286 while( p != _coordinates.end() )
294 DrawBezier( context_, num_coords, coordinates );
295 delete [] coordinates;
297Magick::DrawableBase* Magick::DrawableBezier::copy()
const
307Magick::DrawablePopClipPath::~DrawablePopClipPath (
void )
310void Magick::DrawablePopClipPath::operator() ( MagickCore::DrawingWand * context_ )
const
312 DrawPopClipPath( context_ );
313 DrawPopDefs(context_);
315Magick::DrawableBase* Magick::DrawablePopClipPath::copy()
const
321Magick::DrawablePushClipPath::DrawablePushClipPath(
const std::string &id_)
325Magick::DrawablePushClipPath::DrawablePushClipPath
327 : DrawableBase (original_),
328 _id(original_._id.c_str())
331Magick::DrawablePushClipPath::~DrawablePushClipPath(
void )
334void Magick::DrawablePushClipPath::operator()
335 ( MagickCore::DrawingWand * context_ )
const
337 DrawPushDefs(context_);
338 DrawPushClipPath( context_, _id.c_str());
340Magick::DrawableBase* Magick::DrawablePushClipPath::copy()
const
347Magick::DrawableClipPath::DrawableClipPath(
const std::string &id_ )
353 : DrawableBase (original_),
354 _id(original_._id.c_str())
357Magick::DrawableClipPath::~DrawableClipPath(
void )
360void Magick::DrawableClipPath::operator()( MagickCore::DrawingWand * context_ )
const
362 (void) DrawSetClipPath( context_, _id.c_str());
364Magick::DrawableBase* Magick::DrawableClipPath::copy()
const
370Magick::DrawableCircle::~DrawableCircle (
void )
373void Magick::DrawableCircle::operator()( MagickCore::DrawingWand * context_ )
const
375 DrawCircle( context_, _originX, _originY, _perimX, _perimY );
377Magick::DrawableBase* Magick::DrawableCircle::copy()
const
383Magick::DrawableColor::~DrawableColor(
void )
386void Magick::DrawableColor::operator()( MagickCore::DrawingWand * context_ )
const
388 DrawColor( context_, _x, _y, _paintMethod );
390Magick::DrawableBase* Magick::DrawableColor::copy()
const
396Magick::DrawableCompositeImage::DrawableCompositeImage
397(
double x_,
double y_,
398 double width_,
double height_,
399 const std::string &filename_,
400 Magick::CompositeOperator composition_ )
401 : _composition(composition_),
406 _image(new
Image(filename_))
409Magick::DrawableCompositeImage::DrawableCompositeImage
410(
double x_,
double y_,
411 double width_,
double height_,
413 Magick::CompositeOperator composition_ )
414 : _composition(composition_),
419 _image(new Image(image_))
422Magick::DrawableCompositeImage::DrawableCompositeImage
423(
double x_,
double y_,
424 double width_,
double height_,
425 const std::string &filename_ )
426 :_composition(CopyCompositeOp),
431 _image(new Image(filename_))
434Magick::DrawableCompositeImage::DrawableCompositeImage
435(
double x_,
double y_,
436 double width_,
double height_,
438 :_composition(CopyCompositeOp),
443 _image(new Image(image_))
446Magick::DrawableCompositeImage::DrawableCompositeImage
447(
double x_,
double y_,
448 const std::string &filename_ )
449 : _composition(CopyCompositeOp),
454 _image(new Image(filename_))
456 _width=_image->columns();
457 _height=_image->rows();
459Magick::DrawableCompositeImage::DrawableCompositeImage
460(
double x_,
double y_,
462 : _composition(CopyCompositeOp),
467 _image(new Image(image_))
469 _width=_image->columns();
470 _height=_image->rows();
473Magick::DrawableCompositeImage::DrawableCompositeImage
475 : Magick::DrawableBase(original_),
476 _composition(original_._composition),
479 _width(original_._width),
480 _height(original_._height),
481 _image(new Image(*original_._image))
484Magick::DrawableCompositeImage::~DrawableCompositeImage(
void )
489Magick::DrawableCompositeImage& Magick::DrawableCompositeImage::operator=
490(
const Magick::DrawableCompositeImage& original_ )
493 if (
this != &original_ )
495 _composition = original_._composition;
498 _width = original_._width;
499 _height = original_._height;
500 Image* temp_image =
new Image(*original_._image);
506void Magick::DrawableCompositeImage::filename(
const std::string &filename_ )
512std::string Magick::DrawableCompositeImage::filename(
void )
const
514 return _image->fileName();
517void Magick::DrawableCompositeImage::image(
const Magick::Image &image_ )
523Magick::Image Magick::DrawableCompositeImage::image(
void )
const
529void Magick::DrawableCompositeImage::magick( std::string magick_ )
531 _image->magick( magick_ );
533std::string Magick::DrawableCompositeImage::magick(
void )
535 return _image->magick();
538void Magick::DrawableCompositeImage::operator()
539 ( MagickCore::DrawingWand * context_ )
const
544 magick_wand=NewMagickWandFromImage(_image->constImage());
545 (void) DrawComposite( context_, _composition, _x, _y, _width, _height,
547 magick_wand=DestroyMagickWand(magick_wand);
550Magick::DrawableBase* Magick::DrawableCompositeImage::copy()
const
555Magick::DrawableDensity::DrawableDensity(
const std::string &density_)
560Magick::DrawableDensity::~DrawableDensity(
void)
564void Magick::DrawableDensity::operator()(
565 MagickCore::DrawingWand *context_)
const
567 DrawSetDensity(context_,_density.c_str());
570Magick::DrawableBase* Magick::DrawableDensity::copy()
const
576Magick::DrawableEllipse::~DrawableEllipse(
void )
579void Magick::DrawableEllipse::operator()
580 ( MagickCore::DrawingWand * context_ )
const
582 DrawEllipse( context_, _originX, _originY, _radiusX, _radiusY,
583 _arcStart, _arcEnd );
585Magick::DrawableBase* Magick::DrawableEllipse::copy()
const
591Magick::DrawableFillColor::DrawableFillColor(
const Magick::Color &color_ )
595Magick::DrawableFillColor::DrawableFillColor
597 : DrawableBase (original_),
598 _color(original_._color)
601Magick::DrawableFillColor::~DrawableFillColor(
void )
604void Magick::DrawableFillColor::operator()
605 ( MagickCore::DrawingWand * context_ )
const
607 PixelPacket color =
static_cast<PixelPacket
>(_color);
608 PixelWand *pixel_wand=NewPixelWand();
609 PixelSetQuantumColor(pixel_wand,&color);
610 DrawSetFillColor(context_,pixel_wand);
611 pixel_wand=DestroyPixelWand(pixel_wand);
613Magick::DrawableBase* Magick::DrawableFillColor::copy()
const
619Magick::DrawableFillRule::~DrawableFillRule (
void )
622void Magick::DrawableFillRule::operator()
623 ( MagickCore::DrawingWand * context_ )
const
625 DrawSetFillRule( context_, _fillRule );
627Magick::DrawableBase* Magick::DrawableFillRule::copy()
const
633Magick::DrawableFillOpacity::~DrawableFillOpacity (
void )
636void Magick::DrawableFillOpacity::operator()
637 ( MagickCore::DrawingWand * context_ )
const
639 DrawSetFillOpacity( context_, _opacity );
641Magick::DrawableBase* Magick::DrawableFillOpacity::copy()
const
647Magick::DrawableFont::DrawableFont (
const std::string &font_ )
650 _style(Magick::AnyStyle),
652 _stretch(Magick::NormalStretch)
655Magick::DrawableFont::DrawableFont (
const std::string &family_,
656 Magick::StyleType style_,
657 const unsigned int weight_,
658 Magick::StretchType stretch_ )
667 : DrawableBase (original_),
668 _font(original_._font),
669 _family(original_._family),
670 _style(original_._style),
671 _weight(original_._weight),
672 _stretch(original_._stretch)
675Magick::DrawableFont::~DrawableFont (
void )
678void Magick::DrawableFont::operator()( MagickCore::DrawingWand * context_ )
const
683 (void) DrawSetFont( context_, _font.c_str() );
689 (void) DrawSetFontFamily( context_, _family.c_str() );
692 DrawSetFontStyle( context_, _style );
695 DrawSetFontWeight( context_, _weight );
698 DrawSetFontStretch( context_, _stretch );
701Magick::DrawableBase* Magick::DrawableFont::copy()
const
707Magick::DrawableGravity::~DrawableGravity (
void )
710void Magick::DrawableGravity::operator()
711 ( MagickCore::DrawingWand * context_ )
const
713 DrawSetGravity( context_, _gravity );
715Magick::DrawableBase* Magick::DrawableGravity::copy()
const
721Magick::DrawableLine::~DrawableLine (
void )
724void Magick::DrawableLine::operator()( MagickCore::DrawingWand * context_ )
const
726 DrawLine( context_, _startX, _startY, _endX, _endY );
728Magick::DrawableBase* Magick::DrawableLine::copy()
const
734Magick::DrawableMatte::~DrawableMatte (
void )
737void Magick::DrawableMatte::operator()( MagickCore::DrawingWand * context_ )
const
739 DrawMatte( context_, _x, _y, _paintMethod );
741Magick::DrawableBase* Magick::DrawableMatte::copy()
const
747Magick::DrawablePath::DrawablePath (
const VPathList &path_ )
752 : DrawableBase (original_),
753 _path(original_._path)
756Magick::DrawablePath::~DrawablePath (
void )
759void Magick::DrawablePath::operator()( MagickCore::DrawingWand * context_ )
const
761 DrawPathStart( context_ );
763 for( VPathList::const_iterator p = _path.begin();
764 p != _path.end(); p++ )
765 p->operator()( context_ );
767 DrawPathFinish( context_ );
769Magick::DrawableBase* Magick::DrawablePath::copy()
const
775Magick::DrawablePoint::~DrawablePoint (
void )
778void Magick::DrawablePoint::operator()( MagickCore::DrawingWand * context_ )
const
780 DrawPoint( context_, _x, _y );
782Magick::DrawableBase* Magick::DrawablePoint::copy()
const
788Magick::DrawablePointSize::~DrawablePointSize (
void )
791void Magick::DrawablePointSize::operator()
792 ( MagickCore::DrawingWand * context_ )
const
794 DrawSetFontSize( context_, _pointSize );
796Magick::DrawableBase* Magick::DrawablePointSize::copy()
const
802Magick::DrawablePolygon::DrawablePolygon (
const CoordinateList &coordinates_ )
803 : _coordinates(coordinates_)
806Magick::DrawablePolygon::DrawablePolygon
808 : DrawableBase (original_),
809 _coordinates(original_._coordinates)
812Magick::DrawablePolygon::~DrawablePolygon (
void )
815void Magick::DrawablePolygon::operator()
816 ( MagickCore::DrawingWand * context_ )
const
818 size_t num_coords = (size_t) _coordinates.size();
819 PointInfo *coordinates =
new PointInfo[num_coords];
821 PointInfo *q = coordinates;
822 CoordinateList::const_iterator p = _coordinates.begin();
824 while( p != _coordinates.end() )
832 DrawPolygon( context_, num_coords, coordinates );
833 delete [] coordinates;
835Magick::DrawableBase* Magick::DrawablePolygon::copy()
const
841Magick::DrawablePolyline::DrawablePolyline
842(
const CoordinateList &coordinates_ )
843 : _coordinates(coordinates_)
846Magick::DrawablePolyline::DrawablePolyline
848 : DrawableBase (original_),
849 _coordinates(original_._coordinates)
852Magick::DrawablePolyline::~DrawablePolyline (
void )
855void Magick::DrawablePolyline::operator()
856 ( MagickCore::DrawingWand * context_ )
const
858 size_t num_coords = (size_t) _coordinates.size();
859 PointInfo *coordinates =
new PointInfo[num_coords];
861 PointInfo *q = coordinates;
862 CoordinateList::const_iterator p = _coordinates.begin();
864 while( p != _coordinates.end() )
872 DrawPolyline( context_, num_coords, coordinates );
873 delete [] coordinates;
875Magick::DrawableBase* Magick::DrawablePolyline::copy()
const
881Magick::DrawablePopGraphicContext::~DrawablePopGraphicContext (
void )
884void Magick::DrawablePopGraphicContext::operator()
885 ( MagickCore::DrawingWand * context_ )
const
887 PopDrawingWand( context_ );
889Magick::DrawableBase* Magick::DrawablePopGraphicContext::copy()
const
895Magick::DrawablePushGraphicContext::~DrawablePushGraphicContext (
void )
898void Magick::DrawablePushGraphicContext::operator()
899 ( MagickCore::DrawingWand * context_ )
const
901 PushDrawingWand( context_ );
903Magick::DrawableBase* Magick::DrawablePushGraphicContext::copy()
const
909Magick::DrawablePopPattern::~DrawablePopPattern (
void )
912void Magick::DrawablePopPattern::operator()
913 ( MagickCore::DrawingWand * context_ )
const
915 (void) DrawPopPattern( context_ );
917Magick::DrawableBase* Magick::DrawablePopPattern::copy()
const
923Magick::DrawablePushPattern::DrawablePushPattern
924(
const std::string &id_, ssize_t x_, ssize_t y_,
925 size_t width_,
size_t height_ )
933Magick::DrawablePushPattern::DrawablePushPattern
935 : DrawableBase (original_),
939 _width(original_._width),
940 _height(original_._height)
943Magick::DrawablePushPattern::~DrawablePushPattern (
void )
946void Magick::DrawablePushPattern::operator()
947 ( MagickCore::DrawingWand * context_ )
const
949 (void) DrawPushPattern( context_, _id.c_str(), _x, _y, _width, _height );
951Magick::DrawableBase* Magick::DrawablePushPattern::copy()
const
957Magick::DrawableRectangle::~DrawableRectangle (
void )
960void Magick::DrawableRectangle::operator()
961 ( MagickCore::DrawingWand * context_ )
const
963 DrawRectangle( context_, _upperLeftX, _upperLeftY,
964 _lowerRightX, _lowerRightY );
966Magick::DrawableBase* Magick::DrawableRectangle::copy()
const
972Magick::DrawableRotation::~DrawableRotation (
void )
975void Magick::DrawableRotation::operator()
976 ( MagickCore::DrawingWand * context_ )
const
978 DrawRotate( context_, _angle );
980Magick::DrawableBase* Magick::DrawableRotation::copy()
const
986Magick::DrawableRoundRectangle::~DrawableRoundRectangle (
void )
989void Magick::DrawableRoundRectangle::operator()
990 ( MagickCore::DrawingWand * context_ )
const
992 DrawRoundRectangle(context_,_upperLeftX,_upperLeftY,_lowerRightX,
993 _lowerRightY,_cornerWidth, _cornerHeight);
995Magick::DrawableBase* Magick::DrawableRoundRectangle::copy()
const
1001Magick::DrawableScaling::~DrawableScaling (
void )
1004void Magick::DrawableScaling::operator()
1005 ( MagickCore::DrawingWand * context_ )
const
1007 DrawScale( context_, _x, _y );
1009Magick::DrawableBase* Magick::DrawableScaling::copy()
const
1015Magick::DrawableSkewX::~DrawableSkewX (
void )
1018void Magick::DrawableSkewX::operator()
1019 ( MagickCore::DrawingWand * context_ )
const
1021 DrawSkewX( context_, _angle );
1023Magick::DrawableBase* Magick::DrawableSkewX::copy()
const
1029Magick::DrawableSkewY::~DrawableSkewY (
void )
1032void Magick::DrawableSkewY::operator()( MagickCore::DrawingWand * context_ )
const
1034 DrawSkewY( context_, _angle );
1036Magick::DrawableBase* Magick::DrawableSkewY::copy()
const
1042Magick::DrawableDashArray::DrawableDashArray(
const double* dasharray_ )
1046 dasharray( dasharray_ );
1050Magick::DrawableDashArray::DrawableDashArray(
const size_t* dasharray_ )
1054 dasharray( dasharray_ );
1056Magick::DrawableDashArray::DrawableDashArray
1058 : DrawableBase (original_),
1059 _size(original_._size),
1060 _dasharray(new double[_size+1])
1064 for (
size_t i=0; i < _size; i++)
1065 _dasharray[i]=original_._dasharray[i];
1066 _dasharray[_size]=0.0;
1069Magick::DrawableDashArray::~DrawableDashArray(
void )
1071 delete [] _dasharray;
1075Magick::DrawableDashArray& Magick::DrawableDashArray::operator=
1076(
const Magick::DrawableDashArray &original_)
1078 if(
this != &original_ )
1080 delete [] _dasharray;
1081 _size=original_._size;
1082 _dasharray =
new double[_size+1];
1085 for (
size_t i=0; i < _size; i++)
1086 _dasharray[i]=original_._dasharray[i];
1087 _dasharray[_size]=0.0;
1093void Magick::DrawableDashArray::operator()
1094 ( MagickCore::DrawingWand *context_ )
const
1096 (void) DrawSetStrokeDashArray( context_, (
const unsigned long) _size, _dasharray );
1098Magick::DrawableBase* Magick::DrawableDashArray::copy()
const
1102void Magick::DrawableDashArray::dasharray (
const double* dasharray_ )
1104 delete [] _dasharray;
1113 const double *p = dasharray_;
1120 _dasharray=
new double[_size+1];
1123 for (
size_t i=0; i < _size; i++)
1124 _dasharray[i]=dasharray_[i];
1125 _dasharray[_size]=0.0;
1131void Magick::DrawableDashArray::dasharray(
const size_t* dasharray_ )
1134 delete [] _dasharray;
1143 const size_t *p = dasharray_;
1150 _dasharray=
new double[_size+1];
1153 for (
size_t i=0; i < _size; i++)
1154 _dasharray[i]=dasharray_[i];
1155 _dasharray[_size]=0;
1161Magick::DrawableDashOffset::~DrawableDashOffset (
void )
1164void Magick::DrawableDashOffset::operator()
1165 ( MagickCore::DrawingWand * context_ )
const
1167 DrawSetStrokeDashOffset( context_, _offset );
1169Magick::DrawableBase* Magick::DrawableDashOffset::copy()
const
1175Magick::DrawableStrokeLineCap::~DrawableStrokeLineCap (
void )
1178void Magick::DrawableStrokeLineCap::operator()
1179 ( MagickCore::DrawingWand * context_ )
const
1181 DrawSetStrokeLineCap( context_, _linecap );
1183Magick::DrawableBase* Magick::DrawableStrokeLineCap::copy()
const
1189Magick::DrawableStrokeLineJoin::~DrawableStrokeLineJoin (
void )
1192void Magick::DrawableStrokeLineJoin::operator()
1193 ( MagickCore::DrawingWand * context_ )
const
1195 DrawSetStrokeLineJoin( context_, _linejoin );
1197Magick::DrawableBase* Magick::DrawableStrokeLineJoin::copy()
const
1203Magick::DrawableMiterLimit::~DrawableMiterLimit (
void )
1206void Magick::DrawableMiterLimit::operator()
1207 ( MagickCore::DrawingWand * context_ )
const
1209 DrawSetStrokeMiterLimit( context_, _miterlimit );
1211Magick::DrawableBase* Magick::DrawableMiterLimit::copy()
const
1217Magick::DrawableStrokeAntialias::~DrawableStrokeAntialias (
void )
1220void Magick::DrawableStrokeAntialias::operator()
1221( MagickCore::DrawingWand * context_ )
const
1223 DrawSetStrokeAntialias( context_,
static_cast<MagickBooleanType
>
1224 (_flag ? MagickTrue : MagickFalse) );
1226Magick::DrawableBase* Magick::DrawableStrokeAntialias::copy()
const
1232Magick::DrawableStrokeColor::DrawableStrokeColor
1233(
const Magick::Color &color_ )
1237Magick::DrawableStrokeColor::DrawableStrokeColor
1239 : DrawableBase (original_),
1240 _color(original_._color)
1243Magick::DrawableStrokeColor::~DrawableStrokeColor (
void )
1246void Magick::DrawableStrokeColor::operator()
1247 ( MagickCore::DrawingWand * context_ )
const
1249 PixelPacket color =
static_cast<PixelPacket
>(_color);
1250 PixelWand *pixel_wand=NewPixelWand();
1251 PixelSetQuantumColor(pixel_wand,&color);
1252 DrawSetStrokeColor(context_,pixel_wand);
1253 pixel_wand=DestroyPixelWand(pixel_wand);
1255Magick::DrawableBase* Magick::DrawableStrokeColor::copy()
const
1261Magick::DrawableStrokeOpacity::~DrawableStrokeOpacity (
void )
1264void Magick::DrawableStrokeOpacity::operator()
1265 ( MagickCore::DrawingWand * context_ )
const
1267 DrawSetStrokeOpacity( context_, _opacity );
1269Magick::DrawableBase* Magick::DrawableStrokeOpacity::copy()
const
1275Magick::DrawableStrokeWidth::~DrawableStrokeWidth (
void )
1278void Magick::DrawableStrokeWidth::operator()
1279 ( MagickCore::DrawingWand * context_ )
const
1281 DrawSetStrokeWidth( context_, _width );
1283Magick::DrawableBase* Magick::DrawableStrokeWidth::copy()
const
1289Magick::DrawableText::DrawableText (
const double x_,
const double y_,
1290 const std::string &text_ )
1297Magick::DrawableText::DrawableText (
const double x_,
const double y_,
1298 const std::string &text_,
const std::string &encoding_)
1302 _encoding(encoding_)
1306 : DrawableBase (original_),
1309 _text(original_._text),
1310 _encoding(original_._encoding)
1313Magick::DrawableText::~DrawableText (
void )
1316void Magick::DrawableText::operator()
1317 ( MagickCore::DrawingWand * context_ )
const
1319 DrawSetTextEncoding( context_, _encoding.c_str() );
1320 DrawAnnotation( context_, _x, _y,
1321 reinterpret_cast<const unsigned char*
>(_text.c_str()) );
1323Magick::DrawableBase* Magick::DrawableText::copy()
const
1329Magick::DrawableTextAntialias::DrawableTextAntialias (
bool flag_ )
1334 : DrawableBase (original_),
1335 _flag(original_._flag)
1338Magick::DrawableTextAntialias::~DrawableTextAntialias (
void )
1341void Magick::DrawableTextAntialias::operator()
1342 ( MagickCore::DrawingWand * context_ )
const
1344 DrawSetTextAntialias( context_,
static_cast<MagickBooleanType
>
1345 (_flag ? MagickTrue : MagickFalse) );
1347Magick::DrawableBase* Magick::DrawableTextAntialias::copy()
const
1353Magick::DrawableTextDecoration::DrawableTextDecoration
1354 ( Magick::DecorationType decoration_ )
1355 : _decoration(decoration_)
1358Magick::DrawableTextDecoration::DrawableTextDecoration
1360 : DrawableBase (original_),
1361 _decoration(original_._decoration)
1364Magick::DrawableTextDecoration::~DrawableTextDecoration(
void )
1367void Magick::DrawableTextDecoration::operator()
1368 ( MagickCore::DrawingWand * context_ )
const
1370 DrawSetTextDecoration( context_, _decoration );
1372Magick::DrawableBase* Magick::DrawableTextDecoration::copy()
const
1378Magick::DrawableTextDirection::DrawableTextDirection(
1379 DirectionType direction_)
1380 : _direction(direction_)
1384Magick::DrawableTextDirection::~DrawableTextDirection(
void)
1388void Magick::DrawableTextDirection::operator()(
1389 MagickCore::DrawingWand *context_)
const
1391 DrawSetTextDirection(context_,_direction);
1394void Magick::DrawableTextDirection::direction(DirectionType direction_)
1396 _direction=direction_;
1399Magick::DirectionType Magick::DrawableTextDirection::direction(
void)
const
1404Magick::DrawableBase *Magick::DrawableTextDirection::copy()
const
1410Magick::DrawableTextInterlineSpacing::DrawableTextInterlineSpacing(
1412 : _spacing(spacing_)
1416Magick::DrawableTextInterlineSpacing::~DrawableTextInterlineSpacing(
void)
1420void Magick::DrawableTextInterlineSpacing::operator()(
1421 MagickCore::DrawingWand *context_)
const
1423 DrawSetTextInterlineSpacing(context_,_spacing);
1426void Magick::DrawableTextInterlineSpacing::spacing(
double spacing_)
1431double Magick::DrawableTextInterlineSpacing::spacing(
void)
const
1436Magick::DrawableBase *Magick::DrawableTextInterlineSpacing::copy()
const
1442Magick::DrawableTextInterwordSpacing::DrawableTextInterwordSpacing(
1444 : _spacing(spacing_)
1448Magick::DrawableTextInterwordSpacing::~DrawableTextInterwordSpacing(
void)
1452void Magick::DrawableTextInterwordSpacing::operator()(
1453 MagickCore::DrawingWand *context_)
const
1455 DrawSetTextInterwordSpacing(context_,_spacing);
1458void Magick::DrawableTextInterwordSpacing::spacing(
double spacing_)
1463double Magick::DrawableTextInterwordSpacing::spacing(
void)
const
1468Magick::DrawableBase *Magick::DrawableTextInterwordSpacing::copy()
const
1474Magick::DrawableTextKerning::DrawableTextKerning(
1476 : _kerning(kerning_)
1480Magick::DrawableTextKerning::~DrawableTextKerning(
void)
1484void Magick::DrawableTextKerning::operator()(
1485 MagickCore::DrawingWand *context_)
const
1487 DrawSetTextKerning(context_,_kerning);
1490void Magick::DrawableTextKerning::kerning(
double kerning_)
1495double Magick::DrawableTextKerning::kerning(
void)
const
1500Magick::DrawableBase *Magick::DrawableTextKerning::copy()
const
1506Magick::DrawableTextUnderColor::DrawableTextUnderColor
1507(
const Magick::Color &color_ )
1511Magick::DrawableTextUnderColor::DrawableTextUnderColor
1513 : DrawableBase (original_),
1514 _color(original_._color)
1517Magick::DrawableTextUnderColor::~DrawableTextUnderColor (
void )
1520void Magick::DrawableTextUnderColor::operator()
1521 ( MagickCore::DrawingWand * context_ )
const
1523 PixelPacket color =
static_cast<PixelPacket
>(_color);
1524 PixelWand *pixel_wand=NewPixelWand();
1525 PixelSetQuantumColor(pixel_wand,&color);
1526 DrawSetTextUnderColor(context_,pixel_wand);
1527 pixel_wand=DestroyPixelWand(pixel_wand);
1529Magick::DrawableBase* Magick::DrawableTextUnderColor::copy()
const
1535Magick::DrawableTranslation::~DrawableTranslation (
void )
1538void Magick::DrawableTranslation::operator()
1539 ( MagickCore::DrawingWand * context_ )
const
1541 DrawTranslate( context_, _x, _y );
1543Magick::DrawableBase* Magick::DrawableTranslation::copy()
const
1549Magick::DrawableViewbox::~DrawableViewbox (
void )
1552void Magick::DrawableViewbox::operator()
1553 ( MagickCore::DrawingWand * context_ )
const
1555 DrawSetViewbox( context_, _x1, _y1, _x2, _y2 );
1557Magick::DrawableBase* Magick::DrawableViewbox::copy()
const
1569MagickPPExport
int Magick::operator == (
const Magick::PathArcArgs& ,
1570 const Magick::PathArcArgs& )
1574MagickPPExport
int Magick::operator != (
const Magick::PathArcArgs& ,
1575 const Magick::PathArcArgs& )
1579MagickPPExport
int Magick::operator > (
const Magick::PathArcArgs& ,
1580 const Magick::PathArcArgs& )
1584MagickPPExport
int Magick::operator < (
const Magick::PathArcArgs& ,
1585 const Magick::PathArcArgs& )
1589MagickPPExport
int Magick::operator >= (
const Magick::PathArcArgs& left_,
1590 const Magick::PathArcArgs& right_ )
1592 return ( ( left_ > right_ ) || ( left_ == right_ ) );
1594MagickPPExport
int Magick::operator <= (
const Magick::PathArcArgs& left_,
1595 const Magick::PathArcArgs& right_ )
1597 return ( ( left_ < right_ ) || ( left_ == right_ ) );
1600Magick::PathArcArgs::PathArcArgs(
void )
1604 _largeArcFlag(false),
1611Magick::PathArcArgs::PathArcArgs(
double radiusX_,
double radiusY_,
1612 double xAxisRotation_,
bool largeArcFlag_,
1613 bool sweepFlag_,
double x_,
double y_ )
1614 : _radiusX(radiusX_),
1616 _xAxisRotation(xAxisRotation_),
1617 _largeArcFlag(largeArcFlag_),
1618 _sweepFlag(sweepFlag_),
1625 : _radiusX(original_._radiusX),
1626 _radiusY(original_._radiusY),
1627 _xAxisRotation(original_._xAxisRotation),
1628 _largeArcFlag(original_._largeArcFlag),
1629 _sweepFlag(original_._sweepFlag),
1635Magick::PathArcArgs::~PathArcArgs (
void )
1640Magick::PathArcAbs::PathArcAbs (
const Magick::PathArcArgs &coordinates_ )
1641 : _coordinates(1,coordinates_)
1644Magick::PathArcAbs::PathArcAbs (
const PathArcArgsList &coordinates_ )
1645 : _coordinates(coordinates_)
1649 : VPathBase (original_),
1650 _coordinates(original_._coordinates)
1653Magick::PathArcAbs::~PathArcAbs (
void )
1656void Magick::PathArcAbs::operator()( MagickCore::DrawingWand * context_ )
const
1658 for( PathArcArgsList::const_iterator p = _coordinates.begin();
1659 p != _coordinates.end(); p++ )
1661 DrawPathEllipticArcAbsolute( context_, p->radiusX(), p->radiusY(),
1662 p->xAxisRotation(), (MagickBooleanType) p->largeArcFlag(),
1663 (MagickBooleanType) p->sweepFlag(), p->x(), p->y() );
1666Magick::VPathBase* Magick::PathArcAbs::copy()
const
1671Magick::PathArcRel::PathArcRel (
const Magick::PathArcArgs &coordinates_ )
1672 : _coordinates(1,coordinates_)
1675Magick::PathArcRel::PathArcRel (
const PathArcArgsList &coordinates_ )
1676 : _coordinates(coordinates_)
1680 : VPathBase (original_),
1681 _coordinates(original_._coordinates)
1684Magick::PathArcRel::~PathArcRel (
void )
1687void Magick::PathArcRel::operator()( MagickCore::DrawingWand * context_ )
const
1689 for( PathArcArgsList::const_iterator p = _coordinates.begin();
1690 p != _coordinates.end(); p++ )
1692 DrawPathEllipticArcRelative( context_, p->radiusX(), p->radiusY(),
1693 p->xAxisRotation(), (MagickBooleanType) p->largeArcFlag(),
1694 (MagickBooleanType) p->sweepFlag(), p->x(), p->y() );
1697Magick::VPathBase* Magick::PathArcRel::copy()
const
1705Magick::PathClosePath::~PathClosePath (
void )
1708void Magick::PathClosePath::operator()( MagickCore::DrawingWand * context_ )
const
1710 DrawPathClose( context_ );
1712Magick::VPathBase* Magick::PathClosePath::copy()
const
1720MagickPPExport
int Magick::operator == (
const Magick::PathCurvetoArgs& ,
1721 const Magick::PathCurvetoArgs& )
1725MagickPPExport
int Magick::operator != (
const Magick::PathCurvetoArgs& ,
1726 const Magick::PathCurvetoArgs& )
1730MagickPPExport
int Magick::operator > (
const Magick::PathCurvetoArgs& ,
1731 const Magick::PathCurvetoArgs& )
1735MagickPPExport
int Magick::operator < (
const Magick::PathCurvetoArgs& ,
1736 const Magick::PathCurvetoArgs& )
1740MagickPPExport
int Magick::operator >= (
const Magick::PathCurvetoArgs& left_,
1741 const Magick::PathCurvetoArgs& right_ )
1743 return ( ( left_ > right_ ) || ( left_ == right_ ) );
1745MagickPPExport
int Magick::operator <= (
const Magick::PathCurvetoArgs& left_,
1746 const Magick::PathCurvetoArgs& right_ )
1748 return ( ( left_ < right_ ) || ( left_ == right_ ) );
1751Magick::PathCurvetoArgs::PathCurvetoArgs(
void )
1761Magick::PathCurvetoArgs::PathCurvetoArgs(
double x1_,
double y1_,
1762 double x2_,
double y2_,
1763 double x_,
double y_ )
1773Magick::PathCurvetoArgs::PathCurvetoArgs(
const PathCurvetoArgs &original_ )
1774 : _x1(original_._x1),
1783Magick::PathCurvetoArgs::~PathCurvetoArgs (
void )
1787Magick::PathCurvetoAbs::PathCurvetoAbs (
const Magick::PathCurvetoArgs &args_ )
1791Magick::PathCurvetoAbs::PathCurvetoAbs (
const PathCurveToArgsList &args_ )
1795Magick::PathCurvetoAbs::PathCurvetoAbs
1797 : VPathBase (original_),
1798 _args(original_._args)
1801Magick::PathCurvetoAbs::~PathCurvetoAbs (
void )
1804void Magick::PathCurvetoAbs::operator()
1805 ( MagickCore::DrawingWand * context_ )
const
1807 for( PathCurveToArgsList::const_iterator p = _args.begin();
1808 p != _args.end(); p++ )
1810 DrawPathCurveToAbsolute( context_, p->x1(), p->y1(), p->x2(), p->y2(),
1814Magick::VPathBase* Magick::PathCurvetoAbs::copy()
const
1818Magick::PathCurvetoRel::PathCurvetoRel (
const Magick::PathCurvetoArgs &args_ )
1822Magick::PathCurvetoRel::PathCurvetoRel (
const PathCurveToArgsList &args_ )
1826Magick::PathCurvetoRel::PathCurvetoRel
1828 : VPathBase (original_),
1829 _args(original_._args)
1832Magick::PathCurvetoRel::~PathCurvetoRel (
void )
1835void Magick::PathCurvetoRel::operator()
1836 ( MagickCore::DrawingWand * context_ )
const
1838 for( PathCurveToArgsList::const_iterator p = _args.begin();
1839 p != _args.end(); p++ )
1841 DrawPathCurveToRelative( context_, p->x1(), p->y1(), p->x2(), p->y2(),
1845Magick::VPathBase* Magick::PathCurvetoRel::copy()
const
1849Magick::PathSmoothCurvetoAbs::PathSmoothCurvetoAbs
1850(
const Magick::Coordinate &coordinates_ )
1851 : _coordinates(1,coordinates_)
1854Magick::PathSmoothCurvetoAbs::PathSmoothCurvetoAbs
1855(
const CoordinateList &coordinates_ )
1856 : _coordinates(coordinates_)
1859Magick::PathSmoothCurvetoAbs::PathSmoothCurvetoAbs
1861 : VPathBase (original_),
1862 _coordinates(original_._coordinates)
1865Magick::PathSmoothCurvetoAbs::~PathSmoothCurvetoAbs (
void )
1868void Magick::PathSmoothCurvetoAbs::operator()
1869 ( MagickCore::DrawingWand * context_ )
const
1871 for( CoordinateList::const_iterator p = _coordinates.begin();
1872 p != _coordinates.end(); p++ )
1877 if (p == _coordinates.end() )
1879 DrawPathCurveToSmoothAbsolute( context_, x2, y2, p->x(), p->y() );
1882Magick::VPathBase* Magick::PathSmoothCurvetoAbs::copy()
const
1886Magick::PathSmoothCurvetoRel::PathSmoothCurvetoRel
1887(
const Magick::Coordinate &coordinates_ )
1888 : _coordinates(1,coordinates_)
1891Magick::PathSmoothCurvetoRel::PathSmoothCurvetoRel
1892(
const CoordinateList &coordinates_ )
1893 : _coordinates(coordinates_)
1896Magick::PathSmoothCurvetoRel::PathSmoothCurvetoRel
1898 : VPathBase (original_),
1899 _coordinates(original_._coordinates)
1902Magick::PathSmoothCurvetoRel::~PathSmoothCurvetoRel (
void )
1905void Magick::PathSmoothCurvetoRel::operator()
1906 ( MagickCore::DrawingWand * context_ )
const
1908 for( CoordinateList::const_iterator p = _coordinates.begin();
1909 p != _coordinates.end(); p++ )
1914 if (p == _coordinates.end() )
1916 DrawPathCurveToSmoothRelative( context_, x2, y2, p->x(), p->y() );
1919Magick::VPathBase* Magick::PathSmoothCurvetoRel::copy()
const
1927MagickPPExport
int Magick::operator ==
1928(
const Magick::PathQuadraticCurvetoArgs& ,
1929 const Magick::PathQuadraticCurvetoArgs& )
1933MagickPPExport
int Magick::operator !=
1934(
const Magick::PathQuadraticCurvetoArgs& ,
1935 const Magick::PathQuadraticCurvetoArgs& )
1939MagickPPExport
int Magick::operator >
1940(
const Magick::PathQuadraticCurvetoArgs& ,
1941 const Magick::PathQuadraticCurvetoArgs& )
1945MagickPPExport
int Magick::operator <
1946(
const Magick::PathQuadraticCurvetoArgs& ,
1947 const Magick::PathQuadraticCurvetoArgs& )
1951MagickPPExport
int Magick::operator >=
1952(
const Magick::PathQuadraticCurvetoArgs& left_,
1953 const Magick::PathQuadraticCurvetoArgs& right_ )
1955 return ( ( left_ > right_ ) || ( left_ == right_ ) );
1957MagickPPExport
int Magick::operator <=
1958(
const Magick::PathQuadraticCurvetoArgs& left_,
1959 const Magick::PathQuadraticCurvetoArgs& right_ )
1961 return ( ( left_ < right_ ) || ( left_ == right_ ) );
1964Magick::PathQuadraticCurvetoArgs::PathQuadraticCurvetoArgs(
void )
1972Magick::PathQuadraticCurvetoArgs::PathQuadraticCurvetoArgs(
double x1_,
1983Magick::PathQuadraticCurvetoArgs::PathQuadraticCurvetoArgs(
const PathQuadraticCurvetoArgs &original_ )
1984 : _x1(original_._x1),
1991Magick::PathQuadraticCurvetoArgs::~PathQuadraticCurvetoArgs (
void )
1995Magick::PathQuadraticCurvetoAbs::PathQuadraticCurvetoAbs
1996(
const Magick::PathQuadraticCurvetoArgs &args_ )
2000Magick::PathQuadraticCurvetoAbs::PathQuadraticCurvetoAbs
2001(
const PathQuadraticCurvetoArgsList &args_ )
2005Magick::PathQuadraticCurvetoAbs::PathQuadraticCurvetoAbs
2007 : VPathBase (original_),
2008 _args(original_._args)
2011Magick::PathQuadraticCurvetoAbs::~PathQuadraticCurvetoAbs (
void )
2014void Magick::PathQuadraticCurvetoAbs::operator()
2015 ( MagickCore::DrawingWand * context_ )
const
2017 for( PathQuadraticCurvetoArgsList::const_iterator p = _args.begin();
2018 p != _args.end(); p++ )
2020 DrawPathCurveToQuadraticBezierAbsolute( context_, p->x1(), p->y1(),
2024Magick::VPathBase* Magick::PathQuadraticCurvetoAbs::copy()
const
2028Magick::PathQuadraticCurvetoRel::PathQuadraticCurvetoRel
2029(
const Magick::PathQuadraticCurvetoArgs &args_ )
2033Magick::PathQuadraticCurvetoRel::PathQuadraticCurvetoRel
2034(
const PathQuadraticCurvetoArgsList &args_ )
2038Magick::PathQuadraticCurvetoRel::PathQuadraticCurvetoRel
2040 : VPathBase (original_),
2041 _args(original_._args)
2044Magick::PathQuadraticCurvetoRel::~PathQuadraticCurvetoRel (
void )
2047void Magick::PathQuadraticCurvetoRel::operator()
2048 ( MagickCore::DrawingWand * context_ )
const
2050 for( PathQuadraticCurvetoArgsList::const_iterator p = _args.begin();
2051 p != _args.end(); p++ )
2053 DrawPathCurveToQuadraticBezierRelative( context_, p->x1(), p->y1(),
2057Magick::VPathBase* Magick::PathQuadraticCurvetoRel::copy()
const
2061Magick::PathSmoothQuadraticCurvetoAbs::PathSmoothQuadraticCurvetoAbs
2062(
const Magick::Coordinate &coordinate_ )
2063 : _coordinates(1,coordinate_)
2066Magick::PathSmoothQuadraticCurvetoAbs::PathSmoothQuadraticCurvetoAbs
2067(
const CoordinateList &coordinates_ )
2068 : _coordinates(coordinates_)
2071Magick::PathSmoothQuadraticCurvetoAbs::PathSmoothQuadraticCurvetoAbs
2073 : VPathBase (original_),
2074 _coordinates(original_._coordinates)
2077Magick::PathSmoothQuadraticCurvetoAbs::~PathSmoothQuadraticCurvetoAbs (
void )
2080void Magick::PathSmoothQuadraticCurvetoAbs::operator()
2081 ( MagickCore::DrawingWand * context_ )
const
2083 for( CoordinateList::const_iterator p = _coordinates.begin();
2084 p != _coordinates.end(); p++ )
2086 DrawPathCurveToQuadraticBezierSmoothAbsolute( context_, p->x(), p->y() );
2089Magick::VPathBase* Magick::PathSmoothQuadraticCurvetoAbs::copy()
const
2093Magick::PathSmoothQuadraticCurvetoRel::PathSmoothQuadraticCurvetoRel
2094(
const Magick::Coordinate &coordinate_ )
2095 : _coordinates(1,coordinate_)
2098Magick::PathSmoothQuadraticCurvetoRel::PathSmoothQuadraticCurvetoRel
2099(
const CoordinateList &coordinates_ )
2100 : _coordinates(coordinates_)
2103Magick::PathSmoothQuadraticCurvetoRel::PathSmoothQuadraticCurvetoRel
2104(
const PathSmoothQuadraticCurvetoRel& original_ )
2105 : VPathBase (original_),
2106 _coordinates(original_._coordinates)
2109Magick::PathSmoothQuadraticCurvetoRel::~PathSmoothQuadraticCurvetoRel (
void )
2112void Magick::PathSmoothQuadraticCurvetoRel::operator()
2113 ( MagickCore::DrawingWand * context_ )
const
2115 for( CoordinateList::const_iterator p = _coordinates.begin();
2116 p != _coordinates.end(); p++ )
2118 DrawPathCurveToQuadraticBezierSmoothRelative( context_, p->x(), p->y() );
2121Magick::VPathBase* Magick::PathSmoothQuadraticCurvetoRel::copy()
const
2129Magick::PathLinetoAbs::PathLinetoAbs (
const Magick::Coordinate& coordinate_ )
2130 : _coordinates(1,coordinate_)
2133Magick::PathLinetoAbs::PathLinetoAbs (
const CoordinateList &coordinates_ )
2134 : _coordinates(coordinates_)
2138 : VPathBase (original_),
2139 _coordinates(original_._coordinates)
2142Magick::PathLinetoAbs::~PathLinetoAbs (
void )
2145void Magick::PathLinetoAbs::operator()( MagickCore::DrawingWand * context_ )
const
2147 for( CoordinateList::const_iterator p = _coordinates.begin();
2148 p != _coordinates.end(); p++ )
2150 DrawPathLineToAbsolute( context_, p->x(), p->y() );
2153Magick::VPathBase* Magick::PathLinetoAbs::copy()
const
2157Magick::PathLinetoRel::PathLinetoRel (
const Magick::Coordinate& coordinate_ )
2158 : _coordinates(1,coordinate_)
2161Magick::PathLinetoRel::PathLinetoRel (
const CoordinateList &coordinates_ )
2162 : _coordinates(coordinates_)
2166 : VPathBase (original_),
2167 _coordinates(original_._coordinates)
2170Magick::PathLinetoRel::~PathLinetoRel (
void )
2173void Magick::PathLinetoRel::operator()( MagickCore::DrawingWand * context_ )
const
2175 for( CoordinateList::const_iterator p = _coordinates.begin();
2176 p != _coordinates.end(); p++ )
2178 DrawPathLineToRelative( context_, p->x(), p->y() );
2181Magick::VPathBase* Magick::PathLinetoRel::copy()
const
2190Magick::PathLinetoHorizontalAbs::~PathLinetoHorizontalAbs (
void )
2193void Magick::PathLinetoHorizontalAbs::operator()
2194 ( MagickCore::DrawingWand * context_ )
const
2196 DrawPathLineToHorizontalAbsolute( context_, _x );
2198Magick::VPathBase* Magick::PathLinetoHorizontalAbs::copy()
const
2202Magick::PathLinetoHorizontalRel::~PathLinetoHorizontalRel (
void )
2205void Magick::PathLinetoHorizontalRel::operator()
2206 ( MagickCore::DrawingWand * context_ )
const
2208 DrawPathLineToHorizontalRelative( context_, _x );
2210Magick::VPathBase* Magick::PathLinetoHorizontalRel::copy()
const
2218Magick::PathLinetoVerticalAbs::~PathLinetoVerticalAbs (
void )
2221void Magick::PathLinetoVerticalAbs::operator()
2222 ( MagickCore::DrawingWand * context_ )
const
2224 DrawPathLineToVerticalAbsolute( context_, _y );
2226Magick::VPathBase* Magick::PathLinetoVerticalAbs::copy()
const
2230Magick::PathLinetoVerticalRel::~PathLinetoVerticalRel (
void )
2233void Magick::PathLinetoVerticalRel::operator()
2234 ( MagickCore::DrawingWand * context_ )
const
2236 DrawPathLineToVerticalRelative( context_, _y );
2238Magick::VPathBase* Magick::PathLinetoVerticalRel::copy()
const
2247Magick::PathMovetoAbs::PathMovetoAbs (
const Magick::Coordinate &coordinate_ )
2248 : _coordinates(1,coordinate_)
2251Magick::PathMovetoAbs::PathMovetoAbs (
const CoordinateList &coordinates_ )
2252 : _coordinates(coordinates_)
2256 : VPathBase (original_),
2257 _coordinates(original_._coordinates)
2260Magick::PathMovetoAbs::~PathMovetoAbs (
void )
2263void Magick::PathMovetoAbs::operator()( MagickCore::DrawingWand * context_ )
const
2265 for( CoordinateList::const_iterator p = _coordinates.begin();
2266 p != _coordinates.end(); p++ )
2268 DrawPathMoveToAbsolute( context_, p->x(), p->y() );
2271Magick::VPathBase* Magick::PathMovetoAbs::copy()
const
2275Magick::PathMovetoRel::PathMovetoRel (
const Magick::Coordinate &coordinate_ )
2276 : _coordinates(1,coordinate_)
2279Magick::PathMovetoRel::PathMovetoRel (
const CoordinateList &coordinates_ )
2280 : _coordinates(coordinates_)
2284 : VPathBase (original_),
2285 _coordinates(original_._coordinates)
2288Magick::PathMovetoRel::~PathMovetoRel (
void )
2291void Magick::PathMovetoRel::operator()( MagickCore::DrawingWand * context_ )
const
2293 for( CoordinateList::const_iterator p = _coordinates.begin();
2294 p != _coordinates.end(); p++ )
2296 DrawPathMoveToRelative( context_, p->x(), p->y() );
2299Magick::VPathBase* Magick::PathMovetoRel::copy()
const
2304#if defined(EXPLICIT_TEMPLATE_INSTANTIATION)