Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveSceneInfo.cxx
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#include "TEveSceneInfo.h"
13#include "TEveScene.h"
14#include "TEveManager.h"
15
16#include "TGLSceneInfo.h"
17
18/** \class TEveSceneInfo
19\ingroup TEve
20TEveUtil representation of TGLSceneInfo.
21*/
22
24
25////////////////////////////////////////////////////////////////////////////////
26/// Constructor.
27
29 TEveElement (),
30 TNamed (Form("SI - %s", scene->GetName()),
31 Form("TEveSceneInfo of scene '%s'", scene->GetName())),
32 fViewer (viewer),
33 fScene (scene),
34 fGLSceneInfo (sinfo)
35{
36}
37
38////////////////////////////////////////////////////////////////////////////////
39/// Return the TGLSceneBase represented by this SceneInfo object.
40
42{
43 return fGLSceneInfo->GetScene();
44}
45
46////////////////////////////////////////////////////////////////////////////////
47/// Override from TEveElement.
48/// Process visibility changes and forward them to fGLScene.
49
51{
53 if (bits & kCBVisibility)
54 {
56 }
57}
58
59////////////////////////////////////////////////////////////////////////////////
60/// Virtual from TEveElement.
61/// TEveSceneInfo does not accept children.
62
64{
65 static const TEveException eH("TEveSceneInfo::AcceptElement ");
66
67 gEve->SetStatusLine(eH + "this class does not accept children.");
68 return kFALSE;
69}
70
71////////////////////////////////////////////////////////////////////////////////
72/// Virtual from TEveElement.
73/// TEveSceneInfo does not accept children.
74
76{
77 static const TEveException eH("TEveSceneInfo::HandleElementPaste ");
78
79 gEve->SetStatusLine(eH + "this class does not accept children.");
80 return kFALSE;
81}
unsigned char UChar_t
Definition RtypesCore.h:38
const Bool_t kFALSE
Definition RtypesCore.h:92
#define ClassImp(name)
Definition Rtypes.h:364
R__EXTERN TEveManager * gEve
char * Form(const char *fmt,...)
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
Definition TEveElement.h:36
virtual void AddStamp(UChar_t bits)
Add (bitwise or) given stamps to fChangeBits.
Bool_t fRnrSelf
Definition TEveElement.h:92
Exception class thrown by TEve classes and macros.
Definition TEveUtil.h:102
void SetStatusLine(const char *text)
Set the text in the right side of browser's status bar.
TEveUtil representation of TGLSceneInfo.
virtual Bool_t AcceptElement(TEveElement *el)
Virtual from TEveElement.
TGLSceneBase * GetGLScene() const
Return the TGLSceneBase represented by this SceneInfo object.
virtual void AddStamp(UChar_t bits)
Override from TEveElement.
TEveSceneInfo(const TEveSceneInfo &)
virtual Bool_t HandleElementPaste(TEveElement *el)
Virtual from TEveElement.
TGLSceneInfo * fGLSceneInfo
Eve representation of TGLScene.
Definition TEveScene.h:27
Eve representation of TGLViewer.
Definition TEveViewer.h:31
Scene base-class – provides basic interface expected by the TGLViewer or its sub-classes:
Base class for extended scene context.
void SetActive(Bool_t a)
Set active state of the scene, mark viewer as changed.
TGLSceneBase * GetScene() const
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29