Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osg::DynamicVolume Class Reference

3D base volume. More...

#include <OSGDynamicVolume.h>

Inheritance diagram for osg::DynamicVolume:

Inheritance graph
[legend]
Collaboration diagram for osg::DynamicVolume:

Collaboration graph
[legend]
List of all members.

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 VolumegetInstance (void) const
VolumegetInstance (void)
Type getType (void) const
void setVolumeType (Type type)
void morphToType (Type type)
DynamicVolume & operator= (const DynamicVolume &source)
Get
virtual void getCenter (Pnt3f &center) 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]

Detailed Description

3D base volume.


Member Enumeration Documentation

enum osg::DynamicVolume::Type
 

Enumeration values:
BOX_VOLUME 
SPHERE_VOLUME 


Constructor & Destructor Documentation

DynamicVolume::DynamicVolume Type    type = BOX_VOLUME
 

DynamicVolume::DynamicVolume const DynamicVolume &    obj
 

virtual osg::DynamicVolume::~DynamicVolume void    [inline, virtual]
 


Member Function Documentation

const Volume& osg::DynamicVolume::getInstance void    const [inline]
 

Volume& osg::DynamicVolume::getInstance void    [inline]
 

Type osg::DynamicVolume::getType void    const [inline]
 

void DynamicVolume::setVolumeType Type    type
 

void DynamicVolume::morphToType Type    type
 

DynamicVolume & DynamicVolume::operator= const DynamicVolume &    source
 

void osg::DynamicVolume::getCenter Pnt3f   center const [inline, virtual]
 

gives the center of the volume

Implements osg::Volume.

float osg::DynamicVolume::getScalarVolume void    const [inline, virtual]
 

gives the scalar volume of the volume

Implements osg::Volume.

void osg::DynamicVolume::getBounds Pnt3f   min,
Pnt3f   max
const [inline, virtual]
 

gives the boundaries of the volume

Implements osg::Volume.

void osg::DynamicVolume::extendBy const Pnt3f   pt [inline, virtual]
 

extends (if necessary) to contain the given 3D point

Implements osg::Volume.

void osg::DynamicVolume::extendBy const Volume   volume [inline, virtual]
 

extend the volume by the given volume

Implements osg::Volume.

bool osg::DynamicVolume::intersect const Pnt3f   point const [inline, virtual]
 

Returns true if intersection of given point and Volume is not empty.

Implements osg::Volume.

bool osg::DynamicVolume::intersect const Line   line const [inline, virtual]
 

intersect the volume with the given Line

Implements osg::Volume.

bool osg::DynamicVolume::intersect const Line   line,
Real32   enter,
Real32   exit
const [inline, virtual]
 

intersect the volume with the given Line

Implements osg::Volume.

bool osg::DynamicVolume::intersect const Volume   volume const [inline, virtual]
 

intersect the volume with another volume

Implements osg::Volume.

bool osg::DynamicVolume::isOnSurface const Pnt3f   point const [inline, virtual]
 

check if the point is on the volume's surface

Implements osg::Volume.

void osg::DynamicVolume::transform const Matrix   matrix [inline, virtual]
 

transform the volume bye the given matrix

Implements osg::Volume.

void DynamicVolume::dump UInt32    uiIndent = 0,
const BitVector    bvFlags = 0
const [virtual]
 

print the volume */

Implements osg::Volume.

bool DynamicVolume::operator== const DynamicVolume &    other const
 


Member Data Documentation

Type osg::DynamicVolume::_type [private]
 

UChar8 osg::DynamicVolume::_volumeMem[32] [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Jul 3 16:23:33 2002 for OpenSG by doxygen1.2.16