|
| SbBox2d () |
| Constructor for a 2D double box.
|
|
| SbBox2d (double xmin, double ymin, double xmax, double ymax) |
| Constructor for a 2D double box.
|
|
| SbBox2d (const SbVec2d &_min, const SbVec2d &_max) |
| Constructor for a 2D double box.
|
|
| ~SbBox2d () |
| Destructor.
|
|
const SbVec2d & | getMin () const |
| Returns the minimum point of the box.
|
|
const SbVec2d & | getMax () const |
| Returns the maximum point of the box.
|
|
SbVec2d | getCenter () const |
| Returns the center of the box.
|
|
void | extendBy (const SbVec2d &pt) |
| Extends this box (if necessary) to contain the specified point .
|
|
void | extendBy (const SbBox2d &r) |
| Extends this box (if necessary) to contain the specified box.
|
|
SbBool | intersect (const SbVec2d &pt) const |
| Returns TRUE if the specified point intersects this box.
|
|
SbBool | intersect (const SbBox2d &bb) const |
| Returns TRUE if the specified box intersects this box.
|
|
SbBox2d | intersection (const SbBox2d &box) const |
| Returns the intersection of the specified box with this box.
|
|
void | setBounds (double xmin, double ymin, double xmax, double ymax) |
| Sets the corners of the box.
|
|
void | setBounds (const SbVec2d &_min, const SbVec2d &_max) |
| Sets the corners of the box.
|
|
void | getBounds (double &xmin, double &ymin, double &xmax, double &ymax) const |
| Gets the corners of the box.
|
|
void | getBounds (SbVec2d &_min, SbVec2d &_max) const |
| Gets the corners of the box.
|
|
SbVec2d | getClosestPoint (const SbVec2d &point) const |
| Returns the closest point on the box to the given point.
|
|
void | getOrigin (double &originX, double &originY) const |
| Gets box origin.
|
|
void | getSize (double &sizeX, double &sizeY) const |
| Gets box size.
|
|
SbVec2d | getSize () const |
| Return box size.
|
|
double | getAspectRatio () const |
| Gets box aspect ratio.
|
|
void | makeEmpty () |
| Makes an empty box.
|
|
SbBool | isEmpty () const |
| Returns TRUE if the box is empty, and FALSE otherwise.
|
|
SbBool | hasArea () const |
| Returns TRUE if both dimensions of the box have positive size, and FALSE otherwise.
|
|
2D box class.
2D box which has planes parallel to the major axes and is specified by two points (specified in double precision) on a diagonal. This class is part of the standard Open Inventor datatype classes and is used as input and output to geometry operations.
SEE ALSO
SbBox3f, SbXfBox3f, SbBox2s, SbVec3f, SbVec2d, SbVec2s, SbMatrix
Definition at line 1996 of file SbBox.h.