Holds a user coordinate system with a palette.
Definition at line 31 of file RFrame.hxx.
Public Member Functions | |
RFrame () | |
RFrame (std::vector< std::unique_ptr< RPadUserAxisBase > > &&coords) | |
Constructor taking user coordinate system, position and extent. More... | |
size_t | GetNDimensions () const |
Get the number of axes. More... | |
RPadUserAxisBase & | GetUserAxis (size_t dimension) const |
Get the current user coordinate system for a given dimension. More... | |
void | GrowToDimensions (size_t nDimensions) |
Create nDimensions default axes for the user coordinate system. More... | |
void | SetUserAxis (std::vector< std::unique_ptr< RPadUserAxisBase > > &&axes) |
Set the user coordinate system. More... | |
std::array< RPadLength::Normal, 2 > | UserToNormal (const std::array< RPadLength::User, 2 > &pos) const |
Convert user coordinates to normal coordinates. More... | |
Public Member Functions inherited from ROOT::Experimental::RDrawable | |
RDrawable (const std::string &type) | |
virtual | ~RDrawable () |
void | ClearStyle () |
virtual void | Execute (const std::string &) |
const std::string & | GetCssClass () const |
const std::string & | GetCssType () const |
const std::string & | GetId () const |
virtual void | PopulateMenu (RMenuItems &) |
Method can be used to provide menu items for the drawn object. More... | |
void | SetCssClass (const std::string &cl) |
void | SetId (const std::string &id) |
virtual void | UseStyle (const std::shared_ptr< RStyle > &style) |
Private Attributes | |
RPalette | fPalette |
Palette used to visualize user coordinates. More... | |
std::vector< std::unique_ptr< RPadUserAxisBase > > | fUserCoord |
Mapping of user coordinates to normal coordinates, one entry per dimension. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ROOT::Experimental::RDrawable | |
virtual void | CollectShared (Internal::RIOSharedVector_t &) |
virtual std::unique_ptr< RDisplayItem > | Display () const |
Creates display item for drawable By default item contains drawble data itself. More... | |
RAttrMap & | GetAttrMap () |
const RAttrMap & | GetAttrMap () const |
bool | MatchSelector (const std::string &selector) const |
Preliminary method which checks if drawable matches with given selector Following selector are allowed: "type" or "#id" or ".class_name" Here type is drawable kind like 'rect' or 'pad' id is drawable identifier, specified with RDrawable::SetId() method class_name is drawable class name, specified with RDrawable::SetCssClass() method. More... | |
#include <ROOT/RFrame.hxx>
|
inline |
Definition at line 43 of file RFrame.hxx.
|
explicit |
Constructor taking user coordinate system, position and extent.
Definition at line 16 of file RFrame.cxx.
|
inline |
Get the number of axes.
Definition at line 55 of file RFrame.hxx.
|
inline |
Get the current user coordinate system for a given dimension.
Definition at line 58 of file RFrame.hxx.
void ROOT::Experimental::RFrame::GrowToDimensions | ( | size_t | nDimensions | ) |
Create nDimensions
default axes for the user coordinate system.
Definition at line 22 of file RFrame.cxx.
|
inline |
Set the user coordinate system.
Definition at line 61 of file RFrame.hxx.
|
inline |
Convert user coordinates to normal coordinates.
Definition at line 64 of file RFrame.hxx.
|
private |
Palette used to visualize user coordinates.
Definition at line 39 of file RFrame.hxx.
|
private |
Mapping of user coordinates to normal coordinates, one entry per dimension.
Definition at line 36 of file RFrame.hxx.