ROOT  6.06/09
Reference Guide
THistDrawOptions.h
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 
20 namespace Internal {
21 template <int DIMENSION>
23 
24 /// Specialization containing 1D hist drawing options.
25 template <>
27  enum EOpts {
31  };
32 };
33 
34 
35 /// Specialization containing 2D hist drawing options.
36 template <>
38  enum EOpts {
41  kLego
42  };
43 };
44 
45 /// Specialization containing 3D hist drawing options.
46 template <>
48  enum EOpts {
50  kIso
51  };
52 };
53 
54 }
55 
56 /** \class THistDrawOptions
57  Drawing options for a histogram with DIMENSIONS
58  */
59 template<int DIMENSION>
61  int fOpts;
62 public:
63  THistDrawOptions() = default;
64  constexpr THistDrawOptions(typename Internal::THistDrawOptionsEnum<DIMENSION>::EOpts opt): fOpts(2 >> opt) {}
65 };
66 
67 namespace Hist {
70 }
71 }
72 
73 
74 #endif
constexpr THistDrawOptions(typename Internal::THistDrawOptionsEnum< DIMENSION >::EOpts opt)
Namespace for new ROOT classes and functions.
Definition: ROOT.py:1
Definition: Buttons.h:30
static constexpr const THistDrawOptions< 2 > text(Internal::THistDrawOptionsEnum< 2 >::kText)
static constexpr const THistDrawOptions< 2 > box(Internal::THistDrawOptionsEnum< 2 >::kBox)
Drawing options for a histogram with DIMENSIONS.