Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TAttBBox Class Referenceabstract

Helper for management of bounding-box information.

Optionally used by classes that use direct OpenGL rendering via <Class>GL class.

Definition at line 17 of file TAttBBox.h.

Public Member Functions

 TAttBBox ()
virtual ~TAttBBox ()
Float_tAssertBBox ()
virtual void ComputeBBox ()=0
Float_tGetBBox ()
Bool_t GetBBoxOK () const
TAttBBoxoperator= (const TAttBBox &tab)
void ResetBBox ()
void SetupBBoxCube (Float_t extent, Float_t x, Float_t y, Float_t z)
 Setup bounding box as cube with given extent and center position. More...

Protected Member Functions

 TAttBBox (const TAttBBox &tab)
void AssertBBoxExtents (Float_t epsilon=0.005)
 Assert extents of all sides of the bounding-box are at least epsilon. More...
void BBoxCheckPoint (Float_t x, Float_t y, Float_t z)
void BBoxCheckPoint (const Float_t *p)
void BBoxClear ()
 Remove BBox information. More...
void BBoxInit (Float_t infinity=1e6)
 Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max) More...
void BBoxZero (Float_t epsilon=0, Float_t x=0, Float_t y=0, Float_t z=0)
 Create cube of volume (2*epsilon)^3 at (x,y,z). More...

Protected Attributes


#include <TAttBBox.h>

Inheritance diagram for TAttBBox:

Constructor & Destructor Documentation

◆ TAttBBox() [1/2]

TAttBBox::TAttBBox ( const TAttBBox tab)

Definition at line 31 of file TAttBBox.h.

◆ TAttBBox() [2/2]

TAttBBox::TAttBBox ( )

Definition at line 36 of file TAttBBox.h.

◆ ~TAttBBox()

virtual TAttBBox::~TAttBBox ( )

Definition at line 37 of file TAttBBox.h.

Member Function Documentation

◆ AssertBBox()

Float_t* TAttBBox::AssertBBox ( )

Definition at line 45 of file TAttBBox.h.

◆ AssertBBoxExtents()

void TAttBBox::AssertBBoxExtents ( Float_t  epsilon = 0.005)

Assert extents of all sides of the bounding-box are at least epsilon.

Definition at line 62 of file TAttBBox.cxx.

◆ BBoxCheckPoint() [1/2]

void TAttBBox::BBoxCheckPoint ( Float_t  x,
Float_t  y,
Float_t  z 

Definition at line 58 of file TAttBBox.h.

◆ BBoxCheckPoint() [2/2]

void TAttBBox::BBoxCheckPoint ( const Float_t p)

Definition at line 68 of file TAttBBox.h.

◆ BBoxClear()

void TAttBBox::BBoxClear ( )

Remove BBox information.

Definition at line 54 of file TAttBBox.cxx.

◆ BBoxInit()

void TAttBBox::BBoxInit ( Float_t  infinity = 1e6)

Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max)

Allocate and prepare for incremental filling.

Definition at line 29 of file TAttBBox.cxx.

◆ BBoxZero()

void TAttBBox::BBoxZero ( Float_t  epsilon = 0,
Float_t  x = 0,
Float_t  y = 0,
Float_t  z = 0 

Create cube of volume (2*epsilon)^3 at (x,y,z).

epsilon is zero by default.

Definition at line 42 of file TAttBBox.cxx.

◆ ComputeBBox()

virtual void TAttBBox::ComputeBBox ( )
pure virtual

◆ GetBBox()

Float_t* TAttBBox::GetBBox ( )

Definition at line 44 of file TAttBBox.h.

◆ GetBBoxOK()

Bool_t TAttBBox::GetBBoxOK ( ) const

Definition at line 43 of file TAttBBox.h.

◆ operator=()

TAttBBox& TAttBBox::operator= ( const TAttBBox tab)

Definition at line 39 of file TAttBBox.h.

◆ ResetBBox()

void TAttBBox::ResetBBox ( )

Definition at line 46 of file TAttBBox.h.

◆ SetupBBoxCube()

void TAttBBox::SetupBBoxCube ( Float_t  extent,
Float_t  x,
Float_t  y,
Float_t  z 

Setup bounding box as cube with given extent and center position.

Definition at line 76 of file TAttBBox.cxx.

Member Data Documentation

◆ fBBox

Float_t* TAttBBox::fBBox

Definition at line 20 of file TAttBBox.h.

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