Logo ROOT  
Reference Guide
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
20 TEveUtil 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 }
TEveElement::fRnrSelf
Bool_t fRnrSelf
Definition: TEveElement.h:92
TEveElement
Definition: TEveElement.h:35
TGLSceneBase
Definition: TGLSceneBase.h:32
TEveSceneInfo::AcceptElement
virtual Bool_t AcceptElement(TEveElement *el)
Virtual from TEveElement.
Definition: TEveSceneInfo.cxx:63
TEveScene
Definition: TEveScene.h:26
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
Form
char * Form(const char *fmt,...)
TEveManager::SetStatusLine
void SetStatusLine(const char *text)
Set the text in the right side of browser's status bar.
Definition: TEveManager.cxx:854
TEveSceneInfo::TEveSceneInfo
TEveSceneInfo(const TEveSceneInfo &)
TEveElement::AddStamp
virtual void AddStamp(UChar_t bits)
Add (bitwise or) given stamps to fChangeBits.
Definition: TEveElement.cxx:2035
TEveSceneInfo::GetGLScene
TGLSceneBase * GetGLScene() const
Return the TGLSceneBase represented by this SceneInfo object.
Definition: TEveSceneInfo.cxx:41
TGLSceneInfo.h
gEve
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
TGLSceneInfo::GetScene
TGLSceneBase * GetScene() const
Definition: TGLSceneInfo.h:84
bool
TEveSceneInfo
Definition: TEveSceneInfo.h:23
TEveViewer
Definition: TEveViewer.h:30
TEveSceneInfo::fGLSceneInfo
TGLSceneInfo * fGLSceneInfo
Definition: TEveSceneInfo.h:33
TNamed
Definition: TNamed.h:29
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TEveScene.h
TEveElement::kCBVisibility
@ kCBVisibility
Definition: TEveElement.h:385
TGLSceneInfo::SetActive
void SetActive(Bool_t a)
Set active state of the scene, mark viewer as changed.
Definition: TGLSceneInfo.cxx:70
TEveManager.h
TEveException
Definition: TEveUtil.h:101
TEveSceneInfo::AddStamp
virtual void AddStamp(UChar_t bits)
Override from TEveElement.
Definition: TEveSceneInfo.cxx:50
UChar_t
unsigned char UChar_t
Definition: RtypesCore.h:38
TEveSceneInfo::HandleElementPaste
virtual Bool_t HandleElementPaste(TEveElement *el)
Virtual from TEveElement.
Definition: TEveSceneInfo.cxx:75
TGLSceneInfo
Definition: TGLSceneInfo.h:27
TEveSceneInfo.h