Logo ROOT  
Reference Guide
TAttMarkerEditor.h
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Ilka Antcheva 11/05/04
3
4/*************************************************************************
5 * Copyright (C) 1995-2002, 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_TAttMarkerEditor
13#define ROOT_TAttMarkerEditor
14
15
16#include "TGedFrame.h"
17
18class TGNumberEntry;
19class TGColorSelect;
21class TAttMarker;
23
25
26protected:
27 TAttMarker *fAttMarker; ///< marker attribute object
28 TGNumberEntry *fMarkerSize; ///< marker size combo box
29 TGColorSelect *fColorSelect; ///< marker color
30 TGedMarkerSelect *fMarkerType; ///< marker type
31 Bool_t fSizeForText; ///< true if "text" draw option uses marker size
32 TGHSlider *fAlpha; ///< fill opacity
34
35 virtual void ConnectSignals2Slots();
36
37public:
38 TAttMarkerEditor(const TGWindow *p = 0,
39 Int_t width = 140, Int_t height = 30,
40 UInt_t options = kChildFrame,
42 virtual ~TAttMarkerEditor();
43
44 virtual void SetModel(TObject* obj);
45 virtual void DoMarkerColor(Pixel_t color);
46 virtual void DoMarkerAlphaColor(ULongptr_t p);
47 virtual void DoMarkerSize();
48 virtual void DoMarkerStyle(Style_t style);
49 virtual void DoAlpha();
50 virtual void DoAlphaField();
51 virtual void DoLiveAlpha(Int_t a);
52 virtual void GetCurAlpha();
53
54 ClassDef(TAttMarkerEditor,0) // GUI for editing marker attributes
55};
56
57#endif
@ kChildFrame
Definition: GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition: GuiTypes.h:40
short Style_t
Definition: RtypesCore.h:89
unsigned long ULongptr_t
Definition: RtypesCore.h:83
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t style
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Implements GUI for editing marker attributes.
virtual void DoAlpha()
Slot to set the alpha value.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
Bool_t fSizeForText
true if "text" draw option uses marker size
virtual void SetModel(TObject *obj)
Pick up the values of used marker attributes.
TAttMarker * fAttMarker
marker attribute object
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
TGNumberEntryField * fAlphaField
virtual void DoMarkerStyle(Style_t style)
Slot connected to the marker type.
TGedMarkerSelect * fMarkerType
marker type
virtual void DoMarkerSize()
Slot connected to the marker size.
TGHSlider * fAlpha
fill opacity
virtual void DoMarkerColor(Pixel_t color)
Slot connected to the marker color.
TGColorSelect * fColorSelect
marker color
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
virtual ~TAttMarkerEditor()
Destructor of marker editor.
virtual void DoMarkerAlphaColor(ULongptr_t p)
Slot connected to the color with alpha.
TGNumberEntry * fMarkerSize
marker size combo box
TAttMarkerEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of marker attributes GUI.
Marker Attributes class.
Definition: TAttMarker.h:19
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
Concrete class for horizontal slider.
Definition: TGSlider.h:119
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
ClassDef(TGedFrame, 0)
The TGedMarkerSelect widget is a button showing selected marker and a little down arrow.
Mother of all ROOT objects.
Definition: TObject.h:37
auto * a
Definition: textangle.C:12