Logo ROOT  
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
10
11#include "ROOT/RDrawable.hxx"
12#include "ROOT/RCanvas.hxx"
13
14using namespace ROOT::Experimental;
15
16
17/////////////////////////////////////////////////////////////////////////////
18/// destructor, pin vtable
19
20RDrawableReply::~RDrawableReply() = default;
21
22/////////////////////////////////////////////////////////////////////////////
23/// destructor, pin vtable
24
25RDrawableRequest::~RDrawableRequest() = default;
26
27
28/////////////////////////////////////////////////////////////////////////////
29/// Execute method of the drawable
30
31std::unique_ptr<RDrawableReply> RDrawableExecRequest::Process()
32{
33 if (!exec.empty() && GetContext().GetDrawable())
35
36 if (GetContext().GetCanvas())
38
39 return nullptr;
40}
const RDrawable::RDisplayContext & GetContext() const
virtual void Execute(const std::string &)
Definition: RDrawable.cxx:40
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