#include <OSGSphereVolume.h>
Inheritance diagram for osg::SphereVolume:


Public Methods | |
Constructor | |
| SphereVolume (void) | |
| SphereVolume (const SphereVolume &obj) | |
| SphereVolume (const Pnt3f &c, float r) | |
Destructor | |
| ~SphereVolume () | |
Feature | |
| void | setValue (const Pnt3f &c, float r) |
| Change the center and radius. | |
Set Values | |
| void | setCenter (const Pnt3f &c) |
| set just the center | |
| void | setRadius (float r) |
| set just the radius | |
Get Values | |
| void | getCenter (Pnt3f ¢er) const |
| Returns the center. | |
| const Pnt3f & | getCenter (void) const |
| Returns the center. | |
| float | getRadius () const |
| Returns the radius. | |
| virtual float | getScalarVolume (void) const |
| Return a sphere containing a given box. | |
| virtual void | getBounds (Pnt3f &min, Pnt3f &max) const |
| Returns the center. | |
Extending | |
| virtual void | extendBy (const Pnt3f &pt) |
| void | extendBy (const Volume &volume) |
| void | extendBy (const SphereVolume &bb) |
Intersection | |
| virtual bool | intersect (const Pnt3f &point) const |
| Returns true if intersection of given point and Volume is not empty. | |
| bool | intersect (const Line &line) const |
| intersect the SphereVolume with the given Line | |
| virtual bool | intersect (const Line &line, Real32 &enter, Real32 &exit) const |
| intersect the SphereVolume with the given Line | |
| bool | intersect (const Volume &volume) const |
| Returns true if intersection of given point and Volume is not empty. | |
| bool | intersect (const SphereVolume &sphere) const |
| Returns true if intersection of given point and Volume is not empty. | |
| virtual bool | isOnSurface (const Pnt3f &point) const |
| Returns true if intersection of given point and Volume is not empty. | |
Transformation | |
| virtual void | transform (const Matrix &mat) |
| Transforms Box3f by matrix. | |
Output | |
| virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
| print the volume */ | |
Private Attributes | |
| Pnt3f | _center |
| float | _radius |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
Change the center and radius.
|
|
|
set just the center
|
|
|
set just the radius
|
|
|
Returns the center.
Implements osg::Volume. |
|
|
Returns the center.
|
|
|
Returns the radius.
|
|
|
Return a sphere containing a given box.
Implements osg::Volume. |
|
||||||||||||
|
Returns the center.
Implements osg::Volume. |
|
|
Implements osg::Volume. |
|
|
Implements osg::Volume. |
|
|
|
|
|
Returns true if intersection of given point and Volume is not empty.
Implements osg::Volume. |
|
|
intersect the SphereVolume with the given Line
Implements osg::Volume. |
|
||||||||||||||||
|
intersect the SphereVolume with the given Line
Implements osg::Volume. |
|
|
Returns true if intersection of given point and Volume is not empty.
Implements osg::Volume. |
|
|
Returns true if intersection of given point and Volume is not empty.
|
|
|
Returns true if intersection of given point and Volume is not empty.
Implements osg::Volume. |
|
|
Transforms Box3f by matrix.
Implements osg::Volume. |
|
||||||||||||
|
print the volume */
Implements osg::Volume. |
|
|
|
|
|
|
1.2.16