Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 = nullptr, Int_t width=170, Int_t height=30,
41 ~TEveShapeEditor() override {}
42
43 void SetModel(TObject* obj) override;
44
45 void DoLineWidth();
46 void DoLineColor(Pixel_t color);
47 void DoDrawFrame();
48 void DoHighlightFrame();
49
50 ClassDefOverride(TEveShapeEditor, 0); // GUI editor for TEveShape.
51};
52
53#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
GUI editor for TEveShape.
void DoHighlightFrame()
Slot for HighlightFrame.
TGCheckButton * fDrawFrame
TGNumberEntry * fLineWidth
TEveShapeEditor(const TEveShapeEditor &)
TGColorSelect * fLineColor
void DoLineColor(Pixel_t color)
Slot for setting line color of polygon outline.
void SetModel(TObject *obj) override
Set model object.
void DoLineWidth()
Slot for setting line with of polygon outline.
TEveShapeEditor & operator=(const TEveShapeEditor &)
ClassDefOverride(TEveShapeEditor, 0)
TGCheckButton * fHighlightFrame
void DoDrawFrame()
Slot for DrawFrame.
~TEveShapeEditor() override
Abstract base-class for 2D/3D shapes.
Definition TEveShape.h:26
A button abstract base class.
Definition TGButton.h:68
Selects different options.
Definition TGButton.h:264
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
TGNumberEntry is a number entry input widget with up/down buttons.
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
Mother of all ROOT objects.
Definition TObject.h:41