ROOT
6.16/01
Reference Guide
graf2d
gpadv7
v7
src
RFrame.cxx
Go to the documentation of this file.
1
/// \file RFrame.cxx
2
/// \ingroup Gpad ROOT7
3
/// \author Axel Naumann <axel@cern.ch>
4
/// \date 2017-09-26
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
#include "
ROOT/RFrame.hxx
"
17
18
#include "
ROOT/TLogger.hxx
"
19
#include "
ROOT/RPadUserAxis.hxx
"
20
21
#include <cassert>
22
23
ROOT::Experimental::RFrame::RFrame
(std::vector<std::unique_ptr<RPadUserAxisBase>> &&coords,
const
DrawingOpts
&opts)
24
: fUserCoord(
std
::move(coords)), fPalette(RPalette::GetPalette(
"default"
)), fPos(opts.fPos.Get()), fSize(opts.fSize.Get())
25
{}
26
27
void
ROOT::Experimental::RFrame::GrowToDimensions
(
size_t
nDimensions)
28
{
29
std::size_t oldSize = fUserCoord.size();
30
if
(oldSize >= nDimensions)
31
return
;
32
fUserCoord.resize(nDimensions);
33
for
(std::size_t idx = oldSize; idx < nDimensions; ++idx)
34
if
(!fUserCoord[idx])
35
fUserCoord[idx].reset(
new
RPadCartesianUserAxis
);
36
}
RFrame.hxx
RPadUserAxis.hxx
TLogger.hxx
ROOT::Experimental::RFrame::DrawingOpts
Definition:
RFrame.hxx:37
ROOT::Experimental::RFrame::GrowToDimensions
void GrowToDimensions(size_t nDimensions)
Create nDimensions default axes for the user coordinate system.
Definition:
RFrame.cxx:27
ROOT::Experimental::RFrame::RFrame
RFrame()
Definition:
RFrame.hxx:60
ROOT::Experimental::RPadCartesianUserAxis
Definition:
RPadUserAxis.hxx:103
std
STL namespace.