Logo ROOT   6.18/05
Reference Guide
List of all members | Classes | Public Member Functions | Public Attributes | Friends | List of all members
ROOT::Experimental::RPadLength Class Reference

A coordinate in a RPad.

Definition at line 28 of file RPadLength.hxx.

Classes

struct  CoordSysBase
 
class  Normal
 A normalized coordinate: 0 in the left, bottom corner, 1 in the top, right corner of the RPad. More...
 
class  Pixel
 A pixel coordinate: 0 in the left, bottom corner, 1 in the top, right corner of the RPad. More...
 
class  User
 A user coordinate, as defined by the EUserCoordSystem parameter of the RPad. More...
 

Public Member Functions

 RPadLength ()=default
 Default constructor, initializing all coordinate parts to 0.. More...
 
 RPadLength (Normal normal)
 Constructor from a Normal coordinate. More...
 
 RPadLength (Normal normal, Pixel px, User user)
 Sort-of aggregate initialization constructor taking normal, pixel and user parts. More...
 
 RPadLength (Pixel px)
 Constructor from a Pixel coordinate. More...
 
 RPadLength (User user)
 Constructor from a User coordinate. More...
 
RPadLengthoperator*= (double scale)
 
RPadLengthoperator+= (const RPadLength &rhs)
 Add a RPadLength. More...
 
RPadLength operator- ()
 Unary -. More...
 
RPadLengthoperator-= (const RPadLength &rhs)
 Subtract a RPadLength. More...
 
void SetFromAttrString (const std::string &val, const std::string &name)
 Initialize a RPadLength from a style string. More...
 

Public Attributes

Normal fNormal
 The normalized coordinate summand. More...
 
Pixel fPixel
 The pixel coordinate summand. More...
 
User fUser
 The user coordinate summand. More...
 

Friends

RPadLength operator+ (RPadLength lhs, const RPadLength &rhs)
 Add two RPadLengths. More...
 
RPadLength operator- (RPadLength lhs, const RPadLength &rhs)
 Subtract two RPadLengths. More...
 

#include <ROOT/RPadLength.hxx>

Constructor & Destructor Documentation

◆ RPadLength() [1/5]

ROOT::Experimental::RPadLength::RPadLength ( )
default

Default constructor, initializing all coordinate parts to 0..

◆ RPadLength() [2/5]

ROOT::Experimental::RPadLength::RPadLength ( Normal  normal)
inline

Constructor from a Normal coordinate.

Definition at line 110 of file RPadLength.hxx.

◆ RPadLength() [3/5]

ROOT::Experimental::RPadLength::RPadLength ( Pixel  px)
inline

Constructor from a Pixel coordinate.

Definition at line 113 of file RPadLength.hxx.

◆ RPadLength() [4/5]

ROOT::Experimental::RPadLength::RPadLength ( User  user)
inline

Constructor from a User coordinate.

Definition at line 116 of file RPadLength.hxx.

◆ RPadLength() [5/5]

ROOT::Experimental::RPadLength::RPadLength ( Normal  normal,
Pixel  px,
User  user 
)
inline

Sort-of aggregate initialization constructor taking normal, pixel and user parts.

Definition at line 119 of file RPadLength.hxx.

Member Function Documentation

◆ operator*=()

RPadLength & ROOT::Experimental::RPadLength::operator*= ( double  scale)
inline

Definition at line 156 of file RPadLength.hxx.

◆ operator+=()

RPadLength & ROOT::Experimental::RPadLength::operator+= ( const RPadLength rhs)
inline

Add a RPadLength.

Definition at line 139 of file RPadLength.hxx.

◆ operator-()

RPadLength ROOT::Experimental::RPadLength::operator- ( )
inline

Unary -.

Definition at line 134 of file RPadLength.hxx.

◆ operator-=()

RPadLength & ROOT::Experimental::RPadLength::operator-= ( const RPadLength rhs)
inline

Subtract a RPadLength.

Definition at line 148 of file RPadLength.hxx.

◆ SetFromAttrString()

void ROOT::Experimental::RPadLength::SetFromAttrString ( const std::string &  val,
const std::string &  name 
)

Initialize a RPadLength from a style string.

Syntax: a series of numbers separated by "+", where each number is followed by one of px, user, normal to specify an extent in pixel, user or normal coordinates. Spaces between any part is allowed. Example: 100 px + 0.1 user, 0.5 normal is a RPadExtent{100_px + 0.1_user, 0.5_normal}.

Definition at line 163 of file RPadLength.cxx.

Friends And Related Function Documentation

◆ operator+

RPadLength operator+ ( RPadLength  lhs,
const RPadLength rhs 
)
friend

Add two RPadLengths.

Definition at line 122 of file RPadLength.hxx.

◆ operator-

RPadLength operator- ( RPadLength  lhs,
const RPadLength rhs 
)
friend

Subtract two RPadLengths.

Definition at line 128 of file RPadLength.hxx.

Member Data Documentation

◆ fNormal

Normal ROOT::Experimental::RPadLength::fNormal

The normalized coordinate summand.

Definition at line 98 of file RPadLength.hxx.

◆ fPixel

Pixel ROOT::Experimental::RPadLength::fPixel

The pixel coordinate summand.

Definition at line 101 of file RPadLength.hxx.

◆ fUser

User ROOT::Experimental::RPadLength::fUser

The user coordinate summand.

Definition at line 104 of file RPadLength.hxx.

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

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