Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // @(#)root/eve:$Id$
0002 // Author: Matevz Tadel 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_TEveShapeEditor
0013 #define ROOT_TEveShapeEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TGButton;
0018 class TGCheckButton;
0019 class TGNumberEntry;
0020 class TGColorSelect;
0021 
0022 class TEveShape;
0023 
0024 class TEveShapeEditor : public TGedFrame
0025 {
0026 private:
0027    TEveShapeEditor(const TEveShapeEditor&);            // Not implemented
0028    TEveShapeEditor& operator=(const TEveShapeEditor&); // Not implemented
0029 
0030 protected:
0031    TEveShape        *fM; // Model object.
0032 
0033    TGNumberEntry    *fLineWidth;  // Line width widget.
0034    TGColorSelect    *fLineColor;  // Line color widget.
0035    TGCheckButton    *fDrawFrame;       // Checkbox for frame rendering.
0036    TGCheckButton    *fHighlightFrame;  // Checkbox for frame rendering.
0037 
0038 public:
0039    TEveShapeEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
0040          UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0041    ~TEveShapeEditor() override {}
0042 
0043    void SetModel(TObject* obj) override;
0044 
0045    void DoLineWidth();
0046    void DoLineColor(Pixel_t color);
0047    void DoDrawFrame();
0048    void DoHighlightFrame();
0049 
0050    ClassDefOverride(TEveShapeEditor, 0); // GUI editor for TEveShape.
0051 };
0052 
0053 #endif