#include <OSGBoxVolume.h>
Inheritance diagram for osg::BoxVolume:


Operators | |
| const BoxVolume & | operator= (const BoxVolume &b1) |
| Assignment operator. | |
| OSG_BASE_DLLMAPPING bool | operator== (const BoxVolume &b1, const BoxVolume &b2) |
| Equality comparisons. | |
| bool | operator!= (const BoxVolume &b1, const BoxVolume &b2) |
| Assignment operator. | |
Public Methods | |
Constructors | |
| BoxVolume () | |
| BoxVolume (float xmin, float ymin, float zmin, float xmax, float ymax, float zmax) | |
| BoxVolume (const Pnt3f &min, const Pnt3f &max) | |
| BoxVolume (const BoxVolume &obj) | |
Destructors | |
| ~BoxVolume () | |
Get | |
| const Pnt3f & | getMin () const |
| Return the lowest point of the volume. | |
| const Pnt3f & | getMax () const |
| Return the highest point of the volume. | |
| void | getCenter (Pnt3f ¢er) const |
| Returns the center of a box. | |
| virtual Real32 | getScalarVolume (void) const |
| Gives the volume of the box (0 for an empty box). | |
| void | getBounds (float &xmin, float &ymin, float &zmin, float &xmax, float &ymax, float &zmax) const |
| void | getBounds (Pnt3f &min, Pnt3f &max) const |
| void | getOrigin (float &originX, float &originY, float &originZ) const |
| void | getSize (float &sizeX, float &sizeY, float &sizeZ) const |
| void | getSize (Vec3f &vec) const |
Set | |
| void | setBounds (float w, float h, float d) |
| void | setBounds (float xmin, float ymin, float zmin, float xmax, float ymax, float zmax) |
| void | setBounds (const Pnt3f &min, const Pnt3f &max) |
| void | setBoundsByCenterAndSize (const Pnt3f ¢er, const Vec3f &size) |
| set method | |
Extend | |
| virtual void | extendBy (const Pnt3f &pt) |
| Extends Box3f (if necessary) to contain given 3D point. | |
| void | extendBy (const Volume &volume) |
| Extends Box3f (if necessary) to contain given 3D point. | |
| void | extendBy (const BoxVolume &bb) |
| Extends Box3f (if necessary) to contain given 3D point. | |
Intersect | |
| bool | intersect (const Pnt3f &point) const |
| Returns true if intersection of given point and Box3f is not empty. | |
| bool | intersect (const Line &line) const |
| intersect the box with the given Line | |
| bool | intersect (const Line &line, Real32 &min, Real32 &max) const |
| intersect the box with the given Line | |
| bool | intersect (const Volume &volume) const |
| Returns true if intersection of given point and Box3f is not empty. | |
| bool | intersect (const BoxVolume &bb) const |
| Returns true if intersection of given point and Box3f is not empty. | |
| virtual bool | isOnSurface (const Pnt3f &point) const |
| Returns true if intersection of given point and Box3f is not empty. | |
Transform | |
| virtual void | transform (const Matrix &m) |
| Transforms Box3f by matrix, enlarging Box3f to contain result. | |
Output | |
| virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
| print the volume */ | |
Private Attributes | |
| Pnt3f | _min |
| Pnt3f | _max |
This box class is used by other classes in ase for data exchange and storage. It provides representation of the defining corners of a box in 3D space.
|
|
Default constructor - leaves box totally empty |
|
||||||||||||||||||||||||||||
|
Default constructor - leaves box totally empty |
|
||||||||||||
|
Default constructor - leaves box totally empty |
|
|
Default constructor - leaves box totally empty |
|
|
|
|
|
Return the lowest point of the volume. Just a convience wrapper for getBounds() Reimplemented from osg::Volume. |
|
|
Return the highest point of the volume. Just a convience wrapper for getBounds() Reimplemented from osg::Volume. |
|
|
Returns the center of a box.
Implements osg::Volume. |
|
|
Gives the volume of the box (0 for an empty box).
Implements osg::Volume. |
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||
|
Implements osg::Volume. |
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
set method
|
|
|
Extends Box3f (if necessary) to contain given 3D point.
Implements osg::Volume. |
|
|
Extends Box3f (if necessary) to contain given 3D point.
Implements osg::Volume. |
|
|
Extends Box3f (if necessary) to contain given 3D point.
|
|
|
Returns true if intersection of given point and Box3f is not empty.
Implements osg::Volume. |
|
|
intersect the box with the given Line
Implements osg::Volume. |
|
||||||||||||||||
|
intersect the box with the given Line
Implements osg::Volume. |
|
|
Returns true if intersection of given point and Box3f is not empty.
Implements osg::Volume. |
|
|
Returns true if intersection of given point and Box3f is not empty.
|
|
|
Returns true if intersection of given point and Box3f is not empty.
Implements osg::Volume. |
|
|
Transforms Box3f by matrix, enlarging Box3f to contain result.
Implements osg::Volume. |
|
|
Assignment operator.
|
|
||||||||||||
|
print the volume */
Implements osg::Volume. |
|
||||||||||||
|
Equality comparisons.
|
|
||||||||||||
|
Assignment operator.
|
|
|
|
|
|
|
1.2.16