| 1 |
NAME SbBox3f "" "" { 3D box class } |
| 2 |
INCLUDE SbBox.h |
| 3 |
DESC { |
| 4 |
3D box which has planes parallel to the major axes and is specified by two |
| 5 |
points on a diagonal. This class is part of the standard Inventor |
| 6 |
datatype classes and is used as input and output to geometry operations (see |
| 7 |
\cSoGetBoundingBoxAction\.). |
| 8 |
} |
| 9 |
METHOD "" SbBox3f() {} |
| 10 |
METHOD CreateBounds SbBox3f(float xmin, float ymin, float zmin float xmax, |
| 11 |
float ymax, float zmax) {} |
| 12 |
METHOD CreateMinMax SbBox3f(const SbVec3f &min, const SbVec3f &max) {} |
| 13 |
METHOD "" void ~SbBox3f() { |
| 14 |
Constructors and destructor for a 3D float box. \axmin\., \aymin\., \azmin\., |
| 15 |
\axmax\., \aymax\. and \azmax\. are the bounds of the box. \amin\. and |
| 16 |
\amax\. are the corners of the diagonal that define the box. |
| 17 |
} |
| 18 |
METHOD getMinConst const SbVec3f & getMin() {} |
| 19 |
METHOD getMaxConst const SbVec3f & getMax() { |
| 20 |
Returns the minimum and maximum points of the box. The minimum point is |
| 21 |
the corner of the box with the lowest X, Y, and Z values. The maximum |
| 22 |
point is the corner of the box with the highest X, Y, and Z values. |
| 23 |
} |
| 24 |
METHOD "" SbVec3f getCenter() { |
| 25 |
Returns the center of the box. |
| 26 |
} |
| 27 |
METHOD extendByPt void extendBy(const SbVec3f &point) {} |
| 28 |
METHOD extendByBox void extendBy(const SbBox3f &box) { |
| 29 |
Extends this box (if necessary) to contain the specified point or other box. |
| 30 |
} |
| 31 |
METHOD intersectPt SbBool intersect(const SbVec3f &point) {} |
| 32 |
METHOD intersectBox SbBool intersect(const SbBox3f &box) { |
| 33 |
Returns \kTRUE\. if the specified \apoint\. or \abox\. intersects this box. |
| 34 |
} |
| 35 |
METHOD "" void setBounds(float xmin, float ymin, float zmin, |
| 36 |
float xmax, float ymax, float zmax) {} |
| 37 |
METHOD setBoundsMinMax void setBounds(const SbVec3f &min, const SbVec3f &max) { |
| 38 |
Sets the corners of the box. |
| 39 |
} |
| 40 |
METHOD "" void getBounds(float &xmin, float &ymin, float &zmin, |
| 41 |
float &xmax, float &ymax, float &zmax) {} |
| 42 |
METHOD getBoundsMinMax void getBounds(SbVec3f &min, SbVec3f &max) { |
| 43 |
Gets the corners of the box. |
| 44 |
} |
| 45 |
METHOD "" void getOrigin(float &x0, float &y0, float &z0) { |
| 46 |
Gets box origin which is the same as the minimum corner of the box. |
| 47 |
} |
| 48 |
METHOD "" void getSize(float &x, float &y, float &z) { |
| 49 |
Gets box size. |
| 50 |
} |
| 51 |
METHOD "" void makeEmpty() { |
| 52 |
Makes an empty box. |
| 53 |
} |
| 54 |
METHOD "" SbBool isEmpty() { |
| 55 |
Returns \kTRUE\. if the box is empty, and \kFALSE\. otherwise. |
| 56 |
} |
| 57 |
METHOD hasVol SbBool hasVolume() { |
| 58 |
Returns \kTRUE\. if all three dimensions of the box have positive size, |
| 59 |
and \kFALSE\. otherwise. |
| 60 |
} |
| 61 |
METHOD "" void getSpan(SbVec3f &dir, float &dMin, float &dMax) { |
| 62 |
Finds the span of a box along a specified direction. The span is |
| 63 |
the total distance the box occupies along a given direction. The total |
| 64 |
distance is returned in the form of a minimum and maximum distance from |
| 65 |
the origin of each of the corners of the box along the given direction. |
| 66 |
The difference between these two values is the span. |
| 67 |
} |
| 68 |
METHOD xf void transform(const SbMatrix &mx) { |
| 69 |
Transforms box by matrix, enlarging box to contain result. |
| 70 |
} |
| 71 |
METHOD getVol float getVolume() { |
| 72 |
Returns the volume of the box. |
| 73 |
} |
| 74 |
ALSO { SbXfBox3f, SbBox2f, SbBox2s, SbVec3f, SbVec2f, SbVec2s, |
| 75 |
SbMatrix, SoGetBoundingBoxAction } |
| 76 |
|