Logo ROOT   6.12/07
Reference Guide
TPadUserCoordBase.hxx
Go to the documentation of this file.
1 /// \file ROOT/TPadUserCoord.hxx
2 /// \ingroup Gpad ROOT7
3 /// \author Axel Naumann <axel@cern.ch>
4 /// \date 2017-07-15
5 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
6 /// is welcome!
7 
8 /*************************************************************************
9  * Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
10  * All rights reserved. *
11  * *
12  * For the licensing terms see $ROOTSYS/LICENSE. *
13  * For the list of contributors see $ROOTSYS/README/CREDITS. *
14  *************************************************************************/
15 
16 #ifndef ROOT7_TPadUserCoordBase
17 #define ROOT7_TPadUserCoordBase
18 
19 #include <ROOT/TPadCoord.hxx>
20 
21 #include <array>
22 
23 namespace ROOT {
24 namespace Experimental {
25 
26 namespace Detail {
27 
28 /** \class ROOT::Experimental::Internal::Detail::TPadUserCoordBase
29  Base class for user coordinates (e.g. for histograms) used by `TPad` and `TCanvas`.
30  */
31 
33 private:
34  /// Disable copy construction.
35  TPadUserCoordBase(const TPadUserCoordBase &) = delete;
36 
37  /// Disable assignment.
39 
40 protected:
41  /// Allow derived classes to default construct a TPadUserCoordBase.
42  TPadUserCoordBase() = default;
43 
44 public:
45  virtual ~TPadUserCoordBase();
46 
47  /// Convert user coordinates to normal coordinates.
48  virtual std::array<TPadCoord::Normal, 2> ToNormal(const std::array<TPadCoord::User, 2> &) const = 0;
49 };
50 
51 } // namespace Detail
52 } // namespace Experimental
53 } // namespace ROOT
54 
55 #endif
virtual std::array< TPadCoord::Normal, 2 > ToNormal(const std::array< TPadCoord::User, 2 > &) const =0
Convert user coordinates to normal coordinates.
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
TPadUserCoordBase & operator=(const TPadUserCoordBase &)=delete
Disable assignment.
TPadUserCoordBase()=default
Allow derived classes to default construct a TPadUserCoordBase.