Powered by Pair ImageMagick logo
Image Magick
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

Magick::DrawableBezier Class Reference

#include <Drawable.h>

Inheritance diagram for Magick::DrawableBezier:

Inheritance graph
[legend]
Collaboration diagram for Magick::DrawableBezier:

Collaboration graph
[legend]

Public Member Functions

 DrawableBezier (const CoordinateList &coordinates_)
 DrawableBezier (const DrawableBezier &original_)
 ~DrawableBezier (void)
void operator() (MagickLib::DrawContext context_) const
DrawableBasecopy () const
 DrawableBezier (const CoordinateList &coordinates_)
 DrawableBezier (const DrawableBezier &original_)
 ~DrawableBezier (void)
void operator() (MagickLib::DrawContext context_) const
DrawableBasecopy () const

Private Attributes

CoordinateList _coordinates

Constructor & Destructor Documentation

Magick::DrawableBezier::DrawableBezier const CoordinateList coordinates_  ) 
 

Definition at line 262 of file Drawable.cpp.

References DrawableBezier().

Referenced by DrawableBezier().

00263 : _coordinates(coordinates_) 00264 { 00265 }

Here is the call graph for this function:

Magick::DrawableBezier::DrawableBezier const DrawableBezier original_  ) 
 

Definition at line 267 of file Drawable.cpp.

References DrawableBezier().

00268 : DrawableBase (original_), 00269 _coordinates(original_._coordinates) 00270 { 00271 }

Here is the call graph for this function:

Magick::DrawableBezier::~DrawableBezier void   ) 
 

Definition at line 273 of file Drawable.cpp.

00274 { 00275 }

Magick::DrawableBezier::DrawableBezier const CoordinateList coordinates_  ) 
 

Magick::DrawableBezier::DrawableBezier const DrawableBezier original_  ) 
 

Magick::DrawableBezier::~DrawableBezier void   ) 
 


Member Function Documentation

DrawableBase* Magick::DrawableBezier::copy  )  const [virtual]
 

Implements Magick::DrawableBase.

Magick::DrawableBase * Magick::DrawableBezier::copy  )  const [virtual]
 

Implements Magick::DrawableBase.

Definition at line 295 of file Drawable.cpp.

00296 { 00297 return new DrawableBezier(*this); 00298 }

void Magick::DrawableBezier::operator() MagickLib::DrawContext  context_  )  const [virtual]
 

Implements Magick::DrawableBase.

void Magick::DrawableBezier::operator() MagickLib::DrawContext  context_  )  const [virtual]
 

Implements Magick::DrawableBase.

Definition at line 276 of file Drawable.cpp.

References _coordinates, DrawBezier(), operator()(), PointInfo, _PointInfo::x, and _PointInfo::y.

Referenced by operator()().

00277 { 00278 size_t num_coords = _coordinates.size(); 00279 PointInfo *coordinates = new PointInfo[num_coords]; 00280 00281 PointInfo *q = coordinates; 00282 CoordinateList::const_iterator p = _coordinates.begin(); 00283 00284 while( p != _coordinates.end() ) 00285 { 00286 q->x = p->x(); 00287 q->y = p->y(); 00288 q++; 00289 p++; 00290 } 00291 00292 DrawBezier( context_, num_coords, coordinates ); 00293 delete [] coordinates; 00294 }

Here is the call graph for this function:


Field Documentation

CoordinateList Magick::DrawableBezier::_coordinates [private]
 

Definition at line 451 of file Drawable.h.

Referenced by operator()().


The documentation for this class was generated from the following files:
Generated on Mon Oct 25 13:47:34 2004 for ImageMagick by doxygen 1.3.7
ImageMagick Copyright © 2004, ImageMagick Studio LLC