#include <OSGCylinderVolume.h>
Inheritance diagram for osg::CylinderVolume:


Public Methods | |
Constructors | |
| CylinderVolume (void) | |
| CylinderVolume (const Pnt3f &p, const Vec3f &d, float r) | |
| CylinderVolume (const CylinderVolume &c) | |
Destructors | |
| ~CylinderVolume (void) | |
Set | |
| void | setValue (const Pnt3f &p, const Vec3f &d, float r) |
| void | setAxis (const Pnt3f &p, const Vec3f &d) |
| void | setRadius (float r) |
Get | |
| void | getAxis (Pnt3f &apos, Vec3f &adir) const |
| float | getRadius (void) const |
| virtual void | getCenter (Pnt3f ¢er) const |
| virtual Real32 | getScalarVolume (void) const |
| 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 | |
| void | extendBy (const Volume &volume) |
| extends (if necessary) to contain the given 3D point | |
| void | extendBy (const CylinderVolume &obj) |
| extends (if necessary) to contain the given 3D point | |
Intersect | |
| virtual bool | intersect (const Pnt3f &point) const |
| Returns true if intersection of given point and CylinderVolume is not empty. | |
| bool | intersect (const Line &line) const |
| intersect the CylinderVolume 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 |
| Returns true if intersection of given point and CylinderVolume is not empty. | |
| virtual bool | intersect (const CylinderVolume &volume) const |
| Returns true if intersection of given point and CylinderVolume is not empty. | |
| virtual bool | isOnSurface (const Pnt3f &point) const |
| Returns true if intersection of given point and CylinderVolume is not empty. | |
Transform | |
| virtual void | transform (const Matrix &mat) |
| transform volume by the given matrix | |
Output | |
| virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
| print the volume */ | |
Private Attributes | |
| Pnt3f | _axisPos |
| Vec3f | _axisDir |
| float | _radius |
This class is used within other classes in ase. It contains data to represent a cylinder by an axis and a radius. The height of the cylinder is defined by the length of the axis, i.e. its apex is at _axisPos + _axisDir.
|
|
Default Constructor |
|
||||||||||||||||
|
Default Constructor |
|
|
Default Constructor |
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Implements osg::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. |
|
|
extends (if necessary) to contain the given 3D point
Implements osg::Volume. |
|
|
extends (if necessary) to contain the given 3D point
|
|
|
Returns true if intersection of given point and CylinderVolume is not empty.
Implements osg::Volume. |
|
|
intersect the CylinderVolume with the given Line
Implements osg::Volume. |
|
||||||||||||||||
|
intersect the volume with the given Line
Implements osg::Volume. |
|
|
Returns true if intersection of given point and CylinderVolume is not empty.
Implements osg::Volume. |
|
|
Returns true if intersection of given point and CylinderVolume is not empty.
|
|
|
Returns true if intersection of given point and CylinderVolume is not empty.
Implements osg::Volume. |
|
|
transform volume by the given matrix
Implements osg::Volume. |
|
||||||||||||
|
print the volume */
Implements osg::Volume. |
|
|
|
|
|
|
|
|
|
1.2.16