Logo ROOT  
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
TEveShapeEditor::SetModel
virtual void SetModel(TObject *obj)
Set model object.
Definition: TEveShapeEditor.cxx:80
TEveShapeEditor
Definition: TEveShapeEditor.h:24
TEveShapeEditor::fM
TEveShape * fM
Definition: TEveShapeEditor.h:31
TGWindow
Definition: TGWindow.h:31
TEveShapeEditor::DoLineWidth
void DoLineWidth()
Slot for setting line with of polygon outline.
Definition: TEveShapeEditor.cxx:93
TEveShapeEditor::TEveShapeEditor
TEveShapeEditor(const TEveShapeEditor &)
Pixel_t
ULong_t Pixel_t
Definition: GuiTypes.h:39
TEveShapeEditor::fLineWidth
TGNumberEntry * fLineWidth
Definition: TEveShapeEditor.h:33
TEveShapeEditor::operator=
TEveShapeEditor & operator=(const TEveShapeEditor &)
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TEveShapeEditor::~TEveShapeEditor
virtual ~TEveShapeEditor()
Definition: TEveShapeEditor.h:41
TGFrame::GetDefaultFrameBackground
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:668
TGCheckButton
Definition: TGButton.h:264
TGedFrame.h
TEveShapeEditor::fDrawFrame
TGCheckButton * fDrawFrame
Definition: TEveShapeEditor.h:35
TEveShapeEditor::DoHighlightFrame
void DoHighlightFrame()
Slot for HighlightFrame.
Definition: TEveShapeEditor.cxx:120
unsigned int
TEveShapeEditor::fLineColor
TGColorSelect * fLineColor
Definition: TEveShapeEditor.h:34
TEveShapeEditor::fHighlightFrame
TGCheckButton * fHighlightFrame
Definition: TEveShapeEditor.h:36
TGedFrame
Definition: TGedFrame.h:33
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGColorSelect
Definition: TGColorSelect.h:127
TGNumberEntry
Definition: TGNumberEntry.h:156
TGButton
Definition: TGButton.h:68
TEveShape
Definition: TEveShape.h:23
TEveShapeEditor::DoDrawFrame
void DoDrawFrame()
Slot for DrawFrame.
Definition: TEveShapeEditor.cxx:111
kChildFrame
@ kChildFrame
Definition: GuiTypes.h:379
int
TEveShapeEditor::DoLineColor
void DoLineColor(Pixel_t color)
Slot for setting line color of polygon outline.
Definition: TEveShapeEditor.cxx:102