Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:41

0001 // @(#)root/eve:$Id$
0002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, 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 ROOT_TEveGeoNodeEditor
0013 #define ROOT_TEveGeoNodeEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TGCheckButton;
0018 class TGNumberEntry;
0019 class TGColorSelect;
0020 
0021 class TEveGeoNode;
0022 class TEveGeoTopNode;
0023 
0024 class TEveGValuator;
0025 
0026 class TEveGeoNodeEditor : public TGedFrame
0027 {
0028    TEveGeoNodeEditor(const TEveGeoNodeEditor&);            // Not implemented
0029    TEveGeoNodeEditor& operator=(const TEveGeoNodeEditor&); // Not implemented
0030 
0031 protected:
0032    TEveGeoNode*    fNodeRE;
0033 
0034    TGCheckButton*  fVizNode;
0035    TGCheckButton*  fVizNodeDaughters;
0036    TGCheckButton*  fVizVolume;
0037    TGCheckButton*  fVizVolumeDaughters;
0038 
0039 public:
0040    TEveGeoNodeEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
0041                      UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0042    ~TEveGeoNodeEditor() override {}
0043 
0044    void SetModel(TObject* obj) override;
0045 
0046    void DoVizNode();
0047    void DoVizNodeDaughters();
0048    void DoVizVolume();
0049    void DoVizVolumeDaughters();
0050 
0051    ClassDefOverride(TEveGeoNodeEditor, 0); // Editor for TEveGeoNode class.
0052 };
0053 
0054 /******************************************************************************/
0055 
0056 class TEveGeoTopNodeEditor : public TGedFrame
0057 {
0058    TEveGeoTopNodeEditor(const TEveGeoTopNodeEditor&);            // Not implemented
0059    TEveGeoTopNodeEditor& operator=(const TEveGeoTopNodeEditor&); // Not implemented
0060 
0061 protected:
0062    TEveGeoTopNode* fTopNodeRE;
0063 
0064    TEveGValuator*  fVisOption;
0065    TEveGValuator*  fVisLevel;
0066    TEveGValuator*  fMaxVisNodes;
0067 
0068 public:
0069    TEveGeoTopNodeEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
0070                         UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0071    ~TEveGeoTopNodeEditor() override {}
0072 
0073    void SetModel(TObject* obj) override;
0074 
0075    void DoVisOption();
0076    void DoVisLevel();
0077    void DoMaxVisNodes();
0078 
0079    ClassDefOverride(TEveGeoTopNodeEditor, 0); // Editor for TEveGeoTopNode class.
0080 };
0081 
0082 #endif