Logo ROOT  
Reference Guide
REveSceneInfo.hxx
Go to the documentation of this file.
1 // @(#)root/eve7:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2019, 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 #ifndef ROOT7_REveSceneInfo
13 #define ROOT7_REveSceneInfo
14 
15 #include <ROOT/REveElement.hxx>
16 
17 namespace ROOT {
18 namespace Experimental {
19 
20 class REveViewer;
21 class REveScene;
22 
23 /////////////////////////////////////////////////////////////////////////////
24 /// REveSceneInfo
25 /// Scene in a viewer.
26 /////////////////////////////////////////////////////////////////////////////
27 
28 class REveSceneInfo : public REveElement
29 {
30 private:
31  REveSceneInfo(const REveSceneInfo &) = delete;
33 
34 protected:
35  REveViewer *fViewer{nullptr}; ///<!
36  REveScene *fScene{nullptr}; ///<!
37 
38 public:
39  REveSceneInfo(REveViewer *viewer, REveScene *scene);
40  virtual ~REveSceneInfo() {}
41 
42  Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override;
43 
44  REveViewer *GetViewer() const { return fViewer; }
45  REveScene *GetScene() const { return fScene; }
46 
47  Bool_t SingleRnrState() const override { return kTRUE; }
48 
49  Bool_t AcceptElement(REveElement *el) override;
50 };
51 
52 } // namespace Experimental
53 } // namespace ROOT
54 
55 #endif
ROOT::Experimental::REveSceneInfo::GetViewer
REveViewer * GetViewer() const
Definition: REveSceneInfo.hxx:44
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
ROOT::Experimental::REveSceneInfo::REveSceneInfo
REveSceneInfo(const REveSceneInfo &)=delete
nlohmann::json
basic_json<> json
Definition: REveElement.hxx:58
ROOT::Experimental::REveSceneInfo::WriteCoreJson
Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override
Fill core part of JSON representation.
Definition: REveSceneInfo.cxx:41
ROOT::Experimental::REveSceneInfo::GetScene
REveScene * GetScene() const
Definition: REveSceneInfo.hxx:45
Int_t
int Int_t
Definition: RtypesCore.h:45
ROOT::Experimental::REveElement
Definition: REveElement.hxx:80
Bool_t
bool Bool_t
Definition: RtypesCore.h:63
bool
ROOT::Experimental::REveSceneInfo::fScene
REveScene * fScene
!
Definition: REveSceneInfo.hxx:36
ROOT::Experimental::REveScene
Definition: REveScene.hxx:34
REveElement.hxx
ROOT::Experimental::REveSceneInfo::operator=
REveSceneInfo & operator=(const REveSceneInfo &)=delete
ROOT::Experimental::REveSceneInfo::SingleRnrState
Bool_t SingleRnrState() const override
Definition: REveSceneInfo.hxx:47
ROOT::Experimental::REveSceneInfo::AcceptElement
Bool_t AcceptElement(REveElement *el) override
Virtual from REveElement.
Definition: REveSceneInfo.cxx:54
ROOT::Experimental::REveSceneInfo::~REveSceneInfo
virtual ~REveSceneInfo()
Definition: REveSceneInfo.hxx:40
ROOT::Experimental::REveSceneInfo
REveSceneInfo Scene in a viewer.
Definition: REveSceneInfo.hxx:29
ROOT::Experimental::REveViewer
REveViewer Reve representation of TGLViewer.
Definition: REveViewer.hxx:28
ROOT::Experimental::REveSceneInfo::fViewer
REveViewer * fViewer
!
Definition: REveSceneInfo.hxx:35
ROOT
VSD Structures.
Definition: StringConv.hxx:21