H3D API  2.4.1
Public Attributes | List of all members
H3D::X3DBoundedObject Class Reference

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

#include <H3D/X3DBoundedObject.h>

Inheritance diagram for H3D::X3DBoundedObject:
Inheritance graph

Public Attributes

H3DUniquePtr< SFVec3fbboxCenter
 Specifies a the center of an axis-aligned bounding box enclosing the node. More...
 
H3DUniquePtr< SFVec3fbboxSize
 Specifies a the size of an axis-aligned bounding box enclosing the node. More...
 
- Public Attributes inherited from H3D::H3DBoundedObject
H3DUniquePtr< SFBoundbound
 The field containing the bound object. More...
 

Additional Inherited Members

- Public Member Functions inherited from H3D::H3DBoundedObject
 H3DBoundedObject (Inst< SFBound > _bound=0)
 Constructor.
 

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

◆ bboxCenter

H3DUniquePtr< 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 )

Referenced by H3D::FrameBufferTextureGenerator::initialize(), H3D::HAnimHumanoid::initialize(), and H3D::ParticleSystem::initialize().

◆ bboxSize

H3DUniquePtr< 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 )

Referenced by H3D::FrameBufferTextureGenerator::initialize(), H3D::HAnimHumanoid::initialize(), H3D::ParticleSystem::initialize(), and H3D::ParticleSystem::traverseSG().


The documentation for this class was generated from the following file: