ROOT logo
ROOT » GRAF3D » GL » TGLViewer

class TGLViewer: public TVirtualViewer3D, public TGLViewerBase, public TQObject

 Base GL viewer object - used by both standalone and embedded (in pad)
 GL. Contains core viewer objects :

 GL scene - collection of main drawn objects - see TGLStdScene
 Cameras (fXyzzCamera) - ortho and perspective cameras - see TGLCamera
 Clipping (fClipXyzz) - collection of clip objects - see TGLClip
 Manipulators (fXyzzManip) - collection of manipulators - see TGLManip

 It maintains the current active draw styles, clipping object,
 manipulator, camera etc.

 TGLViewer is 'GUI free' in that it does not derive from any ROOT GUI
 TGFrame etc - see TGLSAViewer for this. However it contains GUI
 GUI style methods HandleButton() etc to which GUI events can be
 directed from standalone frame or embedding pad to perform

 Also, the TGLWidget needs to be created externally. It is not owned
 by the viewer.

 For embedded (pad) GL this viewer is created directly by plugin
 manager. For standalone the derived TGLSAViewer is.

Function Members (Methods)

TGLViewer(TVirtualPad* pad)
TGLViewer(TVirtualPad* pad, Int_t x, Int_t y, Int_t width, Int_t height)
voidTObject::AbstractMethod(const char* method) const
virtual voidActivated()SIGNAL
virtual voidAddCompositeOp(UInt_t)
virtual voidTVirtualViewer3D::AddCompositeOp(UInt_t operation)
virtual Int_tAddObject(const TBuffer3D&, Bool_t* = 0)
virtual Int_tTVirtualViewer3D::AddObject(const TBuffer3D& buffer, Bool_t* addChildren = 0)
virtual Int_tAddObject(UInt_t, const TBuffer3D&, Bool_t* = 0)
virtual Int_tTVirtualViewer3D::AddObject(UInt_t physicalID, const TBuffer3D& buffer, Bool_t* addChildren = 0)
virtual voidTGLViewerBase::AddOverlayElement(TGLOverlayElement* el)
TGLSceneInfo*TGLViewerBase::AddScene(TGLSceneBase* scene)
virtual voidTObject::AppendPad(Option_t* option = "")
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
voidAutoFade(Float_t fade, Float_t time = 1, Int_t steps = 10)
virtual voidBeginScene()
virtual voidTVirtualViewer3D::BeginScene()
static Bool_tTQObject::BlockAllSignals(Bool_t b)
Bool_tTQObject::BlockSignals(Bool_t b)
virtual voidTObject::Browse(TBrowser* b)
virtual Bool_tBuildingScene() const
virtual Bool_tTVirtualViewer3D::BuildingScene() const
virtual Bool_tCanLoopOnPrimitives() const
virtual Bool_tTVirtualViewer3D::CanLoopOnPrimitives() const
virtual voidTGLViewerBase::Changed()
virtual voidTQObject::ChangedBy(const char* method)SIGNAL
static TClass*Class()
static TClass*TQObject::Class()
static TClass*TGLViewerBase::Class()
static TClass*TGLLockable::Class()
static TClass*TVirtualViewer3D::Class()
static TClass*TObject::Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual voidClicked(TObject* obj)SIGNAL
virtual voidClicked(TObject* obj, UInt_t button, UInt_t state)SIGNAL
TGLClip*TGLViewerBase::Clip() const
virtual TObject*TObject::Clone(const char* newname = "") const
virtual voidCloseComposite()
virtual voidTVirtualViewer3D::CloseComposite()
voidTQObject::CollectClassSignalLists(TList& list, TClass* cls)
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
virtual voidTObject::Copy(TObject& object) const
virtual voidCreateGLWidget()
TGLCamera&CurrentCamera() const
TGLLockable::ELockTGLLockable::CurrentLock() const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidTGLViewerBase::DeleteOverlayAnnotations()
virtual voidTGLViewerBase::DeleteOverlayElements(TGLOverlayElement::ERole r)
virtual voidTQObject::Destroyed()SIGNAL
virtual voidDestroyGLWidget()
Bool_tTQObject::Disconnect(const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = 0)
virtual voidTQObject::Disconnected(const char*)
virtual Int_tDistancetoPrimitive(Int_t px, Int_t py)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
Bool_tDoOverlaySelect(Int_t x, Int_t y)
Bool_tDoSelect(Int_t x, Int_t y, Bool_t trySecSel = kFALSE)
virtual voidDoubleClicked()SIGNAL
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTVirtualViewer3D::DrawViewer()
virtual voidTObject::Dump() constMENU
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
virtual voidEndScene()
virtual voidTVirtualViewer3D::EndScene()
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
Bool_tTGLViewerBase::FindClosestOpaqueRecord(TGLSelectRecord& rec, Int_t& recIdx)
Bool_tTGLViewerBase::FindClosestOverlayRecord(TGLOvlSelectRecord& rec, Int_t& recIdx)
Bool_tTGLViewerBase::FindClosestRecord(TGLSelectRecord& rec, Int_t& recIdx)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
TGLCameraOverlay*GetCameraOverlay() const
Bool_tGetClipAutoUpdate() const
TGLClipSet*GetClipSet() const
TGLOverlayElement*GetCurrentOvlElm() const
static TGLColorSet&GetDefaultColorSet()
Int_tGetDev() const
TGLViewer::EDragActionGetDragAction() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
TGEventHandler*GetEventHandler() const
Float_tGetFader() const
voidGetGuideState(Int_t& axesType, Bool_t& axesDepthTest, Bool_t& referenceOn, Double_t* referencePos) const
virtual const char*TObject::GetIconName() const
Bool_tGetIgnoreSizesOnUpdate() const
TGLLightSet*GetLightSet() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
Float_tGetMaxSceneDrawTimeHQ() const
Float_tGetMaxSceneDrawTimeLQ() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const char*GetPictureFileName() const
TGLViewer::EPushActionGetPushAction() const
Bool_tGetResetCameraOnDoubleClick() const
Bool_tGetResetCamerasOnUpdate() const
TGLRnrCtx*TGLViewerBase::GetRnrCtx() const
TGLSceneInfo*TGLViewerBase::GetSceneInfo(TGLSceneBase* scene)
const TGLPhysicalShape*GetSelected() const
Bool_tGetSmartRefresh() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual ULong_tTObject::Hash() const
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual TClass*TGLViewerBase::IsA() const
virtual TClass*TGLLockable::IsA() const
virtual TClass*TVirtualViewer3D::IsA() const
virtual TClass*TObject::IsA() const
virtual Bool_tTGLViewerBase::IsChanged() const
Bool_tTGLLockable::IsDrawOrSelectLock() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTGLLockable::IsLocked() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tIsUsingDefaultColorSet() const
static Bool_tIsUsingDefaultColorSetForNewViewers()
Bool_tTObject::IsZombie() const
static voidTQObject::LoadRQ_OBJECT()
virtual const char*TGLViewerBase::LockIdStr() const
virtual const char*TGLLockable::LockIdStr() const
static const char*TGLLockable::LockName(TGLLockable::ELock lock)
static Bool_tTGLLockable::LockValid(TGLLockable::ELock lock)
Short_tTGLViewerBase::LOD() const
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual voidTGLViewerBase::MergeSceneBBoxes(TGLBoundingBox& bbox)
virtual voidTQObject::Message(const char* msg)SIGNAL
virtual voidMouseIdle(TGLPhysicalShape*, UInt_t, UInt_t)SIGNAL
virtual voidMouseOver(TGLPhysicalShape*)SIGNAL
virtual voidMouseOver(TGLPhysicalShape*, UInt_t state)SIGNAL
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
virtual voidTVirtualViewer3D::ObjectPaint(TObject*, Option_t* = "")
virtual Bool_tOpenComposite(const TBuffer3D&, Bool_t* = 0)
virtual Bool_tTVirtualViewer3D::OpenComposite(const TBuffer3D& buffer, Bool_t* addChildren = 0)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TVirtualViewer3D&TVirtualViewer3D::operator=(const TVirtualViewer3D&)
TObject&TObject::operator=(const TObject& rhs)
virtual voidOverlayDragFinished()SIGNAL
virtual voidPadPaint(TVirtualPad* pad)
virtual voidTVirtualViewer3D::PadPaint(TVirtualPad*)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTGLViewerBase::PostRender()
virtual voidTGLViewerBase::PostRenderOverlaySelection()
virtual voidPostSceneBuildSetup(Bool_t resetCameras)
virtual Bool_tPreferLocalFrame() const
virtual Bool_tTVirtualViewer3D::PreferLocalFrame() const
virtual voidPreRender()
virtual voidTGLViewerBase::PreRenderOverlaySelection()
virtual voidTObject::Print(Option_t* option = "") const
virtual voidPrintObjects()
virtual voidTVirtualViewer3D::PrintObjects()
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
TGLCamera&RefCamera(TGLViewer::ECameraType camera)
virtual voidRefreshPadEditor(TObject* = 0)
Bool_tTGLLockable::ReleaseLock(TGLLockable::ELock lock) const
virtual voidRemoveOverlayElement(TGLOverlayElement* el)
virtual voidTGLViewerBase::RemoveOverlayElement(TGLOverlayElement* el)
voidTGLViewerBase::RemoveScene(TGLSceneBase* scene)
virtual voidTGLViewerBase::Render()
virtual voidTGLViewerBase::RenderNonSelected()
virtual voidTGLViewerBase::RenderOverlay()
virtual voidTGLViewerBase::RenderSelected()
voidRequestDraw(Short_t LOD = TGLRnrCtx::kLODMed)
Bool_tRequestOverlaySelect(Int_t x, Int_t y)
Bool_tRequestSelect(Int_t x, Int_t y, Bool_t trySecSel = kFALSE)
voidTObject::ResetBit(UInt_t f)
virtual voidResetCameras()
virtual voidTVirtualViewer3D::ResetCameras()
virtual voidResetCamerasAfterNextUpdate()
virtual voidTVirtualViewer3D::ResetCamerasAfterNextUpdate()
virtual voidTGLViewerBase::ResetSceneInfos()
Bool_tTGLViewerBase::ResolveSelectRecord(TGLSelectRecord& rec, Int_t recIdx)
TGLRnrCtx&TGLViewerBase::RnrCtx() const
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
Bool_tSavePicture(const TString& fileName)
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTGLViewerBase::SceneDestructing(TGLSceneBase* scene)
virtual voidSelectionChanged()SIGNAL
virtual TObject*TVirtualViewer3D::SelectObject(Int_t, Int_t)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCameraOverlay(TGLCameraOverlay* m)
voidSetClearColor(Color_t col)
voidTGLViewerBase::SetClip(TGLClip* p)
voidSetClipAutoUpdate(Bool_t x)
voidSetCurrentCamera(TGLViewer::ECameraType camera)
voidSetDrawCameraCenter(Bool_t x)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetEventHandler(TGEventHandler* handler)
voidSetFader(Float_t x)
voidSetGuideState(Int_t axesType, Bool_t axesDepthTest, Bool_t referenceOn, const Double_t* referencePos)
voidSetIgnoreSizesOnUpdate(Bool_t v)
voidTGLViewerBase::SetLOD(Short_t lod)
voidSetMaxSceneDrawTimeHQ(Float_t t)
voidSetMaxSceneDrawTimeLQ(Float_t t)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetOrthoCamera(TGLViewer::ECameraType camera, Double_t zoom, Double_t dolly, Double_t* center, Double_t hRotate, Double_t vRotate)
voidSetPerspectiveCamera(TGLViewer::ECameraType camera, Double_t fov, Double_t dolly, Double_t* center, Double_t hRotate, Double_t vRotate)
voidSetPictureFileName(const TString& f)
voidSetResetCameraOnDoubleClick(Bool_t v)
voidSetResetCamerasOnUpdate(Bool_t v)
voidSetSmartRefresh(Bool_t smart_ref)
voidTGLViewerBase::SetStyle(Short_t st)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTQObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTGLViewerBase::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTGLLockable::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTVirtualViewer3D::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
virtual voidTQObject::Streamer(TBuffer& b)
virtual voidTGLViewerBase::Streamer(TBuffer& b)
virtual voidTGLLockable::Streamer(TBuffer& b)
virtual voidTVirtualViewer3D::Streamer(TBuffer& b)
virtual voidTObject::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTQObject::StreamerNVirtual(TBuffer& b)
voidTGLViewerBase::StreamerNVirtual(TBuffer& b)
voidTGLLockable::StreamerNVirtual(TBuffer& b)
voidTVirtualViewer3D::StreamerNVirtual(TBuffer& b)
voidTObject::StreamerNVirtual(TBuffer& b)
Short_tTGLViewerBase::Style() const
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTGLLockable::TakeLock(TGLLockable::ELock lock) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
voidUseDefaultColorSet(Bool_t x)
static voidUseDefaultColorSetForNewViewers(Bool_t x)
static TVirtualViewer3D*TVirtualViewer3D::Viewer3D(TVirtualPad* pad = 0, Option_t* type = "")
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidFadeView(Float_t alpha)
TGLViewerBase::SceneInfoList_iTGLViewerBase::FindScene(TGLSceneBase* scene)
virtual void*TQObject::GetSender()
virtual const char*TQObject::GetSenderClassName() const
voidMakeCurrent() const
voidSetupCameras(Bool_t reset)
voidSetViewport(Int_t x, Int_t y, Int_t width, Int_t height)
voidTGLViewerBase::SubRenderScenes(TGLViewerBase::SubRender_foo render_foo)
voidSwapBuffers() const

Data Members

enum ECameraType { kCameraPerspXOZ
enum EPushAction { kPushStd
enum EDragAction { kDragNone
enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
enum TGLLockable::ELock { kUnlocked
Bool_tfAxesDepthTest! remove guides hidden-lines
Int_tfAxesType! axes type
TGLCamera*TGLViewerBase::fCameraCamera for rendering.
TGLCameraOverlay*fCameraOverlay! markup size of viewport in scene units
Bool_tTGLViewerBase::fChangedChange requiring redraw is pending.
TGLClip*TGLViewerBase::fClipViewer clipping-plane.
TGLOverlayElement*fCurrentOvlElm! current overlay element
TGLSelectRecordfCurrentSelRec! select record in use as selected
TGLColorSetfDarkColorSet! color-set with dark background
Bool_tfDebugMode! debug mode (forced rebuild + draw scene/frustum/interest boxes)
Bool_tfDrawCameraCenter! reference marker on?
TGEventHandler*fEventHandler! event handler
Float_tfFader! fade the view (0 - no fade/default, 1 - full fade/no rendering done)
TGLContextIdentity*fGLCtxId!for embedded gl viewer
Int_tfGLDevice!for embedded gl viewer
Bool_tfIgnoreSizesOnUpdateignore sizes of bounding-boxes on update
Bool_tfInitGL! has GL been initialised?
Short_tTGLViewerBase::fLODViewer-lod for rendering.
TGLColorSetfLightColorSet! color-set with dark background
TList*TQObject::fListOfConnections! list of connections to this object
TList*TQObject::fListOfSignals! list of signals from this object
TGLLockable::ELockTGLLockable::fLockLock state.
Float_tfMaxSceneDrawTimeHQ! max time for scene rendering at high LOD (in ms)
Float_tfMaxSceneDrawTimeLQ! max time for scene rendering at high LOD (in ms)
TGLBoundingBoxTGLViewerBase::fOverallBoundingBoxAxis-aligned union of scene bboxes.
TGLOvlSelectRecordfOvlSelRec! select record from last overlay select
TVirtualPad*fPad! external pad - remove replace with signal
TStringfPictureFileName! default file-name for SavePicture()
TGLRedrawTimer*fRedrawTimer! timer for triggering redraws
Bool_tfReferenceOn! reference marker on?
TGLVertex3fReferencePos! reference position
Bool_tfResetCameraOnDoubleClickreposition camera on double-click
Bool_tfResetCamerasOnNextUpdatereposition camera on next update
Bool_tfResetCamerasOnUpdatereposition camera on each update
Bool_tTGLViewerBase::fResetSceneInfosOnRenderRequest rebuild of view-specific scene data.
list<TGLSceneInfo*>TGLViewerBase::fScenesRegistered scenes.
TGLSelectRecordfSecSelRec! select record from last secondary select (should go to context)
TGLSelectRecordfSelRec! select record from last select (should go to context)
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
Bool_tfSmartRefresh! cache logicals during scene rebuilds, use TAtt3D time-stamp to determine if they are still valid
Short_tTGLViewerBase::fStyleViewer-style for rendering.
TGLRectfViewport! viewport - drawn area
vector<TGLSceneInfo*>TGLViewerBase::fVisScenesVisible scenes.
static Bool_tTQObject::fgAllSignalsBlockedflag used for suppression of all signals
static TGLColorSetfgDefaultColorSet! a shared, default color-set
static Bool_tfgUseDefaultColorSetForNewViewers! name says it all

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLViewer(TVirtualPad* pad, Int_t x, Int_t y, Int_t width, Int_t height)
 Construct the viewer object, with following arguments:
    'pad' - external pad viewer is bound to
    'x', 'y' - initial top left position
    'width', 'height' - initial width/height
TGLViewer(TVirtualPad * pad)
gl-embedded viewer's ctor
 Construct the viewer object, with following arguments:
    'pad' - external pad viewer is bound to
    'x', 'y' - initial top left position
    'width', 'height' - initial width/height
void InitSecondaryObjects()
 Common initialization.
 Destroy viewer object.
void PadPaint(TVirtualPad* pad)
 Entry point for updating viewer contents via VirtualViewer3D
 We search and forward the request to appropriate TGLScenePad.
 If it is not found we create a new TGLScenePad so this can
 potentially also be used for registration of new pads.
void UpdateScene()
 Force update of pad-scenes. Eventually this could be generalized
 to all scene-types via a virtual function in TGLSceneBase.
void ResetCurrentCamera()
 Resets position/rotation of current camera to default values.
void SetupCameras(Bool_t reset)
 Setup cameras for current bounding box.
void PostSceneBuildSetup(Bool_t resetCameras)
 Perform post scene-build setup.
void ResetInitGL()
 Reset GL initialization flag.
 This is needed if GL-context is destroyed from outside.
void InitGL()
 Initialise GL state if not already done
void RequestDraw(Short_t LOD = TGLRnrCtx::kLODMed)
 Post request for redraw of viewer at level of detail 'LOD'
 Request is directed via cross thread gVirtualGL object.
void PreRender()
 Initialize objects that influence rendering.
 Called before every render.
void DoDraw()
 Draw out the the current viewer/scene
Bool_t SavePicture(const TString& fileName)
 Save current image in various formats (gif, gif+, jpg, png, eps, pdf).
 'gif+' will append image to an existng file (animated gif).
 'eps' and 'pdf' do not fully support transparency and texturing.
 The viewer window most be fully contained within the desktop but
 can be covered by other windows.
 Returns false if something obvious goes wrong, true otherwise.
Bool_t SavePicture()
 Save current image using the defualt file name which can be set
 via SetPictureFileName() and defaults to "viewer.jpg".
 Really useful for the files ending with 'gif+'.
void DrawGuides()
 Draw reference marker and coordinate axes.
void DrawDebugInfo()
 If in debug mode draw camera aids and overall bounding box.
void PreDraw()
 Perform GL work which must be done before each draw of scene
void PostDraw()
 Perform GL work which must be done after each draw of scene
void FadeView(Float_t alpha)
 Draw a rectangle (background color and given alpha) across the
 whole viewport.
void MakeCurrent() const
 Make GL context current
void SwapBuffers() const
 Swap GL buffers
Bool_t RequestSelect(Int_t x, Int_t y, Bool_t trySecSel = kFALSE)
 Post request for select draw of viewer, picking objects round the WINDOW
 point (x,y).
 Request is directed via cross thread gVirtualGL object
Bool_t DoSelect(Int_t x, Int_t y, Bool_t trySecSel = kFALSE)
 Perform GL selection, picking objects overlapping WINDOW
 area described by 'rect'. Return kTRUE if selection should be
 changed, kFALSE otherwise.
 Select lock should already been taken in other thread in
void ApplySelection()
 Process result from last selection (in fSelRec) and
 extract a new current selection from it.
 Here we only use physical shape.
Bool_t RequestOverlaySelect(Int_t x, Int_t y)
 Post request for select draw of viewer, picking objects round the WINDOW
 point (x,y).
 Request is directed via cross thread gVirtualGL object
Bool_t DoOverlaySelect(Int_t x, Int_t y)
 Perform GL selection, picking overlay objects only.
 Return TRUE if the selected overlay-element has changed.
void AutoFade(Float_t fade, Float_t time = 1, Int_t steps = 10)
 Animate fading from curernt value to fade over given time (sec)
 and number of steps.
void UseDarkColorSet()
 Use the dark color-set.
void UseLightColorSet()
 Use the light color-set.
void SwitchColorSet()
 Swtich between dark and light colorsets.
void UseDefaultColorSet(Bool_t x)
 Set usage of the default color set.
Bool_t IsUsingDefaultColorSet() const
 Check if the viewer is using the default color set.
 If yes, some operations might be disabled.
void SetClearColor(Color_t col)
 Set background method.
 Deprecated method - set background color in the color-set.
TGLColorSet& GetDefaultColorSet()
 Returns reference to the default color-set.
 Static function.
void UseDefaultColorSetForNewViewers(Bool_t x)
 Sets static flag that determines if new viewers should use the
 default color-set.
 This is false at startup.
Bool_t IsUsingDefaultColorSetForNewViewers()
 Returns the value of the static flag that determines if new
 viewers should use the default color-set.
 This is false at startup.
void SetViewport(Int_t x, Int_t y, Int_t width, Int_t height)
 Set viewer viewport (window area) with bottom/left at (x,y), with
 dimensions 'width'/'height'
TGLCamera& RefCamera(TGLViewer::ECameraType camera)
 Return camera reference by type.
void SetCurrentCamera(TGLViewer::ECameraType camera)
 Set current active camera - 'cameraType' one of:
 kCameraPerspX, kCameraPerspY, kCameraPerspZ
 kCameraOrthoXOY, kCameraOrthoXOZ, kCameraOrthoZOY
void SetOrthoCamera(TGLViewer::ECameraType camera, Double_t zoom, Double_t dolly, Double_t* center, Double_t hRotate, Double_t vRotate)
 Set an orthographic camera to supplied configuration - note this
 does not need to be the current camera - though you will not see
 the effect if it is not.

 'camera' defines the ortho camera - one of kCameraOrthoXOY / XOZ / ZOY
 'left' / 'right' / 'top' / 'bottom' define the WORLD coordinates which
 corresepond with the left/right/top/bottom positions on the GL viewer viewport
 E.g. for kCameraOrthoXOY camera left/right are X world coords,
 top/bottom are Y world coords
 As this is an orthographic camera the other axis (in eye direction) is
 no relevant. The near/far clip planes are set automatically based in scene
void SetPerspectiveCamera(TGLViewer::ECameraType camera, Double_t fov, Double_t dolly, Double_t* center, Double_t hRotate, Double_t vRotate)
 Set a perspective camera to supplied configuration - note this
 does not need to be the current camera - though you will not see
 the effect if it is not.

 'camera' defines the persp camera - one of kCameraPerspXOZ, kCameraPerspYOZ, kCameraPerspXOY
 'fov' - field of view (lens angle) in degrees (clamped to 0.1 - 170.0)
 'dolly' - distance from 'center'
 'center' - world position from which dolly/hRotate/vRotate are measured
             camera rotates round this, always facing in (in center of viewport)
 'hRotate' - horizontal rotation from initial configuration in degrees
 'hRotate' - vertical rotation from initial configuration in degrees
void GetGuideState(Int_t& axesType, Bool_t& axesDepthTest, Bool_t& referenceOn, Double_t* referencePos) const
 Fetch the state of guides (axes & reference markers) into arguments
void SetGuideState(Int_t axesType, Bool_t axesDepthTest, Bool_t referenceOn, const Double_t* referencePos)
 Set the state of guides (axes & reference markers) from arguments.
void SetDrawCameraCenter(Bool_t x)
 Draw camera look at and rotation point.
const TGLPhysicalShape * GetSelected() const
 Return selected physical shape.
void SelectionChanged()
 Emit signal indicating selection has changed.
void OverlayDragFinished()
 Emit signal indicating that an overlay drag has finished.
void MouseOver(TGLPhysicalShape* )
 Emit MouseOver signal.
void MouseOver(TGLPhysicalShape* , UInt_t state)
 Emit MouseOver signal.
void Clicked(TObject* obj)
 Emit Clicked signal.
void Clicked(TObject* obj, UInt_t button, UInt_t state)
 Emit Clicked signal with button id and modifier state.
void MouseIdle(TGLPhysicalShape* , UInt_t , UInt_t )
 Emit MouseIdle signal.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
 Calcaulate and return pixel distance to nearest viewer object from
 window location px, py
 This is provided for use when embedding GL viewer into pad
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
 Process event of type 'event' - one of EEventType types,
 occuring at window location px, py
 This is provided for use when embedding GL viewer into pad
void PrintObjects()
 Pass viewer for print capture by TGLOutput.
void SetEventHandler(TGEventHandler* handler)
 Set the event-handler. The event-handler is owned by the viewer.
 If GLWidget is set, the handler is propagated to it.
void RemoveOverlayElement(TGLOverlayElement* el)
 Remove overlay element.
void ClearCurrentOvlElm()
 Reset current overlay-element to zero, eventually notifying the
 old one that the mouse has left.
 Usually called when mouse leaves the window.
TGLViewer(const TGLViewer &)
TGLViewer & operator=(const TGLViewer& )
Bool_t CanLoopOnPrimitives() const
 TVirtualViewer3D interface ... mostly a facade
 Forward to TGLScenePad
{ return kTRUE; }
Bool_t PreferLocalFrame() const
 Only implemented because they're abstract ... should throw an
 exception or assert they are not called.
{ return kTRUE; }
void BeginScene()
Bool_t BuildingScene() const
{ return kFALSE; }
void EndScene()
Int_t AddObject(const TBuffer3D& , Bool_t* = 0)
{ return TBuffer3D::kNone; }
Int_t AddObject(UInt_t , const TBuffer3D& , Bool_t* = 0)
{ return TBuffer3D::kNone; }
Bool_t OpenComposite(const TBuffer3D& , Bool_t* = 0)
{ return kFALSE; }
void CloseComposite()
void AddCompositeOp(UInt_t )
void ResetCameras()
void ResetCamerasAfterNextUpdate()
void RefreshPadEditor(TObject* = 0)
TGLWidget* GetGLWidget()
{ return fGLWidget; }
void CreateGLWidget()
void DestroyGLWidget()
Int_t GetDev() const
{ return fGLDevice; }
Bool_t GetSmartRefresh() const
{ return fSmartRefresh; }
void SetSmartRefresh(Bool_t smart_ref)
{ fSmartRefresh = smart_ref; }
TGLColorSet& RefDarkColorSet()
{ return fDarkColorSet; }
TGLColorSet& RefLightColorSet()
{ return fLightColorSet; }
TGLLightSet* GetLightSet() const
{ return fLightSet; }
TGLClipSet * GetClipSet() const
{ return fClipSet; }
Bool_t GetClipAutoUpdate() const
{ return fClipAutoUpdate; }
void SetClipAutoUpdate(Bool_t x)
TGLCamera & CurrentCamera() const
 External GUI component interface
{ return *fCurrentCamera; }
Bool_t GetDrawCameraCenter()
{ return fDrawCameraCenter; }
void PickCameraCenter()
void PickAnnotate()
TGLCameraOverlay* GetCameraOverlay() const
{ return fCameraOverlay; }
void SetCameraOverlay(TGLCameraOverlay* m)
EPushAction GetPushAction() const
{ return fPushAction; }
EDragAction GetDragAction() const
{ return fDragAction; }
Float_t GetMaxSceneDrawTimeHQ() const
 Draw and selection
 Scene rendering timeouts
Float_t GetMaxSceneDrawTimeLQ() const
void SetMaxSceneDrawTimeHQ(Float_t t)
void SetMaxSceneDrawTimeLQ(Float_t t)
const char* GetPictureFileName() const
{ return fPictureFileName.Data(); }
void SetPictureFileName(const TString& f)
Float_t GetFader() const
{ return fFader; }
void SetFader(Float_t x)
{ fFader = x; }
Bool_t GetIgnoreSizesOnUpdate() const
void SetIgnoreSizesOnUpdate(Bool_t v)
Bool_t GetResetCamerasOnUpdate() const
void SetResetCamerasOnUpdate(Bool_t v)
Bool_t GetResetCameraOnDoubleClick() const
void SetResetCameraOnDoubleClick(Bool_t v)
void Activated()
{ Emit("Activated()"); }
void DoubleClicked()
{ Emit("DoubleClicked()"); }
TGEventHandler * GetEventHandler() const
{ return fEventHandler; }
TGLSelectRecord& GetSelRec()
{ return fSelRec; }
TGLOvlSelectRecord& GetOvlSelRec()
{ return fOvlSelRec; }
TGLOverlayElement* GetCurrentOvlElm() const
{ return fCurrentOvlElm; }