|
| SbBox2i32 () |
| Constructor for a 2D integer box.
|
|
| SbBox2i32 (int xmin, int ymin, int xmax, int ymax) |
| Constructor for a 2D integer box.
|
|
| SbBox2i32 (const SbVec2i32 &_min, const SbVec2i32 &_max) |
| Constructor for a 2D integer box.
|
|
| ~SbBox2i32 () |
| Destructor.
|
|
const SbVec2i32 & | getMin () const |
| Returns the minimum point of the box.
|
|
const SbVec2i32 & | getMax () const |
| Returns the maximum point of the box.
|
|
void | extendBy (const SbVec2i32 &pt) |
| Extends this box (if necessary) to contain the specified point.
|
|
void | extendBy (const SbBox2i32 &r) |
| Extends this box (if necessary) to contain the specified box.
|
|
SbBool | intersect (const SbVec2i32 &pt) const |
| Returns TRUE if the specified point intersects this box.
|
|
SbBool | intersect (const SbBox2i32 &bb) const |
| Returns TRUE if the specified box intersects this box.
|
|
SbBox2i32 | intersection (const SbBox2i32 &box) const |
| Returns the intersection of the specified box with this box.
|
|
void | setBounds (int xmin, int ymin, int xmax, int ymax) |
| Sets the corners of the box.
|
|
void | setBounds (const SbVec2i32 &_min, const SbVec2i32 &_max) |
| Sets the corners of the box.
|
|
void | getBounds (int &xmin, int &ymin, int &xmax, int &ymax) const |
| Gets the corners of the box.
|
|
void | getBounds (SbVec2i32 &_min, SbVec2i32 &_max) const |
| Gets the corners of the box.
|
|
void | getOrigin (int &originX, int &originY) const |
| Returns origin (minimum point) of box.
|
|
void | getSize (int &sizeX, int &sizeY) const |
| Returns box size.
|
|
SbVec2i32 | getSize () const |
| Return box size.
|
|
float | getAspectRatio () const |
| Returns aspect ratio (ratio of width to height) of box.
|
|
void | makeEmpty () |
| Makes an empty box.
|
|
2D box class.
2D box which has planes parallel to the major axes and is specified by two points (specified with 32 bits 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, SbBox2s, SbVec3f, SbVec2f, SbVec2i32, SbMatrix
Definition at line 2383 of file SbBox.h.