Logo ROOT   6.18/05
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
17class TGButton;
18class TGCheckButton;
19class TGNumberEntry;
20class TGColorSelect;
21
22class TEveShape;
23
25{
26private:
27 TEveShapeEditor(const TEveShapeEditor&); // Not implemented
28 TEveShapeEditor& operator=(const TEveShapeEditor&); // Not implemented
29
30protected:
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
38public:
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
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
GUI editor for TEveShape.
void DoHighlightFrame()
Slot for HighlightFrame.
TGCheckButton * fDrawFrame
TGNumberEntry * fLineWidth
virtual ~TEveShapeEditor()
virtual void SetModel(TObject *obj)
Set model object.
TEveShapeEditor(const TEveShapeEditor &)
TGColorSelect * fLineColor
void DoLineColor(Pixel_t color)
Slot for setting line color of polygon outline.
void DoLineWidth()
Slot for setting line with of polygon outline.
TEveShape * fM
TEveShapeEditor & operator=(const TEveShapeEditor &)
TGCheckButton * fHighlightFrame
void DoDrawFrame()
Slot for DrawFrame.
Abstract base-class for 2D/3D shapes.
Definition: TEveShape.h:25
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37