|
ROOT 6.12/07 Reference Guide |
Public Types | |
| using | Primitives_t = std::vector< std::unique_ptr< TDrawable > > |
Public Member Functions | |
| virtual | ~TPadBase () |
| std::vector< std::vector< TPad * > > | Divide (int nHoriz, int nVert, const TPadExtent &padding={}) |
| Divide this pad into a grid of subpad with padding in between. More... | |
| template<class T > | |
| auto & | Draw (const std::shared_ptr< T > &what) |
| Add something to be painted. More... | |
| template<class T > | |
| auto & | Draw (std::unique_ptr< T > &&what) |
| Add something to be painted. The pad claims ownership. More... | |
| template<class T , class = typename std::enable_if<!ROOT::TypeTraits::IsSmartOrDumbPtr<T>::value>::type> | |
| auto & | Draw (const T &what) |
| Add a copy of something to be painted. More... | |
| virtual const TCanvas & | GetCanvas () const =0 |
| Access to the top-most canvas, if any (const version). More... | |
| virtual TCanvas & | GetCanvas ()=0 |
| Access to the top-most canvas, if any (non-const version). More... | |
| const Primitives_t & | GetPrimitives () const |
| Get the elements contained in the canvas. More... | |
| virtual std::array< TPadCoord::Normal, 2 > | PixelsToNormal (const std::array< TPadCoord::Pixel, 2 > &pos) const =0 |
Convert a Pixel position to Canvas-normalized positions. More... | |
| std::array< TPadCoord::Normal, 2 > | UserToNormal (const std::array< TPadCoord::User, 2 > &pos) const |
| Convert user coordinates to normal coordinates. More... | |
| void | Wipe () |
| Remove an object from the list of primitives. More... | |
Protected Member Functions | |
| TPadBase ()=default | |
| Allow derived classes to default construct a TPadBase. More... | |
Private Member Functions | |
| TPadBase (const TPadBase &)=delete | |
| Disable copy construction. More... | |
| template<class DRAWABLE > | |
| auto & | AddDrawable (std::unique_ptr< DRAWABLE > &&uPtr) |
Adds a DRAWABLE to fPrimitives, returning the drawing options as given by DRAWABLE::Options(). More... | |
| TPadBase & | operator= (const TPadBase &)=delete |
| Disable assignment. More... | |
Private Attributes | |
| std::unique_ptr< TFrame > | fFrame |
| TFrame with user coordinate system, if used by this pad. More... | |
| Primitives_t | fPrimitives |
| Content of the pad. More... | |
#include <ROOT/TPad.hxx>
| using ROOT::Experimental::TPadBase::Primitives_t = std::vector<std::unique_ptr<TDrawable> > |
|
privatedelete |
Disable copy construction.
|
protecteddefault |
Allow derived classes to default construct a TPadBase.
|
virtualdefault |
|
inlineprivate |
| std::vector< std::vector< ROOT::Experimental::TPad * > > ROOT::Experimental::TPadBase::Divide | ( | int | nHoriz, |
| int | nVert, | ||
| const TPadExtent & | padding = {} |
||
| ) |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Access to the top-most canvas, if any (const version).
Implemented in ROOT::Experimental::TPad, and ROOT::Experimental::TCanvas.
|
pure virtual |
Access to the top-most canvas, if any (non-const version).
Implemented in ROOT::Experimental::TPad, and ROOT::Experimental::TCanvas.
|
inline |
Disable assignment.
|
pure virtual |
Convert a Pixel position to Canvas-normalized positions.
Implemented in ROOT::Experimental::TPad, and ROOT::Experimental::TCanvas.
|
inline |
|
inline |
|
private |
|
private |