Logo ROOT  
Reference Guide
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"
13#include <ROOT/RCanvas.hxx>
14
15#include <cassert>
16#include <limits>
17
18/////////////////////////////////////////////////////////////////////////////////////////////////
19
21
22/////////////////////////////////////////////////////////////////////////////////////////////////
23/// Create pad display item
24
25std::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
void DisplayPrimitives(RPadBaseDisplayItem &paditem) const
Create display items for all primitives in the pad Each display item gets its special id,...
Definition: RPadBase.cxx:112
virtual ~RPad()
Destructor to have a vtable.
RPadPos fPos
pad position
Definition: RPad.hxx:30
std::unique_ptr< RDisplayItem > Display() const final
Create pad display item.
Definition: RPad.cxx:25
RPadExtent fSize
pad size
Definition: RPad.hxx:31