Logo ROOT   6.08/07
Reference Guide
THistDrawOptions.hxx
Go to the documentation of this file.
1 /// \file ROOT/THistDrawOptions.h
2 /// \ingroup Hist ROOT7
3 /// \author Axel Naumann <axel@cern.ch>
4 /// \date 2015-09-04
5 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!
6 
7 /*************************************************************************
8  * Copyright (C) 1995-2015, Rene Brun and Fons Rademakers. *
9  * All rights reserved. *
10  * *
11  * For the licensing terms see $ROOTSYS/LICENSE. *
12  * For the list of contributors see $ROOTSYS/README/CREDITS. *
13  *************************************************************************/
14 
15 #ifndef ROOT7_THistDrawOptions
16 #define ROOT7_THistDrawOptions
17 
18 namespace ROOT {
19 namespace Experimental {
20 
21 namespace Internal {
22 
23 template <int DIMENSION>
25 
26 /// Specialization containing 1D hist drawing options.
27 template <>
29  enum EOpts {
33  };
34 };
35 
36 
37 /// Specialization containing 2D hist drawing options.
38 template <>
40  enum EOpts {
43  kLego
44  };
45 };
46 
47 /// Specialization containing 3D hist drawing options.
48 template <>
50  enum EOpts {
52  kIso
53  };
54 };
55 
56 }
57 
58 /** \class THistDrawOptions
59  Drawing options for a histogram with DIMENSIONS
60  */
61 template<int DIMENSION>
63  int fOpts;
64 public:
65  THistDrawOptions() = default;
66  constexpr THistDrawOptions(typename Internal::THistDrawOptionsEnum<DIMENSION>::EOpts opt): fOpts(2 >> opt) {}
67 };
68 
69 namespace Hist {
72 }
73 
74 } // namespace Experimental
75 } // namespace ROOT
76 
77 
78 #endif
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
Definition: StringConv.hxx:21
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Definition: fillpatterns.C:1
Definition: Buttons.h:30
static constexpr const THistDrawOptions< 2 > text(Internal::THistDrawOptionsEnum< 2 >::kText)
constexpr THistDrawOptions(typename Internal::THistDrawOptionsEnum< DIMENSION >::EOpts opt)
Drawing options for a histogram with DIMENSIONS.