#include <OSGDynamicVolume.h>
Inheritance diagram for osg::DynamicVolume:


Public Types | |
| enum | Type { BOX_VOLUME, SPHERE_VOLUME } |
Public Methods | |
Constructors | |
| DynamicVolume (Type type=BOX_VOLUME) | |
| DynamicVolume (const DynamicVolume &obj) | |
Destructors | |
| virtual | ~DynamicVolume (void) |
Class Specific | |
| const Volume & | getInstance (void) const |
| Volume & | getInstance (void) |
| Type | getType (void) const |
| void | setVolumeType (Type type) |
| void | morphToType (Type type) |
| DynamicVolume & | operator= (const DynamicVolume &source) |
Get | |
| virtual void | getCenter (Pnt3f ¢er) const |
| gives the center of the volume | |
| virtual float | getScalarVolume (void) const |
| gives the scalar volume of the volume | |
| virtual void | getBounds (Pnt3f &min, Pnt3f &max) const |
| gives the boundaries of the volume | |
Extend | |
| virtual void | extendBy (const Pnt3f &pt) |
| extends (if necessary) to contain the given 3D point | |
| virtual void | extendBy (const Volume &volume) |
| extend the volume by the given volume | |
Intersection | |
| virtual bool | intersect (const Pnt3f &point) const |
| Returns true if intersection of given point and Volume is not empty. | |
| virtual bool | intersect (const Line &line) const |
| intersect the volume with the given Line | |
| virtual bool | intersect (const Line &line, Real32 &enter, Real32 &exit) const |
| intersect the volume with the given Line | |
| virtual bool | intersect (const Volume &volume) const |
| intersect the volume with another volume | |
| virtual bool | isOnSurface (const Pnt3f &point) const |
| check if the point is on the volume's surface | |
Transform | |
| virtual void | transform (const Matrix &matrix) |
| transform the volume bye the given matrix | |
Output | |
| virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
| print the volume */ | |
Operators | |
| bool | operator== (const DynamicVolume &other) const |
Private Attributes | |
| Type | _type |
| UChar8 | _volumeMem [32] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gives the center of the volume
Implements osg::Volume. |
|
|
gives the scalar volume of the volume
Implements osg::Volume. |
|
||||||||||||
|
gives the boundaries of the volume
Implements osg::Volume. |
|
|
extends (if necessary) to contain the given 3D point
Implements osg::Volume. |
|
|
extend the volume by the given volume
Implements osg::Volume. |
|
|
Returns true if intersection of given point and Volume is not empty.
Implements osg::Volume. |
|
|
intersect the volume with the given Line
Implements osg::Volume. |
|
||||||||||||||||
|
intersect the volume with the given Line
Implements osg::Volume. |
|
|
intersect the volume with another volume
Implements osg::Volume. |
|
|
check if the point is on the volume's surface
Implements osg::Volume. |
|
|
transform the volume bye the given matrix
Implements osg::Volume. |
|
||||||||||||
|
print the volume */
Implements osg::Volume. |
|
|
|
|
|
|
|
|
|
1.2.16