|
| SbBox2s () |
| Constructor for a 2D integer box.
|
|
| SbBox2s (short xmin, short ymin, short xmax, short ymax) |
| Constructor for a 2D integer box.
|
|
| SbBox2s (const SbVec2s &_min, const SbVec2s &_max) |
| Constructor for a 2D integer box.
|
|
| ~SbBox2s () |
| Destructor.
|
|
const SbVec2s & | getMin () const |
| Returns the minimum point of the box.
|
|
const SbVec2s & | getMax () const |
| Returns the maximum point of the box.
|
|
void | extendBy (const SbVec2s &pt) |
| Extends this box (if necessary) to contain the specified point.
|
|
void | extendBy (const SbBox2s &r) |
| Extends this box (if necessary) to contain the specified box.
|
|
SbBool | intersect (const SbVec2s &pt) const |
| Returns TRUE if the specified point intersects this box.
|
|
SbBool | intersect (const SbBox2s &bb) const |
| Returns TRUE if the specified box intersects this box.
|
|
SbBox2s | intersection (const SbBox2s &box) const |
| Returns the intersection of the specified box with this box.
|
|
void | setBounds (short xmin, short ymin, short xmax, short ymax) |
| Sets the corners of the box.
|
|
void | setBounds (const SbVec2s &_min, const SbVec2s &_max) |
| Sets the corners of the box.
|
|
void | getBounds (short &xmin, short &ymin, short &xmax, short &ymax) const |
| Gets the corners of the box.
|
|
void | getBounds (SbVec2s &_min, SbVec2s &_max) const |
| Gets the corners of the box.
|
|
void | getOrigin (short &originX, short &originY) const |
| Returns origin (minimum point) of box.
|
|
void | getSize (short &sizeX, short &sizeY) const |
| Returns box size.
|
|
SbVec2s | getSize () const |
| Return box size.
|
|
float | getAspectRatio () const |
| Returns aspect ratio (ratio of width to height) of box.
|
|
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 with short integers) 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, SbBox2f, SbVec3f, SbVec2f, SbVec2s, SbMatrix
Definition at line 2194 of file SbBox.h.