#include <TEveBoxSetGL.h>
Inheritance diagram for TEveBoxSetGL:
Public Member Functions | |
TEveBoxSetGL () | |
virtual | ~TEveBoxSetGL () |
virtual Bool_t | ShouldDLCache (const TGLRnrCtx &rnrCtx) const |
virtual void | DLCacheDrop () |
virtual void | DLCachePurge () |
virtual Bool_t | SetModel (TObject *obj, const Option_t *opt=0) |
virtual void | DirectDraw (TGLRnrCtx &rnrCtx) const |
virtual void | Render (TGLRnrCtx &rnrCtx) |
ClassDef (TEveBoxSetGL, 0) | |
TEveBoxSetGL () | |
virtual | ~TEveBoxSetGL () |
virtual Bool_t | ShouldDLCache (const TGLRnrCtx &rnrCtx) const |
virtual void | DLCacheDrop () |
virtual void | DLCachePurge () |
virtual Bool_t | SetModel (TObject *obj, const Option_t *opt=0) |
virtual void | DirectDraw (TGLRnrCtx &rnrCtx) const |
virtual void | Render (TGLRnrCtx &rnrCtx) |
ClassDef (TEveBoxSetGL, 0) | |
Protected Member Functions | |
Int_t | PrimitiveType () const |
void | MakeOriginBox (Float_t p[8][3], Float_t dx, Float_t dy, Float_t dz) const |
void | RenderBoxStdNorm (const Float_t p[8][3]) const |
void | RenderBoxAutoNorm (const Float_t p[8][3]) const |
void | MakeDisplayList () const |
void | RenderBoxes (TGLRnrCtx &rnrCtx) const |
Int_t | PrimitiveType () const |
void | MakeOriginBox (Float_t p[8][3], Float_t dx, Float_t dy, Float_t dz) const |
void | RenderBoxStdNorm (const Float_t p[8][3]) const |
void | RenderBoxAutoNorm (const Float_t p[8][3]) const |
void | MakeDisplayList () const |
void | RenderBoxes (TGLRnrCtx &rnrCtx) const |
Protected Attributes | |
TEveBoxSet * | fM |
UInt_t | fBoxDL |
TEveBoxSet * | fM |
Private Member Functions | |
TEveBoxSetGL (const TEveBoxSetGL &) | |
TEveBoxSetGL & | operator= (const TEveBoxSetGL &) |
TEveBoxSetGL (const TEveBoxSetGL &) | |
TEveBoxSetGL & | operator= (const TEveBoxSetGL &) |
Definition at line 18 of file TEveBoxSetGL.h.
TEveBoxSetGL::TEveBoxSetGL | ( | const TEveBoxSetGL & | ) | [private] |
TEveBoxSetGL::TEveBoxSetGL | ( | ) |
TEveBoxSetGL::~TEveBoxSetGL | ( | ) | [virtual] |
TEveBoxSetGL::TEveBoxSetGL | ( | const TEveBoxSetGL & | ) | [private] |
TEveBoxSetGL::TEveBoxSetGL | ( | ) |
virtual TEveBoxSetGL::~TEveBoxSetGL | ( | ) | [virtual] |
TEveBoxSetGL& TEveBoxSetGL::operator= | ( | const TEveBoxSetGL & | ) | [private] |
Int_t TEveBoxSetGL::PrimitiveType | ( | ) | const [protected] |
Definition at line 55 of file TEveBoxSetGL.cxx.
References fM, TEveDigitSet::fRenderMode, GL_LINE_LOOP, GL_QUADS, and TEveDigitSet::kRM_Line.
Referenced by MakeDisplayList(), and RenderBoxes().
void TEveBoxSetGL::RenderBoxStdNorm | ( | const Float_t | p[8][3] | ) | const [inline, protected] |
Definition at line 81 of file TEveBoxSetGL.cxx.
References glNormal3f(), and glVertex3fv().
Referenced by MakeDisplayList().
void TEveBoxSetGL::RenderBoxAutoNorm | ( | const Float_t | p[8][3] | ) | const [protected] |
Definition at line 132 of file TEveBoxSetGL.cxx.
References TMath::Cross(), glNormal3fv(), glVertex3fv(), n, and subtract_and_normalize().
Referenced by RenderBoxes().
void TEveBoxSetGL::MakeDisplayList | ( | ) | const [protected] |
Definition at line 171 of file TEveBoxSetGL.cxx.
References fBoxDL, TEveBoxSet::fBoxType, TEveBoxSet::fDefDepth, TEveBoxSet::fDefHeight, TEveBoxSet::fDefWidth, TEveBoxSet::fDrawConeCap, fM, TGLQuadric::Get(), GL_COMPILE, glBegin(), glEnd(), glEndList(), glGenLists(), glNewList(), glPopMatrix(), glPushMatrix(), glTranslatef(), TEveBoxSet::kBT_AABox, TEveBoxSet::kBT_AABoxFixedDim, TEveBoxSet::kBT_Cone, TEveBoxSet::kBT_EllipticCone, MakeOriginBox(), p, PrimitiveType(), and RenderBoxStdNorm().
Referenced by Render(), and ShouldDLCache().
void TEveBoxSetGL::RenderBoxes | ( | TGLRnrCtx & | rnrCtx | ) | const [protected] |
Definition at line 286 of file TEveBoxSetGL.cxx.
References AntiFlick(), TMath::ATan(), TMath::ATan2(), b, TEveDigitSet::fAntiFlick, fBoxDL, TEveBoxSet::fBoxType, TEveBoxSet::fDefDepth, TEveBoxSet::fDefHeight, TEveBoxSet::fDefWidth, TEveDigitSetGL::fHighlightSet, fM, TEveDigitSet::fPlex, TEveChunkManager::iterator::fSelection, GL_NORMALIZE, glBegin(), glCallList(), glEnable(), glEnd(), glLoadName(), glPopMatrix(), glPopName(), glPushMatrix(), glPushName(), glRotatef(), glScalef(), glTranslatef(), h, TGLRnrCtx::Highlight(), TEveChunkManager::iterator::index(), TEveBoxSet::kBT_AABox, TEveBoxSet::kBT_AABoxFixedDim, TEveBoxSet::kBT_Cone, TEveBoxSet::kBT_EllipticCone, TEveBoxSet::kBT_FreeBox, TEveChunkManager::iterator::next(), phi, PrimitiveType(), TMath::RadToDeg(), RenderBoxAutoNorm(), s, TGLRnrCtx::SecSelection(), TEveDigitSetGL::SetupColor(), TGLRnrCtx::ShapeLOD(), TMath::Sqrt(), and theta.
Referenced by DirectDraw().
Reimplemented from TGLObject.
Definition at line 223 of file TEveBoxSetGL.cxx.
References MakeDisplayList(), and TGLObject::ShouldDLCache().
void TEveBoxSetGL::DLCacheDrop | ( | ) | [virtual] |
Reimplemented from TGLLogicalShape.
Definition at line 234 of file TEveBoxSetGL.cxx.
References TGLLogicalShape::DLCacheDrop(), and fBoxDL.
void TEveBoxSetGL::DLCachePurge | ( | ) | [virtual] |
Reimplemented from TGLLogicalShape.
Definition at line 245 of file TEveBoxSetGL.cxx.
References TGLLogicalShape::DLCachePurge(), fBoxDL, and TGLLogicalShape::PurgeDLRange().
Referenced by ~TEveBoxSetGL().
void TEveBoxSetGL::DirectDraw | ( | TGLRnrCtx & | rnrCtx | ) | const [virtual] |
Implements TGLLogicalShape.
Definition at line 440 of file TEveBoxSetGL.cxx.
References TEveDigitSetGL::AlwaysSecondarySelect(), TEveDigitSet::AssertPalette(), TEveBoxSet::fBoxType, TEveDigitSet::fDisableLighting, TEveDigitSet::fFrame, fM, TEveDigitSet::fPalette, TEveDigitSet::fPlex, TEveDigitSet::fRenderMode, TEveDigitSet::fSingleColor, TEveDigitSet::fValueIsColor, GL_CULL_FACE, GL_ENABLE_BIT, GL_FILL, GL_FRONT_AND_BACK, GL_LIGHTING, GL_LINE, GL_POLYGON_BIT, glDisable(), glPolygonMode(), glPopAttrib(), glPushAttrib(), TGLRnrCtx::Highlight(), TGLRnrCtx::IsDrawPassOutlineLine(), TEveBoxSet::kBT_Cone, TEveBoxSet::kBT_EllipticCone, TEveDigitSet::kRM_Fill, TEveDigitSet::kRM_Line, TEveFrameBoxGL::Render(), RenderBoxes(), TGLRnrCtx::SecSelection(), and TEveChunkManager::Size().
Referenced by Render().
void TEveBoxSetGL::Render | ( | TGLRnrCtx & | rnrCtx | ) | [virtual] |
Definition at line 486 of file TEveBoxSetGL.cxx.
References DirectDraw(), fBoxDL, glDeleteLists(), and MakeDisplayList().
TEveBoxSetGL::ClassDef | ( | TEveBoxSetGL | , | |
0 | ||||
) |
TEveBoxSetGL& TEveBoxSetGL::operator= | ( | const TEveBoxSetGL & | ) | [private] |
Int_t TEveBoxSetGL::PrimitiveType | ( | ) | const [protected] |
void TEveBoxSetGL::MakeOriginBox | ( | Float_t | p[8][3], | |
Float_t | dx, | |||
Float_t | dy, | |||
Float_t | dz | |||
) | const [protected] |
void TEveBoxSetGL::RenderBoxStdNorm | ( | const Float_t | p[8][3] | ) | const [protected] |
void TEveBoxSetGL::RenderBoxAutoNorm | ( | const Float_t | p[8][3] | ) | const [protected] |
void TEveBoxSetGL::MakeDisplayList | ( | ) | const [protected] |
void TEveBoxSetGL::RenderBoxes | ( | TGLRnrCtx & | rnrCtx | ) | const [protected] |
Reimplemented from TGLObject.
virtual void TEveBoxSetGL::DLCacheDrop | ( | ) | [virtual] |
Reimplemented from TGLLogicalShape.
virtual void TEveBoxSetGL::DLCachePurge | ( | ) | [virtual] |
Reimplemented from TGLLogicalShape.
Implements TGLObject.
virtual void TEveBoxSetGL::DirectDraw | ( | TGLRnrCtx & | rnrCtx | ) | const [virtual] |
Implements TGLLogicalShape.
virtual void TEveBoxSetGL::Render | ( | TGLRnrCtx & | rnrCtx | ) | [virtual] |
TEveBoxSetGL::ClassDef | ( | TEveBoxSetGL | , | |
0 | ||||
) |
TEveBoxSet* TEveBoxSetGL::fM [protected] |
Definition at line 24 of file TEveBoxSetGL.h.
Referenced by DirectDraw(), MakeDisplayList(), PrimitiveType(), RenderBoxes(), and SetModel().
UInt_t TEveBoxSetGL::fBoxDL [mutable, protected] |
Definition at line 26 of file TEveBoxSetGL.h.
Referenced by DLCacheDrop(), DLCachePurge(), MakeDisplayList(), Render(), and RenderBoxes().
TEveBoxSet* TEveBoxSetGL::fM [protected] |
Definition at line 24 of file TEveBoxSetGL.h.