Logo ROOT   6.10/09
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 
27 class TGNumberEntry;
28 class TGColorSelect;
29 class TGedMarkerSelect;
30 class TAttMarker;
31 class TGNumberEntryField;
32 
33 class TAttMarkerEditor : public TGedFrame {
34 
35 protected:
36  TAttMarker *fAttMarker; // marker attribute object
37  TGNumberEntry *fMarkerSize; // marker size combo box
38  TGColorSelect *fColorSelect; // marker color
39  TGedMarkerSelect *fMarkerType; // marker type
40  Bool_t fSizeForText; // true if "text" draw option uses marker size
41  TGHSlider *fAlpha; // fill opacity
43 
44  virtual void ConnectSignals2Slots();
45 
46 public:
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
short Style_t
Definition: RtypesCore.h:76
TAttMarker * fAttMarker
virtual ~TAttMarkerEditor()
Destructor of marker editor.
virtual void DoMarkerAlphaColor(ULong_t p)
Slot connected to the color with alpha.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TArc * a
Definition: textangle.C:12
Marker Attributes class.
Definition: TAttMarker.h:19
TGHSlider * fAlpha
#define ClassDef(name, id)
Definition: Rtypes.h:297
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGedMarkerSelect * fMarkerType
virtual void DoMarkerColor(Pixel_t color)
Slot connected to the marker color.
virtual void DoAlpha()
Slot to set the alpha value.
TGNumberEntryField * fAlphaField
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
TGNumberEntry * fMarkerSize
virtual void SetModel(TObject *obj)
Pick up the values of used marker attributes.
unsigned long ULong_t
Definition: RtypesCore.h:51
TCanvas * style()
Definition: style.C:1
virtual void DoMarkerSize()
Slot connected to the marker size.
virtual void ConnectSignals2Slots()
Connect signals to slots.
Mother of all ROOT objects.
Definition: TObject.h:37
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
TGColorSelect * fColorSelect
virtual void DoMarkerStyle(Style_t style)
Slot connected to the marker type.
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.