ROOT
v6-22
Reference Guide
RDrawableRequest.cxx
Go to the documentation of this file.
1
/*************************************************************************
2
* Copyright (C) 1995-2020, 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/RDrawableRequest.hxx
"
10
11
#include "
ROOT/RDrawable.hxx
"
12
#include "
ROOT/RCanvas.hxx
"
13
14
using namespace
ROOT::Experimental
;
15
16
17
/////////////////////////////////////////////////////////////////////////////
18
/// destructor, pin vtable
19
20
RDrawableReply::~RDrawableReply() =
default
;
21
22
/////////////////////////////////////////////////////////////////////////////
23
/// destructor, pin vtable
24
25
RDrawableRequest::~RDrawableRequest() =
default
;
26
27
28
/////////////////////////////////////////////////////////////////////////////
29
/// Execute method of the drawable
30
31
std::unique_ptr<RDrawableReply> RDrawableExecRequest::Process()
32
{
33
if
(!
exec
.empty() &&
GetContext
().
GetDrawable
())
34
GetContext
().
GetDrawable
()->
Execute
(
exec
);
35
36
if
(
GetContext
().GetCanvas())
37
GetContext
().
GetCanvas
()->
Modified
();
38
39
return
nullptr
;
40
}
RCanvas.hxx
RDrawableRequest.hxx
RDrawable.hxx
ROOT::Experimental::RCanvas::Modified
void Modified()
Definition:
RCanvas.hxx:129
ROOT::Experimental::RDrawableExecRequest::exec
std::string exec
that to execute
Definition:
RDrawableRequest.hxx:90
ROOT::Experimental::RDrawableRequest::GetContext
const RDrawable::RDisplayContext & GetContext() const
Definition:
RDrawableRequest.hxx:64
ROOT::Experimental::RDrawable::RDisplayContext::GetCanvas
RCanvas * GetCanvas() const
Definition:
RDrawable.hxx:152
ROOT::Experimental::RDrawable::RDisplayContext::GetDrawable
RDrawable * GetDrawable() const
Definition:
RDrawable.hxx:154
ROOT::Experimental::RDrawable::Execute
virtual void Execute(const std::string &)
Definition:
RDrawable.cxx:40
ROOT::Experimental
Definition:
RDirectory.hxx:30
ROOT::Experimental::GetDrawable
auto GetDrawable(const std::shared_ptr< DRAWABLE > &drawable)
Central method to insert drawable in list of pad primitives By default drawable placed as is.
Definition:
RDrawable.hxx:216
graf2d
gpadv7
src
RDrawableRequest.cxx
ROOT v6-22 - Reference Guide Generated on Fri Apr 1 2022 11:50:55 (GVA Time) using Doxygen 1.9.4