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-2000, 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
16#include "Rtypes.h"
17
18class TColorNumber;
19
21
22protected:
23 Color_t fMarkerColor; ///< Marker color
24 Style_t fMarkerStyle; ///< Marker style
25 Size_t fMarkerSize; ///< Marker size
26
27public:
28 TAttMarker();
30 virtual ~TAttMarker();
31 void Copy(TAttMarker &attmarker) const;
32 virtual Color_t GetMarkerColor() const {return fMarkerColor;} ///< Return the marker color
33 virtual Style_t GetMarkerStyle() const {return fMarkerStyle;} ///< Return the marker style
34 virtual Size_t GetMarkerSize() const {return fMarkerSize;} ///< Return the marker size
35 virtual void Modify();
36 virtual void ResetAttMarker(Option_t *toption="");
37 virtual void SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1);
38 virtual void SetMarkerAttributes(); // *MENU*
39 virtual void SetMarkerColor(Color_t mcolor=1) { fMarkerColor = mcolor;} ///< Set the marker color
41 virtual void SetMarkerStyle(Style_t mstyle=1) { fMarkerStyle = mstyle;} ///< Set the marker style
42 /// Set the marker size.
43 /// Note that the marker styles number 1 6 and 7 (the dots), cannot be scaled.
44 /// They are meant to be very fast to draw and are always drawn with the same number of pixels;
45 /// therefore this method does not apply on them.
47
50
52
53 ClassDef(TAttMarker,3); //Marker attributes
54};
55
70
71#endif
72
short Style_t
Definition RtypesCore.h:82
int Int_t
Definition RtypesCore.h:45
short Color_t
Definition RtypesCore.h:85
float Size_t
Definition RtypesCore.h:89
short Width_t
Definition RtypesCore.h:84
float Float_t
Definition RtypesCore.h:57
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:342
EMarkerStyle
Definition TAttMarker.h:56
@ kOpenDoubleDiamond
Definition TAttMarker.h:66
@ kStar
Definition TAttMarker.h:56
@ kFullDotLarge
Definition TAttMarker.h:57
@ kFullDoubleDiamond
Definition TAttMarker.h:66
@ kOpenFourTrianglesX
Definition TAttMarker.h:65
@ kOpenSquare
Definition TAttMarker.h:59
@ kFullThreeTriangles
Definition TAttMarker.h:64
@ kOpenTriangleUp
Definition TAttMarker.h:60
@ kFourSquaresPlus
Definition TAttMarker.h:69
@ kFullDotSmall
Definition TAttMarker.h:57
@ kFullDotMedium
Definition TAttMarker.h:57
@ kOpenTriangleDown
Definition TAttMarker.h:61
@ kOpenThreeTriangles
Definition TAttMarker.h:63
@ kFullCrossX
Definition TAttMarker.h:68
@ kFullFourTrianglesX
Definition TAttMarker.h:65
@ kFullTriangleDown
Definition TAttMarker.h:59
@ kCircle
Definition TAttMarker.h:56
@ kOpenCrossX
Definition TAttMarker.h:68
@ kFullFourTrianglesPlus
Definition TAttMarker.h:67
@ kFullSquare
Definition TAttMarker.h:58
@ kOpenSquareDiagonal
Definition TAttMarker.h:63
@ kFullStar
Definition TAttMarker.h:61
@ kOpenDiamond
Definition TAttMarker.h:60
@ kFullTriangleUp
Definition TAttMarker.h:58
@ kOpenDiamondCross
Definition TAttMarker.h:62
@ kOpenFourTrianglesPlus
Definition TAttMarker.h:67
@ kMultiply
Definition TAttMarker.h:56
@ kPlus
Definition TAttMarker.h:56
@ kOctagonCross
Definition TAttMarker.h:64
@ kFullCircle
Definition TAttMarker.h:58
@ kDot
Definition TAttMarker.h:56
@ kOpenCross
Definition TAttMarker.h:60
@ kFourSquaresX
Definition TAttMarker.h:68
@ kOpenCircle
Definition TAttMarker.h:59
@ kFullCross
Definition TAttMarker.h:62
@ kOpenStar
Definition TAttMarker.h:61
@ kFullDiamond
Definition TAttMarker.h:62
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t toption
Option_t Option_t style
char name[80]
Definition TGX11.cxx:110
Marker Attributes class.
Definition TAttMarker.h:20
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:33
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Definition TAttMarker.h:39
virtual Color_t GetMarkerColor() const
Return the marker color.
Definition TAttMarker.h:32
Color_t fMarkerColor
Marker color.
Definition TAttMarker.h:23
virtual Size_t GetMarkerSize() const
Return the marker size.
Definition TAttMarker.h:34
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.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
Definition TAttMarker.h:41
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.
Definition TAttMarker.h:46
virtual void SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
Set a transparent marker color.
Size_t fMarkerSize
Marker size.
Definition TAttMarker.h:25
Style_t fMarkerStyle
Marker style.
Definition TAttMarker.h:24
static Style_t GetMarkerStyleBase(Style_t style)
Internal helper function that returns the corresponding marker style with line width 1 for the given ...