Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TAttMarker.h
Go to the documentation of this file.
1// @(#)root/base:$Id$
2// Author: Rene Brun 12/05/95
3
4/*************************************************************************
5 * Copyright (C) 1995-2026, 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_TAttMarker
13#define ROOT_TAttMarker
14
15#include "Rtypes.h"
16#include <vector>
17
18class TColorNumber;
19class TVirtualPad;
20class TPoint;
21
23
24protected:
25 Color_t fMarkerColor; ///< Marker color
26 Style_t fMarkerStyle; ///< Marker style
27 Size_t fMarkerSize; ///< Marker size
28
29public:
30 TAttMarker();
32 virtual ~TAttMarker();
33 void Copy(TAttMarker &attmarker) const;
34 virtual Color_t GetMarkerColor() const { return fMarkerColor; } ///< Return the marker color
35 virtual Style_t GetMarkerStyle() const { return fMarkerStyle; } ///< Return the marker style
36 virtual Size_t GetMarkerSize() const { return fMarkerSize; } ///< Return the marker size
37 virtual void Modify();
38 virtual void ModifyOn(TVirtualPad &pad);
39 virtual void ResetAttMarker(Option_t *toption="");
40 virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef = 1, Int_t stydef = 1, Int_t sizdef = 1);
41 virtual void SetMarkerAttributes(); // *MENU*
42 virtual void SetMarkerColor(Color_t mcolor = 1);
45 virtual void SetMarkerStyle(Style_t mstyle = 1);
46 virtual void SetMarkerSize(Size_t msize = 1);
47
49
50 EMarkerShape GetMarkerShape(Int_t &sz, std::vector<TPoint> &points, Float_t scale = 1., Bool_t prefer_triangles = kFALSE) const;
51
54
55 ClassDef(TAttMarker,3); //Marker attributes
56};
57
98
99#endif
100
short Style_t
Style number (short)
Definition RtypesCore.h:97
bool Bool_t
Boolean (0=false, 1=true) (bool)
Definition RtypesCore.h:78
int Int_t
Signed integer 4 bytes (int)
Definition RtypesCore.h:60
short Color_t
Color number (short)
Definition RtypesCore.h:100
float Size_t
Attribute size (float)
Definition RtypesCore.h:104
short Width_t
Line width (short)
Definition RtypesCore.h:99
float Float_t
Float 4 bytes (float)
Definition RtypesCore.h:72
constexpr Bool_t kFALSE
Definition RtypesCore.h:109
const char Option_t
Option string (const char)
Definition RtypesCore.h:81
#define ClassDef(name, id)
Definition Rtypes.h:344
EMarkerStyle
Definition TAttMarker.h:58
@ kOpenDoubleDiamond
Definition TAttMarker.h:89
@ kStar
Definition TAttMarker.h:61
@ kFullDotLarge
Definition TAttMarker.h:66
@ kFullDoubleDiamond
Definition TAttMarker.h:90
@ kOpenFourTrianglesX
Definition TAttMarker.h:87
@ kOpenSquare
Definition TAttMarker.h:72
@ kFullThreeTriangles
Definition TAttMarker.h:86
@ kOpenTriangleUp
Definition TAttMarker.h:73
@ kFourSquaresPlus
Definition TAttMarker.h:96
@ kFullDotSmall
Definition TAttMarker.h:64
@ kFullDotMedium
Definition TAttMarker.h:65
@ kOpenTriangleDown
Definition TAttMarker.h:79
@ kOpenThreeTriangles
Definition TAttMarker.h:84
@ kFullCrossX
Definition TAttMarker.h:94
@ kFullFourTrianglesX
Definition TAttMarker.h:88
@ kFullTriangleDown
Definition TAttMarker.h:70
@ kCircle
Definition TAttMarker.h:62
@ kOpenCrossX
Definition TAttMarker.h:93
@ kFullFourTrianglesPlus
Definition TAttMarker.h:92
@ kFullSquare
Definition TAttMarker.h:68
@ kOpenSquareDiagonal
Definition TAttMarker.h:83
@ kFullStar
Definition TAttMarker.h:76
@ kOpenDiamond
Definition TAttMarker.h:74
@ kStar2
Definition TAttMarker.h:78
@ kFullTriangleUp
Definition TAttMarker.h:69
@ kOpenDiamondCross
Definition TAttMarker.h:82
@ kOpenFourTrianglesPlus
Definition TAttMarker.h:91
@ kMultiply
Definition TAttMarker.h:63
@ kPlus
Definition TAttMarker.h:60
@ kOctagonCross
Definition TAttMarker.h:85
@ kFullCircle
Definition TAttMarker.h:67
@ kDot
Definition TAttMarker.h:59
@ kOpenCross
Definition TAttMarker.h:75
@ kFourSquaresX
Definition TAttMarker.h:95
@ kOpenCircle
Definition TAttMarker.h:71
@ kFullCross
Definition TAttMarker.h:81
@ kOpenStar
Definition TAttMarker.h:77
@ kFullDiamond
Definition TAttMarker.h:80
Option_t toption
Option_t Option_t SetMarkerStyle
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
Option_t Option_t style
char name[80]
Definition TGX11.cxx:148
Marker Attributes class.
Definition TAttMarker.h:22
virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
Save line attributes as C++ statement(s) on output stream out.
virtual void Modify()
Change current marker attributes if necessary.
virtual Style_t GetMarkerStyle() const
Return the marker style.
Definition TAttMarker.h:35
virtual Color_t GetMarkerColor() const
Return the marker color.
Definition TAttMarker.h:34
Color_t fMarkerColor
Marker color.
Definition TAttMarker.h:25
virtual Size_t GetMarkerSize() const
Return the marker size.
Definition TAttMarker.h:36
virtual void ModifyOn(TVirtualPad &pad)
Change current marker attributes if necessary on specified pad.
static Width_t GetMarkerLineWidth(Style_t style)
Internal helper function that returns the line width of the given marker style (0 = filled marker)
virtual ~TAttMarker()
TAttMarker destructor.
virtual void SetMarkerAttributes()
Invoke the DialogCanvas Marker attributes.
void Copy(TAttMarker &attmarker) const
Copy this marker attributes to a new TAttMarker.
TAttMarker()
TAttMarker default constructor.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
Set a transparent marker color.
Size_t fMarkerSize
Marker size.
Definition TAttMarker.h:27
EMarkerShape GetMarkerShape(Int_t &sz, std::vector< TPoint > &points, Float_t scale=1., Bool_t prefer_triangles=kFALSE) const
Return marker shape.
Style_t fMarkerStyle
Marker style.
Definition TAttMarker.h:26
static Style_t GetMarkerStyleBase(Style_t style)
Internal helper function that returns the corresponding marker style with line width 1 for the given ...
@ kShapeTriangles
Definition TAttMarker.h:48
@ kShapeFilledArea
Definition TAttMarker.h:48
@ kShapeFilledCircle
Definition TAttMarker.h:48
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Definition TVirtualPad.h:51