Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:10:40

0001 // @(#)root/eve7:$Id$
0002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT7_REveSceneInfo
0013 #define ROOT7_REveSceneInfo
0014 
0015 #include <ROOT/REveElement.hxx>
0016 
0017 namespace ROOT {
0018 namespace Experimental {
0019 
0020 class REveViewer;
0021 class REveScene;
0022 
0023 /////////////////////////////////////////////////////////////////////////////
0024 /// REveSceneInfo
0025 /// Scene in a viewer.
0026 /////////////////////////////////////////////////////////////////////////////
0027 
0028 class REveSceneInfo : public REveElement
0029 {
0030 private:
0031    REveSceneInfo(const REveSceneInfo &) = delete;
0032    REveSceneInfo &operator=(const REveSceneInfo &) = delete;
0033 
0034 protected:
0035    REveViewer *fViewer{nullptr};   ///<!
0036    REveScene *fScene{nullptr};     ///<!
0037 
0038 public:
0039    REveSceneInfo(REveViewer *viewer, REveScene *scene);
0040    ~REveSceneInfo() override {}
0041 
0042    Int_t WriteCoreJson(nlohmann::json &j, Int_t rnr_offset) override;
0043 
0044    REveViewer *GetViewer() const { return fViewer; }
0045    REveScene *GetScene() const { return fScene; }
0046 
0047    Bool_t SingleRnrState() const override { return kTRUE; }
0048 
0049    Bool_t AcceptElement(REveElement *el) override;
0050 };
0051 
0052 } // namespace Experimental
0053 } // namespace ROOT
0054 
0055 #endif