Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
RPad.cxx
Go to the documentation of this file.
1 /*************************************************************************
2  * Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
3  * All rights reserved. *
4  * *
5  * For the licensing terms see $ROOTSYS/LICENSE. *
6  * For the list of contributors see $ROOTSYS/README/CREDITS. *
7  *************************************************************************/
8 
9 #include "ROOT/RPad.hxx"
10 
11 #include "ROOT/RLogger.hxx"
12 #include <ROOT/RPadDisplayItem.hxx>
13 #include <ROOT/RCanvas.hxx>
14 
15 #include <cassert>
16 #include <limits>
17 
18 /////////////////////////////////////////////////////////////////////////////////////////////////
19 
20 ROOT::Experimental::RPad::~RPad() = default;
21 
22 /////////////////////////////////////////////////////////////////////////////////////////////////
23 /// Create pad display item
24 
25 std::unique_ptr<ROOT::Experimental::RDisplayItem> ROOT::Experimental::RPad::Display() const
26 {
27  auto paditem = std::make_unique<RPadDisplayItem>();
28 
29  DisplayPrimitives(*paditem.get());
30 
31  paditem->SetPadPosSize(&fPos, &fSize);
32 
33  return paditem;
34 }
35