Definition at line 208 of file Geometry.h.
◆ Point() [1/6]
Magick::Point::Point |
( |
void |
| ) |
|
Definition at line 589 of file Geometry.cpp.
590 : _x(0.0),
591 _y(0.0)
592{
593}
◆ Point() [2/6]
Magick::Point::Point |
( |
const char * |
point_ | ) |
|
Definition at line 595 of file Geometry.cpp.
596 : _x(0.0),
597 _y(0.0)
598{
599 *this=point_;
600}
◆ Point() [3/6]
Magick::Point::Point |
( |
const Point & |
point_ | ) |
|
Definition at line 602 of file Geometry.cpp.
603 : _x(point_._x),
604 _y(point_._y)
605{
606}
◆ Point() [4/6]
Magick::Point::Point |
( |
const std::string & |
point_ | ) |
|
Definition at line 608 of file Geometry.cpp.
609 : _x(0.0),
610 _y(0.0)
611{
612 *this=point_;
613}
◆ Point() [5/6]
Magick::Point::Point |
( |
double |
x_, |
|
|
double |
y_ |
|
) |
| |
Definition at line 615 of file Geometry.cpp.
616 : _x(x_),
617 _y(y_)
618{
619}
◆ Point() [6/6]
Magick::Point::Point |
( |
double |
xy_ | ) |
|
Definition at line 621 of file Geometry.cpp.
622 : _x(xy_),
623 _y(xy_)
624{
625}
◆ ~Point()
Magick::Point::~Point |
( |
void |
| ) |
|
◆ isValid()
bool Magick::Point::isValid |
( |
void |
| ) |
const |
Definition at line 698 of file Geometry.cpp.
699{
700 return(_x > 0.0);
701}
◆ operator std::string()
Magick::Point::operator std::string |
( |
| ) |
const |
Definition at line 671 of file Geometry.cpp.
672{
673 char
674 buffer[MagickPathExtent];
675
676 string
677 point;
678
679 if (_x < 0.0)
680 point+="-";
681 else
682 point+="+";
683
684 FormatLocaleString(buffer,MagickPathExtent,"%.20g",_x);
685 point+=buffer;
686
687 if (_y < 0.0)
688 point+="x-";
689 else
690 point+="x+";
691
692 FormatLocaleString(buffer,MagickPathExtent,"%.20g",(double) _y);
693 point+=buffer;
694
695 return(point);
696}
◆ operator=() [1/4]
const Magick::Point & Magick::Point::operator= |
( |
const char * |
point_ | ) |
|
Definition at line 631 of file Geometry.cpp.
632{
633 MagickCore::GeometryInfo
634 geometry_info;
635
636 MagickCore::MagickStatusType
637 flags;
638
639 flags=ParseGeometry(point_,&geometry_info);
640 _x=geometry_info.rho;
641 _y=geometry_info.sigma;
642 if ((flags & MagickCore::SigmaValue) == 0)
643 _y=_x;
644 return(*this);
645}
◆ operator=() [2/4]
Definition at line 654 of file Geometry.cpp.
655{
656
657 if (this != &point_)
658 {
659 _x=point_._x;
660 _y=point_._y;
661 }
662 return(*this);
663}
◆ operator=() [3/4]
const Magick::Point & Magick::Point::operator= |
( |
const std::string & |
point_ | ) |
|
Definition at line 665 of file Geometry.cpp.
666{
667 *this=point_.c_str();
668 return(*this);
669}
◆ operator=() [4/4]
Definition at line 647 of file Geometry.cpp.
648{
649 _x=xy_;
650 _y=xy_;
651 return(*this);
652}
◆ x()
double Magick::Point::x |
( |
void |
| ) |
const |
◆ y()
double Magick::Point::y |
( |
void |
| ) |
const |
◆ _x
◆ _y
The documentation for this class was generated from the following files: