Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEveShapeEditor.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 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_TEveShapeEditor
13 #define ROOT_TEveShapeEditor
14 
15 #include "TGedFrame.h"
16 
17 class TGButton;
18 class TGCheckButton;
19 class TGNumberEntry;
20 class TGColorSelect;
21 
22 class TEveShape;
23 
24 class TEveShapeEditor : public TGedFrame
25 {
26 private:
27  TEveShapeEditor(const TEveShapeEditor&); // Not implemented
28  TEveShapeEditor& operator=(const TEveShapeEditor&); // Not implemented
29 
30 protected:
31  TEveShape *fM; // Model object.
32 
33  TGNumberEntry *fLineWidth; // Line width widget.
34  TGColorSelect *fLineColor; // Line color widget.
35  TGCheckButton *fDrawFrame; // Checkbox for frame rendering.
36  TGCheckButton *fHighlightFrame; // Checkbox for frame rendering.
37 
38 public:
39  TEveShapeEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
40  UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
41  virtual ~TEveShapeEditor() {}
42 
43  virtual void SetModel(TObject* obj);
44 
45  void DoLineWidth();
46  void DoLineColor(Pixel_t color);
47  void DoDrawFrame();
48  void DoHighlightFrame();
49 
50  ClassDef(TEveShapeEditor, 0); // GUI editor for TEveShape.
51 };
52 
53 #endif