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#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 = nullptr,
39 Int_t width = 140, Int_t height = 30,
40 UInt_t options = kChildFrame,
42 ~TAttMarkerEditor() override;
43
44 void SetModel(TObject* obj) override;
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 ClassDefOverride(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
#define a(i)
Definition RSha256.hxx:99
short Style_t
Definition RtypesCore.h:89
unsigned long ULongptr_t
Definition RtypesCore.h:83
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
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.
void SetModel(TObject *obj) override
Pick up the values of used marker attributes.
Bool_t fSizeForText
true if "text" draw option uses marker size
TAttMarker * fAttMarker
marker attribute object
virtual void ConnectSignals2Slots()
Connect signals to slots.
~TAttMarkerEditor() override
Destructor of marker editor.
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 void DoMarkerAlphaColor(ULongptr_t p)
Slot connected to the color with alpha.
TGNumberEntry * fMarkerSize
marker size combo box
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
The TGedMarkerSelect widget is a button showing selected marker and a little down arrow.
Mother of all ROOT objects.
Definition TObject.h:41