H3D::X3DBoundedObject Class Reference
[Abstract interface classes.]

This X3D abstract interface type is basis for all X3D node types that have bounds specified as part of the definition. More...

#include <X3DBoundedObject.h>

Inheritance diagram for H3D::X3DBoundedObject:

Inheritance graph
List of all members.

Public Member Functions

 X3DBoundedObject (Inst< SFBound >_bound=0, Inst< SFVec3f > _bboxCenter=0, Inst< SFVec3f > _bboxSize=0)

Public Attributes

auto_ptr< SFVec3fbboxCenter
 Specifies a the center of an axis-aligned bounding box enclosing the node.
auto_ptr< SFVec3fbboxSize
 Specifies a the size of an axis-aligned bounding box enclosing the node.

Detailed Description

This X3D abstract interface type is basis for all X3D node types that have bounds specified as part of the definition.

The bboxCenter and bboxSize fields specify a bounding box that encloses the Node. This is a hint that may be used for optimization purposes. The results are undefined if the specified bounding box is smaller than the actual bounding box of the Node at any time. A default bboxSize value, (-1, -1, -1), implies that the bounding box is not specified and, if needed, is calculated automatically.


Member Data Documentation

auto_ptr< SFVec3f > H3D::X3DBoundedObject::bboxCenter
 

Specifies a the center of an axis-aligned bounding box enclosing the node.

This field can be set in order to specify the bounding box of an object manually. The actual bounding volume can be found in the bound field. Only used if bboxSize != (-1,-1,-1)

Access type: initializeOnly
Default value: Vec3f( 0, 0, 0 )

auto_ptr< SFVec3f > H3D::X3DBoundedObject::bboxSize
 

Specifies a the size of an axis-aligned bounding box enclosing the node.

This field can be set in order to specify the bounding box of an object manually. The actual bounding volume can be found in the bound field. If bboxSize is (-1, -1, -1) the bounding volume will be automatically generated.

Access type: initializeOnly
Default value: Vec3f( -1, -1, -1 )


Generated on Thu Aug 24 12:40:17 2006 for H3D API by  doxygen 1.4.5