Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEveElementEditor.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, 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 ROOT_TEveElementEditor
13 #define ROOT_TEveElementEditor
14 
15 #include "TGedFrame.h"
16 
17 class TGCheckButton;
18 class TGNumberEntry;
19 class TGColorSelect;
20 class TGLabel;
21 
22 class TEveElement;
23 class TEveTransSubEditor;
24 
25 class TEveElementEditor : public TGedFrame
26 {
27  TEveElementEditor(const TEveElementEditor&); // Not implemented
28  TEveElementEditor& operator=(const TEveElementEditor&); // Not implemented
29 
30 protected:
31  TEveElement *fRE; // Model object.
32 
33  TGHorizontalFrame *fHFrame;
34  TGLabel *fPreLabel;
35  TGCheckButton *fRnrSelf;
36  TGCheckButton *fRnrChildren;
37  TGCheckButton *fRnrState;
38  TGColorSelect *fMainColor;
39  TGNumberEntry *fTransparency;
40  TEveTransSubEditor *fTrans;
41 
42 public:
43  TEveElementEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
44  UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
45  virtual ~TEveElementEditor() {}
46 
47  virtual void SetModel(TObject* obj);
48 
49  void DoRnrSelf();
50  void DoRnrChildren();
51  void DoRnrState();
52  void DoMainColor(Pixel_t color);
53  void DoTransparency();
54 
55  ClassDef(TEveElementEditor, 0); // Editor for TEveElement class.
56 };
57 
58 #endif