| 1 |
NAME SbBox2f "" "" { 2D box class } |
| 2 |
INCLUDE SbBox.h |
| 3 |
DESC { |
| 4 |
2D box which has planes parallel to the major axes and is specified by |
| 5 |
two points (specified as floating point) on a diagonal. This class is part |
| 6 |
of the standard Inventor datatype classes and is used as input and output |
| 7 |
to geometry operations. |
| 8 |
} |
| 9 |
|
| 10 |
METHOD "" SbBox2f() {} |
| 11 |
METHOD CreateBounds SbBox2f(float xmin, float ymin, float xmax float ymax) {} |
| 12 |
METHOD CreateMinMax SbBox2f(const SbVec2f &min, const SbVec2f &max) {} |
| 13 |
METHOD "" void ~SbBox2f() { |
| 14 |
Constructors and destructor for a 2D float box. \axmin\., \aymin\., \axmax\., |
| 15 |
and \aymax\. are the bounds of the box. \amin\. and \amax\. are the corners of |
| 16 |
the diagonal that define the box. |
| 17 |
} |
| 18 |
METHOD "" const SbVec2f & getMin() {} |
| 19 |
METHOD "" const SbVec2f & getMax() { |
| 20 |
Returns the minimum and maximum points of the box. |
| 21 |
} |
| 22 |
METHOD "" SbVec2f getCenter() { |
| 23 |
Returns the center of the box. |
| 24 |
} |
| 25 |
METHOD extendByPt void extendBy(const SbVec2f &point) {} |
| 26 |
METHOD extendByBox void extendBy(const SbBox2f &box) { |
| 27 |
Extends this box (if necessary) to contain the specified point or other box. |
| 28 |
} |
| 29 |
METHOD intersectPt SbBool intersect(const SbVec2f &point) {} |
| 30 |
METHOD intersectBox SbBool intersect(const SbBox2f &box) { |
| 31 |
Returns \kTRUE\. if the specified \apoint\. or \abox\. intersects this box. |
| 32 |
} |
| 33 |
METHOD "" void setBounds(float xmin, float ymin, float xmax, float ymax) {} |
| 34 |
METHOD setBoundsMinMax void setBounds(const SbVec2f &min, const SbVec2f &max) { |
| 35 |
Sets the corners of the box. |
| 36 |
} |
| 37 |
METHOD "" void getBounds(float &xmin, float &ymin, float &xmax, float &ymax) {} |
| 38 |
METHOD getBoundsMinMax void getBounds(SbVec2f &min, SbVec2f &max) { |
| 39 |
Gets the corners of the box. |
| 40 |
} |
| 41 |
METHOD "" void getOrigin(float &x0, float &y0) { |
| 42 |
Gets box origin. |
| 43 |
} |
| 44 |
METHOD "" void getSize(float &x, float &y) { |
| 45 |
Gets box size. |
| 46 |
} |
| 47 |
METHOD "" float getAspectRatio() { |
| 48 |
Gets box aspect ratio. |
| 49 |
} |
| 50 |
METHOD "" void makeEmpty() { |
| 51 |
Makes an empty box. |
| 52 |
} |
| 53 |
METHOD "" SbBool isEmpty() { |
| 54 |
Returns \kTRUE\. if the box is empty, and \kFALSE\. otherwise. |
| 55 |
} |
| 56 |
METHOD "" SbBool hasArea() { |
| 57 |
Returns \kTRUE\. if both dimensions of the box have positive size, |
| 58 |
and \kFALSE\. otherwise. |
| 59 |
} |
| 60 |
ALSO { SbBox3f, SbXfBox3f, SbBox2s, SbVec3f, SbVec2f, SbVec2s, SbMatrix } |
| 61 |
|