Logo ROOT   6.16/01
Reference Guide
List of all members | Classes | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::RFrame Class Reference

Holds a user coordinate system with a palette.

Definition at line 35 of file RFrame.hxx.

Classes

class  DrawingOpts
 

Public Member Functions

 RFrame ()
 
 RFrame (const DrawingOpts &opts)
 
 RFrame (std::vector< std::unique_ptr< RPadUserAxisBase > > &&coords, const DrawingOpts &opts)
 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...
 

Private Attributes

RPalette fPalette
 Palette used to visualize user coordinates. More...
 
RPadPos fPos
 Offset with respect to parent RPad. More...
 
RPadExtent fSize
 Size of the frame, in parent RPad coordinates. More...
 
std::vector< std::unique_ptr< RPadUserAxisBase > > fUserCoord
 Mapping of user coordinates to normal coordinates, one entry per dimension. More...
 

#include <ROOT/RFrame.hxx>

Constructor & Destructor Documentation

◆ RFrame() [1/3]

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

Definition at line 60 of file RFrame.hxx.

◆ RFrame() [2/3]

ROOT::Experimental::RFrame::RFrame ( std::vector< std::unique_ptr< RPadUserAxisBase > > &&  coords,
const DrawingOpts opts 
)
explicit

Constructor taking user coordinate system, position and extent.

Definition at line 23 of file RFrame.cxx.

◆ RFrame() [3/3]

ROOT::Experimental::RFrame::RFrame ( const DrawingOpts opts)
inlineexplicit

Definition at line 69 of file RFrame.hxx.

Member Function Documentation

◆ GetNDimensions()

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

Get the number of axes.

Definition at line 77 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 80 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 27 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 83 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 86 of file RFrame.hxx.

Member Data Documentation

◆ fPalette

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

Palette used to visualize user coordinates.

Definition at line 50 of file RFrame.hxx.

◆ fPos

RPadPos ROOT::Experimental::RFrame::fPos
private

Offset with respect to parent RPad.

Definition at line 53 of file RFrame.hxx.

◆ fSize

RPadExtent ROOT::Experimental::RFrame::fSize
private

Size of the frame, in parent RPad coordinates.

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

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

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