#include <Rectangle.h>
Collaboration diagram for HippoRectangle:
Definition at line 29 of file Rectangle.h.
Public Member Functions | |
double | getDepth () const |
A shortcut to get size.depth. | |
double | getHeight () const |
A shortcut to get size.height. | |
double | getWidth () const |
A shortcut to get size.width. | |
double | getX () const |
A shortcut to get origin.X. | |
double | getY () const |
A shortcut to get origin.Y. | |
double | getZ () const |
A shortcut to get origin.Z. | |
HippoRectangle (double x, double y, double z, double width, double height, double depth) | |
constructor for 3D Rectangle. | |
HippoRectangle (double x, double y, double width, double height) | |
Constructor for 2D Rectangle. | |
HippoRectangle () | |
Default constructor. | |
bool | isInBounds (double x1, double y1, double z1) const |
Checks the coordinates to see if they are inside or on the boundary of the HippoRectangle. | |
bool | isInBounds (double x1, double y1) const |
Checks the coordinates to see if they are inside or on the boundary of the HippoRectangle. | |
bool | isInDepth (double z1) const |
Checks the value against the depth to see if it is in bounds. | |
void | makeInBounds (std::vector< double > &x, std::vector< double > &y, std::vector< double > &z) const |
Changes the coordinates so that they are inside or on the boundary of the HippoRectangle. | |
void | makeInBounds (std::vector< double > &x, std::vector< double > &y) const |
Changes the coordinates so that they are inside or on the boundary of the HippoRectangle. | |
void | makeInBounds (double &x, double &y, double &z) const |
Changes the coordinates so that they are inside or on the boundary of the HippoRectangle. | |
void | makeInBounds (double &x, double &y) const |
Changes the coordinates so that they are inside or on the boundary of the HippoRectangle. | |
void | moveBy (double x, double y) |
Moves the Rectange by specified amount. | |
void | setDepth (double) |
Sets the depth of the HippoRectangle. | |
void | setRect (double x, double y, double z, double width, double height, double depth) |
Set the parameters of 3D Rectangle. | |
void | setRect (double x, double y, double width, double height) |
Set the parameters of 2D Rectangle. | |
void | setZ (double) |
Sets the Z dimension. | |
Private Member Functions | |
const Point & | getOrigin () const |
Returns the origin. | |
const Size & | getSize () const |
Returns the size. | |
Private Attributes | |
Point | m_origin |
The origin of the Rectangle. | |
Size | m_size |
The size of the Rectangle. | |
Friends | |
std::ostream & | operator<< (std::ostream &, const HippoRectangle &) |
|
Default constructor.
Definition at line 49 of file Rectangle.cxx. |
|
Constructor for 2D Rectangle.
Definition at line 55 of file Rectangle.cxx. References setRect(). |
|
constructor for 3D Rectangle.
Definition at line 61 of file Rectangle.cxx. References setRect(). |
|
A shortcut to get size.depth.
Definition at line 116 of file Rectangle.cxx. References Size::getDepth(), and getSize(). Referenced by XyPlotter::calcAxisRatios(), isInBounds(), makeInBounds(), and operator<<(). |
|
|
Returns the origin.
Definition at line 86 of file Rectangle.cxx. References m_origin. Referenced by getZ(). |
|
Returns the size.
Definition at line 91 of file Rectangle.cxx. References m_size. Referenced by getDepth(). |
|
|
|
|
A shortcut to get origin.Z.
Definition at line 96 of file Rectangle.cxx. References getOrigin(), and Point::getZ(). Referenced by ColorBoxPointRep::drawProjectedValues(), isInBounds(), makeInBounds(), operator<<(), and XyPlotter::userToMarginColor(). |
|
Checks the coordinates to see if they are inside or on the boundary of the HippoRectangle.
Definition at line 160 of file Rectangle.cxx. References getDepth(), getHeight(), getWidth(), getX(), getY(), and getZ(). |
|
Checks the coordinates to see if they are inside or on the boundary of the HippoRectangle.
Definition at line 144 of file Rectangle.cxx. References getHeight(), getWidth(), getX(), and getY(). Referenced by LinePointRep::addEndPoints(), and LinePointRep::cornerCase(). |
|
Checks the value against the depth to see if it is in bounds.
Definition at line 133 of file Rectangle.cxx. References Size::getDepth(), Point::getZ(), m_origin, and m_size. Referenced by ColorBoxPointRep::drawProjectedValues(). |
|
Changes the coordinates so that they are inside or on the boundary of the HippoRectangle. That is, for each element of the vector x or y or z, leave it unchanged if it is within the HippoRectangle; otherwise, set it to the boundary on which it exceeds. Definition at line 251 of file Rectangle.cxx. References std::bind2nd(), getDepth(), getHeight(), getWidth(), getX(), getY(), getZ(), and std::replace_if(). |
|
Changes the coordinates so that they are inside or on the boundary of the HippoRectangle. That is, for each element of the vector x or y, leave it unchanged if it is within the HippoRectangle; otherwise, set it to the boundary on which it exceeds. Definition at line 226 of file Rectangle.cxx. References std::bind2nd(), getHeight(), getWidth(), getX(), getY(), and std::replace_if(). |
|
Changes the coordinates so that they are inside or on the boundary of the HippoRectangle. That is, for x or y or z, leave it unchanged if it is within the HippoRectangle; otherwise, set it to the boundary on which it exceeds. Definition at line 204 of file Rectangle.cxx. References Size::getDepth(), Size::getHeight(), Size::getWidth(), Point::getX(), Point::getY(), Point::getZ(), m_origin, m_size, std::max(), and std::min(). |
|
Changes the coordinates so that they are inside or on the boundary of the HippoRectangle. That is, for x or y, leave it unchanged if it is within the HippoRectangle; otherwise, set it to the boundary on which it exceeds. Definition at line 180 of file Rectangle.cxx. References Size::getHeight(), Size::getWidth(), Point::getX(), Point::getY(), m_origin, and m_size. Referenced by ErrorBarRep::drawProjectedValues(), ColumnPointRep::drawProjectedValues(), ColorBoxPointRep::drawProjectedValues(), and ContourPointRep::endPlot(). |
|
Moves the Rectange by specified amount. The size remains unchanged. Definition at line 81 of file Rectangle.cxx. References m_origin, and Point::moveBy(). |
|
Sets the depth of the HippoRectangle.
Definition at line 121 of file Rectangle.cxx. References m_size, and Size::setDepth(). Referenced by CompositePlotter::calcUserRectangle(). |
|
Set the parameters of 3D Rectangle.
Definition at line 74 of file Rectangle.cxx. References m_origin, m_size, Point::setPoint(), and Size::setSize(). |
|
Set the parameters of 2D Rectangle.
Definition at line 68 of file Rectangle.cxx. References m_origin, m_size, Point::setPoint(), and Size::setSize(). Referenced by HippoRectangle(), OpenGLView::OpenGLView(), XyPlotter::prepareMarginRect(), EpsView::setDrawRect(), and OpenGLView::setRect(). |
|
Sets the Z dimension.
Definition at line 101 of file Rectangle.cxx. References m_origin, and Point::setZ(). Referenced by CompositePlotter::calcUserRectangle(). |
|
Definition at line 284 of file Rectangle.cxx. |
|
The origin of the Rectangle.
Definition at line 35 of file Rectangle.h. Referenced by getOrigin(), getX(), getY(), isInDepth(), makeInBounds(), moveBy(), setRect(), and setZ(). |
|
The size of the Rectangle.
Definition at line 38 of file Rectangle.h. Referenced by getHeight(), getSize(), getWidth(), isInDepth(), makeInBounds(), setDepth(), and setRect(). |