ROOT
v6-32
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
"
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:125
ROOT::Experimental::RDrawable::RDisplayContext::GetCanvas
RCanvas * GetCanvas() const
Definition
RDrawable.hxx:160
ROOT::Experimental::RDrawable::RDisplayContext::GetLastVersion
Version_t GetLastVersion() const
Definition
RDrawable.hxx:165
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:112
ROOT::Experimental::RPad::Display
std::unique_ptr< RDisplayItem > Display(const RDisplayContext &) final
Create pad display item.
Definition
RPad.cxx:27
ROOT::Experimental::RPad::fPos
RPadPos fPos
pad position
Definition
RPad.hxx:32
ROOT::Experimental::RPad::~RPad
~RPad() override
Destructor to have a vtable.
ROOT::Experimental::RPad::fSize
RPadExtent fSize
pad size
Definition
RPad.hxx:33
ROOT::Experimental
Definition
RDirectory.hxx:30
graf2d
gpadv7
src
RPad.cxx
ROOT v6-32 - Reference Guide Generated on Fri Nov 1 2024 15:07:23 (GVA Time) using Doxygen 1.9.8