TGLObject Base-class for direct OpenGL renderers. This allows classes to circumvent passing of TBuffer3D and use user-provided OpenGL code. By convention, if you want class TFoo : public TObject to have direct rendering you should also provide TFooGL : public TGLObject and implement abstract functions SetModel() and SetBBox(). TAttBBox can be used to facilitate calculation of bounding-boxes. See TPointSet3D and TPointSet3DGL.
void | SetAxisAlignedBBox(const Float_t* p) |
void | SetAxisAlignedBBox(Float_t xmin, Float_t xmax, Float_t ymin, Float_t ymax, Float_t zmin, Float_t zmax) |
Bool_t | SetModelCheckClass(TObject* obj, TClass* cls) |
static TClass* | SearchGLRenderer(TClass* cls) |
enum TGLLogicalShape::ELODAxes { | kLODAxesNone | |
kLODAxesX | ||
kLODAxesY | ||
kLODAxesZ | ||
kLODAxesAll | ||
}; |
TGLBoundingBox | TGLLogicalShape::fBoundingBox | ! Shape's bounding box. |
UInt_t | TGLLogicalShape::fDLBase | ! display-list id base |
Bool_t | TGLLogicalShape::fDLCache | ! use display list caching |
UShort_t | TGLLogicalShape::fDLValid | ! display-list validity bit-field |
TObject* | TGLLogicalShape::fExternalObj | ! Also plays the role of ID. |
TGLPhysicalShape* | TGLLogicalShape::fFirstPhysical | ! first replica |
Bool_t | TGLLogicalShape::fOwnExtObj | ! External object is a fake |
UInt_t | TGLLogicalShape::fRef | ! physical instance ref counting |
Bool_t | TGLLogicalShape::fRefStrong | ! Strong ref (delete on 0 ref); not in scene |
TGLScene* | TGLLogicalShape::fScene | ! scene where object is stored (can be zero!) |
static TMap | fgGLClassMap |
Update bounding box from external source. We call abstract SetBBox() and propagate the change to all attached physicals.
Checks if obj is of proper class and sets the model. Protected helper for subclasses.
Set axis-aligned bounding-box. Protected helper for subclasses.
Set axis-aligned bounding-box. Protected helper for subclasses.
Recursively search cls and its base classes for a GL-renderer class.
Return direct-rendering GL class for class isa. Zero is a valid response.
Kept from TGLLogicalShape virtual ELODAxes SupportedLODAxes() const { return kLODAxesNone; } Changed from TGLLogicalShape
{ return kTRUE; }
Abstract method from TGLLogicalShape: virtual void DirectDraw(TGLRnrCtx & rnrCtx) const = 0;