![]() |
ROOT
6.06/09
Reference Guide
|
Helper for management of bounding-box information.
Optionally used by classes that use direct OpenGL rendering via <Class>GL class
.
Definition at line 19 of file TAttBBox.h.
Public Member Functions | |
TAttBBox () | |
virtual | ~TAttBBox () |
TAttBBox & | operator= (const TAttBBox &tab) |
Bool_t | GetBBoxOK () const |
Float_t * | GetBBox () |
Float_t * | AssertBBox () |
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... | |
virtual void | ComputeBBox ()=0 |
ClassDef (TAttBBox, 1) | |
Protected Member Functions | |
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... | |
void | BBoxClear () |
Remove BBox information. More... | |
void | BBoxCheckPoint (Float_t x, Float_t y, Float_t z) |
void | BBoxCheckPoint (const Float_t *p) |
void | AssertBBoxExtents (Float_t epsilon=0.005) |
Assert extents of all sides of the bounding-box are at least epsilon. More... | |
TAttBBox (const TAttBBox &tab) | |
Protected Attributes | |
Float_t * | fBBox |
#include <TAttBBox.h>
|
inlineprotected |
Definition at line 33 of file TAttBBox.h.
|
inline |
Definition at line 38 of file TAttBBox.h.
|
inlinevirtual |
Definition at line 39 of file TAttBBox.h.
|
inline |
Definition at line 47 of file TAttBBox.h.
Referenced by TEveProjectionManager::ImportElements(), TEveProjectionManager::ProjectChildrenRecurse(), TEveLegoEventHandler::Rotate(), TEvePolygonSetProjectedGL::SetBBox(), TEveProjectionManager::SubImportChildren(), and TEveProjectionManager::SubImportElements().
Assert extents of all sides of the bounding-box are at least epsilon.
Definition at line 59 of file TAttBBox.cxx.
Referenced by TEveProjectionAxes::ComputeBBox(), TEveProjectionManager::ImportElements(), TEveProjectionManager::ProjectChildren(), TEveProjectionManager::SubImportChildren(), and TEveProjectionManager::SubImportElements().
Definition at line 60 of file TAttBBox.h.
Referenced by BBoxCheckPoint(), TEveBox::ComputeBBox(), TPointSet3D::ComputeBBox(), TEveJetCone::ComputeBBox(), TEveGeoShape::ComputeBBox(), TEveArrow::ComputeBBox(), TEveTriangleSet::ComputeBBox(), TEveTrack::ComputeBBox(), TEveBoxSet::ComputeBBox(), TEveBoxProjected::ComputeBBox(), TEvePolygonSetProjected::ComputeBBox(), TEveJetConeProjected::ComputeBBox(), TEveGeoShapeProjected::ComputeBBox(), TEveStraightLineSet::ComputeBBox(), TEveQuadSet::ComputeBBox(), TEveCalo2D::ComputeBBox(), and TEveProjectionManager::ProjectChildrenRecurse().
Definition at line 70 of file TAttBBox.h.
|
protected |
Remove BBox information.
Definition at line 51 of file TAttBBox.cxx.
Referenced by ResetBBox(), TEveStraightLineSetProjected::UpdateProjection(), and ~TAttBBox().
Dynamic Float_t[6] X(min,max), Y(min,max), Z(min,max)
Referenced by TEveBox::ComputeBBox(), TPointSet3D::ComputeBBox(), TEveJetCone::ComputeBBox(), TEveGeoShape::ComputeBBox(), TEveTriangleSet::ComputeBBox(), TEveTrack::ComputeBBox(), TEveProjectionManager::ComputeBBox(), TEveBoxSet::ComputeBBox(), TEveBoxProjected::ComputeBBox(), TEvePolygonSetProjected::ComputeBBox(), TEveJetConeProjected::ComputeBBox(), TEveGeoShapeProjected::ComputeBBox(), TEveStraightLineSet::ComputeBBox(), TEveQuadSet::ComputeBBox(), TEveCalo3D::ComputeBBox(), operator=(), TEveProjectionManager::ProjectChildren(), and TAttBBox().
|
protected |
Create cube of volume (2*epsilon)^3 at (x,y,z).
epsilon is zero by default.
Definition at line 39 of file TAttBBox.cxx.
Referenced by TPointSet3D::ComputeBBox(), TEveGeoShape::ComputeBBox(), TEveArrow::ComputeBBox(), TEveProjectionAxes::ComputeBBox(), TEveTriangleSet::ComputeBBox(), TEveText::ComputeBBox(), TEveProjectionManager::ComputeBBox(), TEveTrack::ComputeBBox(), TEveBoxSet::ComputeBBox(), TEvePolygonSetProjected::ComputeBBox(), TEveGeoShapeProjected::ComputeBBox(), TEveQuadSet::ComputeBBox(), TEveStraightLineSet::ComputeBBox(), TEveCalo2D::ComputeBBox(), TEveCaloLego::ComputeBBox(), and SetupBBoxCube().
TAttBBox::ClassDef | ( | TAttBBox | , |
1 | |||
) |
|
pure virtual |
Implemented in TEveCaloLego, TEveCalo2D, TEveCalo3D, TEveQuadSet, TEveStraightLineSet, TEveGeoShapeProjected, TEveJetConeProjected, TEvePolygonSetProjected, TEveBoxProjected, TEveBoxSet, TEveProjectionManager, TEveTrack, TEveText, TEveTriangleSet, TEveProjectionAxes, TEveArrow, TEveGeoShape, TEveJetCone, TPointSet3D, and TEveBox.
Referenced by AssertBBox(), and TEveProjectionManager::UpdateDependentElsAndScenes().
|
inline |
Definition at line 46 of file TAttBBox.h.
Referenced by TEveProjectionAxes::ComputeBBox(), TEveProjectionAxesGL::DirectDraw(), and TEveProjectionAxesGL::GetRange().
|
inline |
Definition at line 45 of file TAttBBox.h.
Definition at line 41 of file TAttBBox.h.
|
inline |
Definition at line 48 of file TAttBBox.h.
Referenced by TEveCaloViz::InvalidateCellIdCache(), TEvePolygonSetProjected::ProjectBuffer3D(), TEvePointSet::Reset(), TEveCaloViz::SetBackwardEndCapPos(), TEveCaloViz::SetBarrelRadius(), TEveCaloViz::SetEndCapPos(), TEveCaloViz::SetForwardEndCapPos(), TEveBox::SetVertex(), TEveBox::SetVertices(), and TEveGeoShapeProjected::UpdateProjection().
Setup bounding box as cube with given extent and center position.
Definition at line 73 of file TAttBBox.cxx.
|
protected |
Definition at line 22 of file TAttBBox.h.
Referenced by AssertBBox(), AssertBBoxExtents(), BBoxCheckPoint(), BBoxClear(), BBoxZero(), TEveProjectionAxes::ComputeBBox(), TEveBoxSet::ComputeBBox(), TEveQuadSet::ComputeBBox(), TEveCalo3D::ComputeBBox(), TEveCaloLego::ComputeBBox(), GetBBox(), operator=(), TEveTrackProjected::SetDepthLocal(), TEveBoxProjected::SetDepthLocal(), TEvePolygonSetProjected::SetDepthLocal(), TEveJetConeProjected::SetDepthLocal(), TEveLineProjected::SetDepthLocal(), TEveStraightLineSetProjected::SetDepthLocal(), TEvePointSetProjected::SetDepthLocal(), and TAttBBox().