ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
virtual void AddStamp(UChar_t bits)
Override from TEveElement.
Eve representation of TGLScene.
Definition: TEveScene.h:26
virtual void AddStamp(UChar_t bits)
Add (bitwise or) given stamps to fChangeBits.
Bool_t fRnrSelf
Definition: TEveElement.h:90
Scene base-class – provides basic interface expected by the TGLViewer or its sub-classes: ...
Definition: TGLSceneBase.h:32
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
virtual Bool_t HandleElementPaste(TEveElement *el)
Virtual from TEveElement.
TEveUtil representation of TGLSceneInfo.
Definition: TEveSceneInfo.h:23
void SetStatusLine(const char *text)
Set the text in the right side of browser's status bar.
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
TGLSceneInfo * fGLSceneInfo
Definition: TEveSceneInfo.h:33
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
char * Form(const char *fmt,...)
ClassImp(TEveSceneInfo) TEveSceneInfo
Constructor.
TGLSceneBase * GetScene() const
Definition: TGLSceneInfo.h:83
TGLSceneBase * GetGLScene() const
Return the TGLSceneBase represented by this SceneInfo object.
virtual Bool_t AcceptElement(TEveElement *el)
Virtual from TEveElement.
Base class for extended scene context.
Definition: TGLSceneInfo.h:26
Exception class thrown by TEve classes and macros.
Definition: TEveUtil.h:102
void SetActive(Bool_t a)
Set active state of the scene, mark viewer as changed.
unsigned char UChar_t
Definition: RtypesCore.h:34
Base class for TEveUtil visualization elements, providing hierarchy management, rendering control and...
Definition: TEveElement.h:33
Eve representation of TGLViewer.
Definition: TEveViewer.h:30