Magick++ 7.1.2-32
Convert, Edit, Or Compose Bitmap Images
Loading...
Searching...
No Matches
Magick::DrawablePolygon Class Reference
Inheritance diagram for Magick::DrawablePolygon:
Magick::DrawableBase

Public Member Functions

 DrawablePolygon (const CoordinateList &coordinates_)
 DrawablePolygon (const DrawablePolygon &original_)
void operator() (MagickCore::DrawingWand *context_) const
DrawableBase * copy () const

Private Attributes

CoordinateList _coordinates

Detailed Description

Definition at line 1273 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawablePolygon() [1/2]

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

Definition at line 918 of file Drawable.cpp.

919 : _coordinates(coordinates_)
920{
921}

◆ DrawablePolygon() [2/2]

Magick::DrawablePolygon::DrawablePolygon ( const DrawablePolygon & original_)

Definition at line 922 of file Drawable.cpp.

924 : DrawableBase (original_),
925 _coordinates(original_._coordinates)
926{
927}

◆ ~DrawablePolygon()

Magick::DrawablePolygon::~DrawablePolygon ( void )

Definition at line 928 of file Drawable.cpp.

929{
930}

Member Function Documentation

◆ copy()

Magick::DrawableBase * Magick::DrawablePolygon::copy ( ) const
virtual

Reimplemented from Magick::DrawableBase.

Definition at line 951 of file Drawable.cpp.

952{
953 return new DrawablePolygon(*this);
954}

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 931 of file Drawable.cpp.

933{
934 size_t num_coords = (size_t) _coordinates.size();
935 PointInfo *coordinates = new PointInfo[num_coords];
936
937 PointInfo *q = coordinates;
938 CoordinateList::const_iterator p = _coordinates.begin();
939
940 while( p != _coordinates.end() )
941 {
942 q->x = p->x();
943 q->y = p->y();
944 q++;
945 p++;
946 }
947
948 DrawPolygon( context_, num_coords, coordinates );
949 delete [] coordinates;
950}

Field Documentation

◆ _coordinates

CoordinateList Magick::DrawablePolygon::_coordinates
private

Definition at line 1289 of file Drawable.h.


The documentation for this class was generated from the following files:
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Magick++/Drawable.h
  • /home/cristy/Attic/Build/ImageMagick-7.1.2/rpmbuild/BUILD/ImageMagick-7.1.2-build/ImageMagick-7.1.2-32/Magick++/lib/Drawable.cpp