Logo ROOT   6.14/05
Reference Guide
List of all members | Classes | Public Member Functions | Private Attributes | List of all members
ROOT::Experimental::TFrame Class Reference

Holds a user coordinate system with a palette.

Definition at line 35 of file TFrame.hxx.

Classes

class  DrawingOpts
 

Public Member Functions

 TFrame ()
 
 TFrame (std::vector< std::unique_ptr< TPadUserAxisBase >> &&coords, const DrawingOpts &opts)
 Constructor taking user coordinate system, position and extent. More...
 
 TFrame (const DrawingOpts &opts)
 
size_t GetNDimensions () const
 Get the number of axes. More...
 
TPadUserAxisBaseGetUserAxis (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< TPadUserAxisBase >> &&axes)
 Set the user coordinate system. More...
 
std::array< TPadLength::Normal, 2 > UserToNormal (const std::array< TPadLength::User, 2 > &pos) const
 Convert user coordinates to normal coordinates. More...
 

Private Attributes

TPalette fPalette
 Palette used to visualize user coordinates. More...
 
TPadPos fPos
 Offset with respect to parent TPad. More...
 
TPadExtent fSize
 Size of the frame, in parent TPad coordinates. More...
 
std::vector< std::unique_ptr< TPadUserAxisBase > > fUserCoord
 Mapping of user coordinates to normal coordinates, one entry per dimension. More...
 

#include <ROOT/TFrame.hxx>

Constructor & Destructor Documentation

◆ TFrame() [1/3]

ROOT::Experimental::TFrame::TFrame ( )
inline

Definition at line 60 of file TFrame.hxx.

◆ TFrame() [2/3]

TFrame::TFrame ( std::vector< std::unique_ptr< TPadUserAxisBase >> &&  coords,
const DrawingOpts opts 
)
explicit

Constructor taking user coordinate system, position and extent.

Definition at line 23 of file TFrame.cxx.

◆ TFrame() [3/3]

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

Definition at line 69 of file TFrame.hxx.

Member Function Documentation

◆ GetNDimensions()

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

Get the number of axes.

Definition at line 77 of file TFrame.hxx.

◆ GetUserAxis()

TPadUserAxisBase& ROOT::Experimental::TFrame::GetUserAxis ( size_t  dimension) const
inline

Get the current user coordinate system for a given dimension.

Definition at line 80 of file TFrame.hxx.

◆ GrowToDimensions()

void TFrame::GrowToDimensions ( size_t  nDimensions)

Create nDimensions default axes for the user coordinate system.

Definition at line 27 of file TFrame.cxx.

◆ SetUserAxis()

void ROOT::Experimental::TFrame::SetUserAxis ( std::vector< std::unique_ptr< TPadUserAxisBase >> &&  axes)
inline

Set the user coordinate system.

Definition at line 83 of file TFrame.hxx.

◆ UserToNormal()

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

Convert user coordinates to normal coordinates.

Definition at line 86 of file TFrame.hxx.

Member Data Documentation

◆ fPalette

TPalette ROOT::Experimental::TFrame::fPalette
private

Palette used to visualize user coordinates.

Definition at line 50 of file TFrame.hxx.

◆ fPos

TPadPos ROOT::Experimental::TFrame::fPos
private

Offset with respect to parent TPad.

Definition at line 53 of file TFrame.hxx.

◆ fSize

TPadExtent ROOT::Experimental::TFrame::fSize
private

Size of the frame, in parent TPad coordinates.

Definition at line 56 of file TFrame.hxx.

◆ fUserCoord

std::vector<std::unique_ptr<TPadUserAxisBase> > ROOT::Experimental::TFrame::fUserCoord
private

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

Definition at line 47 of file TFrame.hxx.

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

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