Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
18using namespace ROOT::Experimental;
19
20/////////////////////////////////////////////////////////////////////////////////////////////////
21
23
24/////////////////////////////////////////////////////////////////////////////////////////////////
25/// Create pad display item
26
27std::unique_ptr<RDisplayItem> RPad::Display(const RDisplayContext &ctxt)
28{
29 auto paditem = std::make_unique<RPadDisplayItem>();
30
31 RDisplayContext subctxt(ctxt.GetCanvas(), this, ctxt.GetLastVersion());
32
33 DisplayPrimitives(*paditem.get(), subctxt);
34
35 paditem->SetPadPosSize(&fPos, &fSize);
36
37 return paditem;
38}
void DisplayPrimitives(RPadBaseDisplayItem &paditem, RDisplayContext &ctxt)
Create display items for all primitives in the pad Each display item gets its special id,...
Definition RPadBase.cxx:112
std::unique_ptr< RDisplayItem > Display(const RDisplayContext &) final
Create pad display item.
Definition RPad.cxx:27
RPadPos fPos
pad position
Definition RPad.hxx:32
~RPad() override
Destructor to have a vtable.
RPadExtent fSize
pad size
Definition RPad.hxx:33