ROOT  6.06/09
Reference Guide
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,
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
void DoHighlightFrame()
Slot for HighlightFrame.
Abstract base-class for 2D/3D shapes.
Definition: TEveShape.h:22
TEveShapeEditor & operator=(const TEveShapeEditor &)
GUI editor for TEveShape.
virtual void SetModel(TObject *obj)
Set model object.
TGCheckButton * fHighlightFrame
TGCheckButton * fDrawFrame
int Int_t
Definition: RtypesCore.h:41
ClassDef(TEveShapeEditor, 0)
TGNumberEntry * fLineWidth
void DoDrawFrame()
Slot for DrawFrame.
void DoLineColor(Pixel_t color)
Slot for setting line color of polygon outline.
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TEveShape * fM
unsigned int UInt_t
Definition: RtypesCore.h:42
TEveShapeEditor(const TEveShapeEditor &)
TGColorSelect * fLineColor
virtual ~TEveShapeEditor()
void DoLineWidth()
Slot for setting line with of polygon outline.
Mother of all ROOT objects.
Definition: TObject.h:58
TObject * obj