Magick++ 7.1.1
Loading...
Searching...
No Matches
Magick::DrawableRectangle Class Reference
Inheritance diagram for Magick::DrawableRectangle:
Collaboration diagram for Magick::DrawableRectangle:

Public Member Functions

 DrawableRectangle (double upperLeftX_, double upperLeftY_, double lowerRightX_, double lowerRightY_)
 
void operator() (MagickCore::DrawingWand *context_) const
 
DrawableBasecopy () const
 
void upperLeftX (double upperLeftX_)
 
double upperLeftX (void) const
 
void upperLeftY (double upperLeftY_)
 
double upperLeftY (void) const
 
void lowerRightX (double lowerRightX_)
 
double lowerRightX (void) const
 
void lowerRightY (double lowerRightY_)
 
double lowerRightY (void) const
 
virtual void operator() (MagickCore::DrawingWand *) const
 
virtual DrawableBasecopy () const
 

Private Attributes

double _upperLeftX
 
double _upperLeftY
 
double _lowerRightX
 
double _lowerRightY
 

Detailed Description

Definition at line 1401 of file Drawable.h.

Constructor & Destructor Documentation

◆ DrawableRectangle()

Magick::DrawableRectangle::DrawableRectangle ( double  upperLeftX_,
double  upperLeftY_,
double  lowerRightX_,
double  lowerRightY_ 
)
inline

Definition at line 1404 of file Drawable.h.

1406 : _upperLeftX(upperLeftX_),
1407 _upperLeftY(upperLeftY_),
1408 _lowerRightX(lowerRightX_),
1409 _lowerRightY(lowerRightY_)
1410 { }

◆ ~DrawableRectangle()

Magick::DrawableRectangle::~DrawableRectangle ( void  )

Definition at line 1076 of file Drawable.cpp.

1077{
1078}

Member Function Documentation

◆ copy()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1085 of file Drawable.cpp.

1086{
1087 return new DrawableRectangle(*this);
1088}

◆ lowerRightX() [1/2]

void Magick::DrawableRectangle::lowerRightX ( double  lowerRightX_)
inline

Definition at line 1438 of file Drawable.h.

1439 {
1440 _lowerRightX = lowerRightX_;
1441 }

◆ lowerRightX() [2/2]

double Magick::DrawableRectangle::lowerRightX ( void  ) const
inline

Definition at line 1442 of file Drawable.h.

1443 {
1444 return _lowerRightX;
1445 }

◆ lowerRightY() [1/2]

void Magick::DrawableRectangle::lowerRightY ( double  lowerRightY_)
inline

Definition at line 1447 of file Drawable.h.

1448 {
1449 _lowerRightY = lowerRightY_;
1450 }

◆ lowerRightY() [2/2]

double Magick::DrawableRectangle::lowerRightY ( void  ) const
inline

Definition at line 1451 of file Drawable.h.

1452 {
1453 return _lowerRightY;
1454 }

◆ operator()()

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

Reimplemented from Magick::DrawableBase.

Definition at line 1079 of file Drawable.cpp.

1081{
1082 DrawRectangle( context_, _upperLeftX, _upperLeftY,
1083 _lowerRightX, _lowerRightY );
1084}

◆ upperLeftX() [1/2]

void Magick::DrawableRectangle::upperLeftX ( double  upperLeftX_)
inline

Definition at line 1420 of file Drawable.h.

1421 {
1422 _upperLeftX = upperLeftX_;
1423 }

◆ upperLeftX() [2/2]

double Magick::DrawableRectangle::upperLeftX ( void  ) const
inline

Definition at line 1424 of file Drawable.h.

1425 {
1426 return _upperLeftX;
1427 }

◆ upperLeftY() [1/2]

void Magick::DrawableRectangle::upperLeftY ( double  upperLeftY_)
inline

Definition at line 1429 of file Drawable.h.

1430 {
1431 _upperLeftY = upperLeftY_;
1432 }

◆ upperLeftY() [2/2]

double Magick::DrawableRectangle::upperLeftY ( void  ) const
inline

Definition at line 1433 of file Drawable.h.

1434 {
1435 return _upperLeftY;
1436 }

Member Data Documentation

◆ _lowerRightX

double Magick::DrawableRectangle::_lowerRightX
private

Definition at line 1459 of file Drawable.h.

◆ _lowerRightY

double Magick::DrawableRectangle::_lowerRightY
private

Definition at line 1460 of file Drawable.h.

◆ _upperLeftX

double Magick::DrawableRectangle::_upperLeftX
private

Definition at line 1457 of file Drawable.h.

◆ _upperLeftY

double Magick::DrawableRectangle::_upperLeftY
private

Definition at line 1458 of file Drawable.h.


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