Debian Codegraph @

doc/man/man3/ivm/basics/SbXfBox3f.ivm

raw
1 NAME SbXfBox3f "" "" { 3D box with an associated transformation matrix }
2 INCLUDE SbBox.h
3 DESC {
4 A 3D box with an arbitrary transformation applied. This class is useful when
5 a box will be transformed frequently; if an \cSbBox3f\. is used for this
6 purpose it will expand each time it is transformed in order to keep itself
7 axis-aligned. Transformations can be accumulated on an \cSbXfBox3f\.
8 without expanding the box, and after all transformations have been done, the
9 box can be expanded to an axis-aligned box if necessary.
10 }
11 METHOD "" SbXfBox3f() {}
12 METHOD CreateMinMax SbXfBox3f(const SbVec3f &_min, const SbVec3f &_max) {}
13 METHOD CreateBox3f SbXfBox3f(const SbBox3f &box) {}
14 METHOD "" ~SbXfBox3f() {
15 Constructors and destructor.
16 }
17 METHOD setXf void setTransform(const SbMatrix &m) {
18 Sets the transformation on the box.
19 }
20 METHOD "" const SbMatrix & getTransform() const {}
21 METHOD "" const SbMatrix & getInverse() const {
22 Gets the transformation on the box, and its inverse.
23 }
24 METHOD "" SbVec3f getCenter() const {
25 Returns the center of the box.
26 }
27 METHOD extendByPt void extendBy(const SbVec3f &pt) {
28 Extends the box (if necessary) to contain the given 3D point. If the
29 box has had a non-identity transformation applied using the
30 setTransform() method, the point is assumed to be in the transformed
31 space. For example, the following code sequence:
32 \b\k
33 SbXfBox3f bbox; bbox.extendBy(SbVec3f(0,0,0));
34 SbMatrix trans; trans.setTranslate(SbVec3f(1,1,1));
35 bbox.setTransform(trans);
36 bbox.extendBy(SbVec3f(0,0,0));
37 \.\.
38 will result in a bounding box extending from (-1,-1,-1) to
39 (0,0,0) in bbox'es local (untransformed) space.
40 }
41 METHOD extendByBox void extendBy(const SbBox3f &bb) {
42 Extends the box (if necessary) to contain the given \cSbBox3f\.. If
43 the box has had a non-identity transformation applied using the
44 setTransform() method, the given \cSbBox3f\. is assumed to be in the
45 transformed space.
46 }
47 METHOD extendByXfBox void extendBy(const SbXfBox3f &bb) {
48 Extends the box (if necessary) to contain the given \cSbXfBox3f\..
49 }
50 METHOD intersectPt SbBool intersect(const SbVec3f &pt) const {
51 Returns TRUE if intersection of given point and this box is not empty.
52 }
53 METHOD intersectBox SbBool intersect(const SbBox3f &bb) const {
54 Returns TRUE if intersection of given box and this box is not empty.
55 }
56 METHOD "" void setBounds(float xmin, float ymin, float zmin,
57 float xmax, float ymax, float zmax) {}
58 METHOD setBoundsMinMax void setBounds(const SbVec3f &_min,
59 const SbVec3f &_max) {}
60 METHOD "" void getBounds(float &xmin, float &ymin, float &zmin,
61 float &xmax, float &ymax, float &zmax) const {}
62 METHOD getBoundsMinMax void getBounds(SbVec3f &_min, SbVec3f &_max) const {
63 Set and get the bounds of the box.
64 }
65 METHOD "" void getOrigin(float &originX,
66 float &originY,
67 float &originZ) {
68 Returns origin (minimum point) of the box.
69 }
70 METHOD "" void getSize(float &sizeX, float &sizeY, float &sizeZ) {
71 Returns size of the box.
72 }
73 METHOD getVol float getVolume() const {
74 Gives the volume of the box (0 for an empty box).
75 }
76 METHOD "" void makeEmpty() {
77 Sets the box to contain nothing.
78 }
79 METHOD "" SbBool isEmpty() const {
80 Checks if the box is empty (degenerate).
81 }
82 METHOD hasVol SbBool hasVolume() const {
83 Checks if the box has volume; i.e., all three dimensions have
84 positive size.
85 }
86 METHOD "" void getSpan(const SbVec3f &direction,
87 float &dMin, float &dMax) const {
88 Finds the extent of the box along a particular direction.
89 }
90 METHOD xf void transform(const SbMatrix &m) {
91 Transforms the box by the given matrix.
92 }
93 METHOD "" SbBox3f project() const {
94 Projects an \cSbXfBox3f\. to an \cSbBox3f\.
95 }
96 METHOD "" int operator ==(const SbXfBox3f &b1, const SbXfBox3f &b2) {}
97 METHOD "" int operator !=(const SbXfBox3f &b1, const SbXfBox3f &b2) {
98 Equality comparisons.
99 }
100 ALSO { SbBox3f, SbBox2f, SbBox2s, SbVec3f, SbVec2f, SbVec2s,
101 SbMatrix, SoGetBoundingBoxAction }
102