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// //
17// TAttMarkerEditor //
18// //
19// Implements GUI for editing marker attributes. //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23#include "TGedFrame.h"
24
25#include "TGSlider.h"
26
27class TGNumberEntry;
28class TGColorSelect;
30class TAttMarker;
32
34
35protected:
36 TAttMarker *fAttMarker; // marker attribute object
37 TGNumberEntry *fMarkerSize; // marker size combo box
38 TGColorSelect *fColorSelect; // marker color
40 Bool_t fSizeForText; // true if "text" draw option uses marker size
41 TGHSlider *fAlpha; // fill opacity
43
44 virtual void ConnectSignals2Slots();
45
46public:
47 TAttMarkerEditor(const TGWindow *p = 0,
48 Int_t width = 140, Int_t height = 30,
49 UInt_t options = kChildFrame,
51 virtual ~TAttMarkerEditor();
52
53 virtual void SetModel(TObject* obj);
54 virtual void DoMarkerColor(Pixel_t color);
55 virtual void DoMarkerAlphaColor(ULong_t p);
56 virtual void DoMarkerSize();
57 virtual void DoMarkerStyle(Style_t style);
58 virtual void DoAlpha();
59 virtual void DoAlphaField();
60 virtual void DoLiveAlpha(Int_t a);
61 virtual void GetCurAlpha();
62
63 ClassDef(TAttMarkerEditor,0) // GUI for editing marker attributes
64};
65
66#endif
@ kChildFrame
Definition: GuiTypes.h:379
ULong_t Pixel_t
Definition: GuiTypes.h:39
unsigned long ULong_t
Definition: RtypesCore.h:53
short Style_t
Definition: RtypesCore.h:78
#define ClassDef(name, id)
Definition: Rtypes.h:322
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
virtual void DoAlpha()
Slot to set the alpha value.
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
virtual void SetModel(TObject *obj)
Pick up the values of used marker attributes.
TAttMarker * fAttMarker
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
virtual void DoMarkerSize()
Slot connected to the marker size.
TGHSlider * fAlpha
virtual void DoMarkerColor(Pixel_t color)
Slot connected to the marker color.
TGColorSelect * fColorSelect
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
virtual ~TAttMarkerEditor()
Destructor of marker editor.
virtual void DoMarkerAlphaColor(ULong_t p)
Slot connected to the color with alpha.
TGNumberEntry * fMarkerSize
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
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:667
Mother of all ROOT objects.
Definition: TObject.h:37
TCanvas * style()
Definition: style.C:1
auto * a
Definition: textangle.C:12