ROOT
v6-22
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
"
12
#include <
ROOT/RPadDisplayItem.hxx
>
13
#include <
ROOT/RCanvas.hxx
>
14
15
#include <cassert>
16
#include <limits>
17
18
using namespace
ROOT::Experimental
;
19
20
/////////////////////////////////////////////////////////////////////////////////////////////////
21
22
ROOT::Experimental::RPad::~RPad
() =
default
;
23
24
/////////////////////////////////////////////////////////////////////////////////////////////////
25
/// Create pad display item
26
27
std::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
}
RCanvas.hxx
RLogger.hxx
RPadDisplayItem.hxx
RPad.hxx
ROOT::Experimental::RDrawable::RDisplayContext
Definition:
RDrawable.hxx:117
ROOT::Experimental::RDrawable::RDisplayContext::GetCanvas
RCanvas * GetCanvas() const
Definition:
RDrawable.hxx:152
ROOT::Experimental::RDrawable::RDisplayContext::GetLastVersion
Version_t GetLastVersion() const
Definition:
RDrawable.hxx:157
ROOT::Experimental::RPadBase::DisplayPrimitives
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:136
ROOT::Experimental::RPad::~RPad
virtual ~RPad()
Destructor to have a vtable.
ROOT::Experimental::RPad::fPos
RPadPos fPos
pad position
Definition:
RPad.hxx:30
ROOT::Experimental::RPad::fSize
RPadExtent fSize
pad size
Definition:
RPad.hxx:31
ROOT::Experimental
Definition:
RDirectory.hxx:30
graf2d
gpadv7
src
RPad.cxx
ROOT v6-22 - Reference Guide Generated on Fri Apr 1 2022 11:50:55 (GVA Time) using Doxygen 1.9.4