|
| SbBox2f () |
| Constructor for a 2D float box.
|
|
| SbBox2f (float xmin, float ymin, float xmax, float ymax) |
| Constructor for a 2D float box.
|
|
| SbBox2f (const SbVec2f &_min, const SbVec2f &_max) |
| Constructor for a 2D float box.
|
|
| ~SbBox2f () |
| Destructor.
|
|
const SbVec2f & | getMin () const |
| Returns the minimum point of the box.
|
|
const SbVec2f & | getMax () const |
| Returns the maximum point of the box.
|
|
SbVec2f | getCenter () const |
| Returns the center of the box.
|
|
void | extendBy (const SbVec2f &pt) |
| Extends this box (if necessary) to contain the specified point.
|
|
void | extendBy (const SbBox2f &r) |
| Extends this box (if necessary) to contain the specified box.
|
|
SbBool | intersect (const SbVec2f &pt) const |
| Returns TRUE if the specified point intersects this box.
|
|
SbBool | intersect (const SbBox2f &bb) const |
| Returns TRUE if the specified box intersects this box.
|
|
SbBox2f | intersection (const SbBox2f &box) const |
| Returns the intersection of the specified box with this box.
|
|
void | setBounds (float xmin, float ymin, float xmax, float ymax) |
| Sets the corners of the box.
|
|
void | setBounds (const SbVec2f &_min, const SbVec2f &_max) |
| Sets the corners of the box.
|
|
void | getBounds (float &xmin, float &ymin, float &xmax, float &ymax) const |
| Gets the corners of the box.
|
|
void | getBounds (SbVec2f &_min, SbVec2f &_max) const |
| Gets the corners of the box.
|
|
SbVec2f | getClosestPoint (const SbVec2f &point) const |
| Returns the closest point on the box to the given point.
|
|
void | getOrigin (float &originX, float &originY) const |
| Gets box origin.
|
|
void | getSize (float &sizeX, float &sizeY) const |
| Gets box size.
|
|
SbVec2f | getSize () const |
| Return box size.
|
|
float | 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 as floating point) 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, SbVec2f, SbVec2s, SbMatrix
Definition at line 1798 of file SbBox.h.