Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
OpenGl_AABB Class Reference

Axis aligned bounding box (AABB). More...

#include <OpenGl_AABB.hxx>

Public Member Functions

 OpenGl_AABB ()
 Creates default (invalid) bounding volume. More...
 
 OpenGl_AABB (const OpenGl_RTVec4f &thePoint)
 Creates bounding volume of given point. More...
 
 OpenGl_AABB (const OpenGl_AABB &theVolume)
 Creates copy of another bounding volume. More...
 
 OpenGl_AABB (const OpenGl_RTVec4f &theMinPoint, const OpenGl_RTVec4f &theMaxPoint)
 Creates bounding volume from min and max points. More...
 
bool IsVoid () const
 Is object represents uninitialized volume? More...
 
void Add (const OpenGl_RTVec4f &theVector)
 Appends new point to the volume. More...
 
void Combine (const OpenGl_AABB &theVolume)
 Combines the volume with another volume. More...
 
OpenGl_AABB Added (const OpenGl_RTVec4f &thePoint) const
 Returns new volume created by appending a point to current volume. More...
 
OpenGl_AABB Combined (const OpenGl_AABB &theVolume) const
 Returns new volume created by combining with specified volume. More...
 
void Clear ()
 Clears bounding volume (makes object invalid). More...
 
float Area () const
 Evaluates surface area of bounding volume. More...
 
OpenGl_RTVec4f Size () const
 Return diagonal of bounding volume. More...
 
const OpenGl_RTVec4fCornerMin () const
 Returns minimum point of bounding volume. More...
 
const OpenGl_RTVec4fCornerMax () const
 Returns maximum point of bounding volume. More...
 
OpenGl_RTVec4fCornerMin ()
 Returns minimum point of bounding volume. More...
 
OpenGl_RTVec4fCornerMax ()
 Returns maximum point of bounding volume. More...
 

Detailed Description

Axis aligned bounding box (AABB).

Constructor & Destructor Documentation

OpenGl_AABB::OpenGl_AABB ( )

Creates default (invalid) bounding volume.

OpenGl_AABB::OpenGl_AABB ( const OpenGl_RTVec4f thePoint)

Creates bounding volume of given point.

OpenGl_AABB::OpenGl_AABB ( const OpenGl_AABB theVolume)

Creates copy of another bounding volume.

OpenGl_AABB::OpenGl_AABB ( const OpenGl_RTVec4f theMinPoint,
const OpenGl_RTVec4f theMaxPoint 
)

Creates bounding volume from min and max points.

Member Function Documentation

void OpenGl_AABB::Add ( const OpenGl_RTVec4f theVector)

Appends new point to the volume.

OpenGl_AABB OpenGl_AABB::Added ( const OpenGl_RTVec4f thePoint) const

Returns new volume created by appending a point to current volume.

float OpenGl_AABB::Area ( ) const

Evaluates surface area of bounding volume.

void OpenGl_AABB::Clear ( )

Clears bounding volume (makes object invalid).

void OpenGl_AABB::Combine ( const OpenGl_AABB theVolume)

Combines the volume with another volume.

OpenGl_AABB OpenGl_AABB::Combined ( const OpenGl_AABB theVolume) const

Returns new volume created by combining with specified volume.

const OpenGl_RTVec4f& OpenGl_AABB::CornerMax ( ) const
inline

Returns maximum point of bounding volume.

OpenGl_RTVec4f& OpenGl_AABB::CornerMax ( )
inline

Returns maximum point of bounding volume.

const OpenGl_RTVec4f& OpenGl_AABB::CornerMin ( ) const
inline

Returns minimum point of bounding volume.

OpenGl_RTVec4f& OpenGl_AABB::CornerMin ( )
inline

Returns minimum point of bounding volume.

bool OpenGl_AABB::IsVoid ( ) const
inline

Is object represents uninitialized volume?

OpenGl_RTVec4f OpenGl_AABB::Size ( ) const

Return diagonal of bounding volume.


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