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_TEveElementEditor
0013 #define ROOT_TEveElementEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TGCheckButton;
0018 class TGNumberEntry;
0019 class TGColorSelect;
0020 class TGLabel;
0021 
0022 class TEveElement;
0023 class TEveTransSubEditor;
0024 
0025 class TEveElementEditor : public TGedFrame
0026 {
0027    TEveElementEditor(const TEveElementEditor&);            // Not implemented
0028    TEveElementEditor& operator=(const TEveElementEditor&); // Not implemented
0029 
0030 protected:
0031    TEveElement         *fRE; // Model object.
0032 
0033    TGHorizontalFrame   *fHFrame;
0034    TGLabel             *fPreLabel;
0035    TGCheckButton       *fRnrSelf;
0036    TGCheckButton       *fRnrChildren;
0037    TGCheckButton       *fRnrState;
0038    TGColorSelect       *fMainColor;
0039    TGNumberEntry       *fTransparency;
0040    TEveTransSubEditor  *fTrans;
0041 
0042 public:
0043    TEveElementEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
0044                      UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0045    ~TEveElementEditor() override {}
0046 
0047    void SetModel(TObject* obj) override;
0048 
0049    void DoRnrSelf();
0050    void DoRnrChildren();
0051    void DoRnrState();
0052    void DoMainColor(Pixel_t color);
0053    void DoTransparency();
0054 
0055    ClassDefOverride(TEveElementEditor, 0); // Editor for TEveElement class.
0056 };
0057 
0058 #endif