Logo ROOT  
Reference Guide
ROOT::Experimental::RFrame Class Reference

Holds a user coordinate system with a palette.

Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Date
2017-09-26
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

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...
 
RPadUserAxisBaseGetUserAxis (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< RDisplayItemDisplay () const
 Creates display item for drawable By default item contains drawble data itself. More...
 
RAttrMapGetAttrMap ()
 
const RAttrMapGetAttrMap () 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>

Inheritance diagram for ROOT::Experimental::RFrame:
[legend]

Constructor & Destructor Documentation

◆ RFrame() [1/2]

ROOT::Experimental::RFrame::RFrame ( )
inline

Definition at line 43 of file RFrame.hxx.

◆ RFrame() [2/2]

ROOT::Experimental::RFrame::RFrame ( std::vector< std::unique_ptr< RPadUserAxisBase > > &&  coords)
explicit

Constructor taking user coordinate system, position and extent.

Definition at line 16 of file RFrame.cxx.

Member Function Documentation

◆ GetNDimensions()

size_t ROOT::Experimental::RFrame::GetNDimensions ( ) const
inline

Get the number of axes.

Definition at line 55 of file RFrame.hxx.

◆ GetUserAxis()

RPadUserAxisBase & ROOT::Experimental::RFrame::GetUserAxis ( size_t  dimension) const
inline

Get the current user coordinate system for a given dimension.

Definition at line 58 of file RFrame.hxx.

◆ GrowToDimensions()

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.

◆ SetUserAxis()

void ROOT::Experimental::RFrame::SetUserAxis ( std::vector< std::unique_ptr< RPadUserAxisBase > > &&  axes)
inline

Set the user coordinate system.

Definition at line 61 of file RFrame.hxx.

◆ UserToNormal()

std::array< RPadLength::Normal, 2 > ROOT::Experimental::RFrame::UserToNormal ( const std::array< RPadLength::User, 2 > &  pos) const
inline

Convert user coordinates to normal coordinates.

Definition at line 64 of file RFrame.hxx.

Member Data Documentation

◆ fPalette

RPalette ROOT::Experimental::RFrame::fPalette
private

Palette used to visualize user coordinates.

Definition at line 39 of file RFrame.hxx.

◆ fUserCoord

std::vector<std::unique_ptr<RPadUserAxisBase> > ROOT::Experimental::RFrame::fUserCoord
private

Mapping of user coordinates to normal coordinates, one entry per dimension.

Definition at line 36 of file RFrame.hxx.

Libraries for ROOT::Experimental::RFrame:
[legend]

The documentation for this class was generated from the following files: