Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEveGeoNodeEditor.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_TEveGeoNodeEditor
13 #define ROOT_TEveGeoNodeEditor
14 
15 #include "TGedFrame.h"
16 
17 class TGCheckButton;
18 class TGNumberEntry;
19 class TGColorSelect;
20 
21 class TEveGeoNode;
22 class TEveGeoTopNode;
23 
24 class TEveGValuator;
25 
26 class TEveGeoNodeEditor : public TGedFrame
27 {
28  TEveGeoNodeEditor(const TEveGeoNodeEditor&); // Not implemented
29  TEveGeoNodeEditor& operator=(const TEveGeoNodeEditor&); // Not implemented
30 
31 protected:
32  TEveGeoNode* fNodeRE;
33 
34  TGCheckButton* fVizNode;
35  TGCheckButton* fVizNodeDaughters;
36  TGCheckButton* fVizVolume;
37  TGCheckButton* fVizVolumeDaughters;
38 
39 public:
40  TEveGeoNodeEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
41  UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
42  virtual ~TEveGeoNodeEditor() {}
43 
44  virtual void SetModel(TObject* obj);
45 
46  void DoVizNode();
47  void DoVizNodeDaughters();
48  void DoVizVolume();
49  void DoVizVolumeDaughters();
50 
51  ClassDef(TEveGeoNodeEditor, 0); // Editor for TEveGeoNode class.
52 };
53 
54 /******************************************************************************/
55 
56 class TEveGeoTopNodeEditor : public TGedFrame
57 {
58  TEveGeoTopNodeEditor(const TEveGeoTopNodeEditor&); // Not implemented
59  TEveGeoTopNodeEditor& operator=(const TEveGeoTopNodeEditor&); // Not implemented
60 
61 protected:
62  TEveGeoTopNode* fTopNodeRE;
63 
64  TEveGValuator* fVisOption;
65  TEveGValuator* fVisLevel;
66  TEveGValuator* fMaxVisNodes;
67 
68 public:
69  TEveGeoTopNodeEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
70  UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
71  virtual ~TEveGeoTopNodeEditor() {}
72 
73  virtual void SetModel(TObject* obj);
74 
75  void DoVisOption();
76  void DoVisLevel();
77  void DoMaxVisNodes();
78 
79  ClassDef(TEveGeoTopNodeEditor, 0); // Editor for TEveGeoTopNode class.
80 };
81 
82 #endif