Logo ROOT   6.21/01
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 35 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...
 
RAttrLineAttrBorder ()
 
RAttrFillAttrFill ()
 
RAttrAxisAttrX ()
 
RAttrAxisAttrY ()
 
RAttrAxisAttrZ ()
 
const RAttrLineGetAttrBorder () const
 
const RAttrFillGetAttrFill () const
 
const RAttrAxisGetAttrX () const
 
const RAttrAxisGetAttrY () const
 
const RAttrAxisGetAttrZ () const
 
const RAttrMarginsGetMargins () const
 
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...
 
RAttrMarginsMargins ()
 
RFrameSetAttrBorder (const RAttrLine &border)
 
RFrameSetAttrFill (const RAttrFill &fill)
 
RFrameSetAttrX (const RAttrAxis &axis)
 
RFrameSetAttrY (const RAttrAxis &axis)
 
RFrameSetAttrZ (const RAttrAxis &axis)
 
RFrameSetMargins (const RAttrMargins &margins)
 
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

RAttrLine fAttrBorder {this, "border_"}
 ! More...
 
RAttrFill fAttrFill {this, "fill_"}
 ! More...
 
RAttrAxis fAttrX {this, "x_"}
 ! More...
 
RAttrAxis fAttrY {this, "y_"}
 ! More...
 
RAttrAxis fAttrZ {this, "z_"}
 ! More...
 
RAttrMargins fMargins {this, "margin_"}
 ! More...
 
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 drawable 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 54 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

◆ AttrBorder()

RAttrLine& ROOT::Experimental::RFrame::AttrBorder ( )
inline

Definition at line 68 of file RFrame.hxx.

◆ AttrFill()

RAttrFill& ROOT::Experimental::RFrame::AttrFill ( )
inline

Definition at line 72 of file RFrame.hxx.

◆ AttrX()

RAttrAxis& ROOT::Experimental::RFrame::AttrX ( )
inline

Definition at line 76 of file RFrame.hxx.

◆ AttrY()

RAttrAxis& ROOT::Experimental::RFrame::AttrY ( )
inline

Definition at line 80 of file RFrame.hxx.

◆ AttrZ()

RAttrAxis& ROOT::Experimental::RFrame::AttrZ ( )
inline

Definition at line 84 of file RFrame.hxx.

◆ GetAttrBorder()

const RAttrLine& ROOT::Experimental::RFrame::GetAttrBorder ( ) const
inline

Definition at line 66 of file RFrame.hxx.

◆ GetAttrFill()

const RAttrFill& ROOT::Experimental::RFrame::GetAttrFill ( ) const
inline

Definition at line 70 of file RFrame.hxx.

◆ GetAttrX()

const RAttrAxis& ROOT::Experimental::RFrame::GetAttrX ( ) const
inline

Definition at line 74 of file RFrame.hxx.

◆ GetAttrY()

const RAttrAxis& ROOT::Experimental::RFrame::GetAttrY ( ) const
inline

Definition at line 78 of file RFrame.hxx.

◆ GetAttrZ()

const RAttrAxis& ROOT::Experimental::RFrame::GetAttrZ ( ) const
inline

Definition at line 82 of file RFrame.hxx.

◆ GetMargins()

const RAttrMargins& ROOT::Experimental::RFrame::GetMargins ( ) const
inline

Definition at line 62 of file RFrame.hxx.

◆ GetNDimensions()

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

Get the number of axes.

Definition at line 92 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 95 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.

◆ Margins()

RAttrMargins& ROOT::Experimental::RFrame::Margins ( )
inline

Definition at line 64 of file RFrame.hxx.

◆ SetAttrBorder()

RFrame& ROOT::Experimental::RFrame::SetAttrBorder ( const RAttrLine border)
inline

Definition at line 67 of file RFrame.hxx.

◆ SetAttrFill()

RFrame& ROOT::Experimental::RFrame::SetAttrFill ( const RAttrFill fill)
inline

Definition at line 71 of file RFrame.hxx.

◆ SetAttrX()

RFrame& ROOT::Experimental::RFrame::SetAttrX ( const RAttrAxis axis)
inline

Definition at line 75 of file RFrame.hxx.

◆ SetAttrY()

RFrame& ROOT::Experimental::RFrame::SetAttrY ( const RAttrAxis axis)
inline

Definition at line 79 of file RFrame.hxx.

◆ SetAttrZ()

RFrame& ROOT::Experimental::RFrame::SetAttrZ ( const RAttrAxis axis)
inline

Definition at line 83 of file RFrame.hxx.

◆ SetMargins()

RFrame& ROOT::Experimental::RFrame::SetMargins ( const RAttrMargins margins)
inline

Definition at line 63 of file RFrame.hxx.

◆ SetUserAxis()

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

Set the user coordinate system.

Definition at line 98 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 101 of file RFrame.hxx.

Member Data Documentation

◆ fAttrBorder

RAttrLine ROOT::Experimental::RFrame::fAttrBorder {this, "border_"}
private

!

Definition at line 40 of file RFrame.hxx.

◆ fAttrFill

RAttrFill ROOT::Experimental::RFrame::fAttrFill {this, "fill_"}
private

!

Definition at line 41 of file RFrame.hxx.

◆ fAttrX

RAttrAxis ROOT::Experimental::RFrame::fAttrX {this, "x_"}
private

!

Definition at line 42 of file RFrame.hxx.

◆ fAttrY

RAttrAxis ROOT::Experimental::RFrame::fAttrY {this, "y_"}
private

!

Definition at line 43 of file RFrame.hxx.

◆ fAttrZ

RAttrAxis ROOT::Experimental::RFrame::fAttrZ {this, "z_"}
private

!

Definition at line 44 of file RFrame.hxx.

◆ fMargins

RAttrMargins ROOT::Experimental::RFrame::fMargins {this, "margin_"}
private

!

Definition at line 39 of file RFrame.hxx.

◆ fPalette

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

Palette used to visualize user coordinates.

Definition at line 50 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 47 of file RFrame.hxx.


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