Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
25class TGNumberEntry;
26class TGColorSelect;
28class TAttMarker;
30
32
33protected:
34 TAttMarker *fAttMarker; // marker attribute object
35 TGNumberEntry *fMarkerSize; // marker size combo box
36 TGColorSelect *fColorSelect; // marker color
38 Bool_t fSizeForText; // true if "text" draw option uses marker size
39 TGHSlider *fAlpha; // fill opacity
41
42 virtual void ConnectSignals2Slots();
43
44public:
45 TAttMarkerEditor(const TGWindow *p = 0,
46 Int_t width = 140, Int_t height = 30,
47 UInt_t options = kChildFrame,
49 virtual ~TAttMarkerEditor();
50
51 virtual void SetModel(TObject* obj);
52 virtual void DoMarkerColor(Pixel_t color);
53 virtual void DoMarkerAlphaColor(ULong_t p);
54 virtual void DoMarkerSize();
55 virtual void DoMarkerStyle(Style_t style);
56 virtual void DoAlpha();
57 virtual void DoAlphaField();
58 virtual void DoLiveAlpha(Int_t a);
59 virtual void GetCurAlpha();
60
61 ClassDef(TAttMarkerEditor,0) // GUI for editing marker attributes
62};
63
64#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define a(i)
Definition RSha256.hxx:99
unsigned long ULong_t
Definition RtypesCore.h:55
short Style_t
Definition RtypesCore.h:80
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
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.
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
Marker Attributes class.
Definition TAttMarker.h:19
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:668
Mother of all ROOT objects.
Definition TObject.h:37
TCanvas * style()
Definition style.C:1