Logo ROOT  
Reference Guide
ROOT::Experimental::RPadLength Class Reference

A length in RPad.

Definition at line 30 of file RPadLength.hxx.

Classes

struct  CoordSysBase
 
struct  Normal
 A normalized coordinate. More...
 
struct  Pixel
 A pixel coordinate. More...
 
struct  User
 A user coordinate. More...
 

Public Member Functions

 RPadLength ()
 
 RPadLength (const std::string &csscode)
 Constructor from string representation. More...
 
 RPadLength (double normal)
 By default all numeric values are normal values. More...
 
 RPadLength (Normal normal)
 Constructor from a Normal coordinate. More...
 
 RPadLength (Normal normal, Pixel px)
 Constructor for normal and pixel coordinate. More...
 
 RPadLength (Normal normal, Pixel px, User user)
 Constructor for normal, pixel and user coordinate. More...
 
 RPadLength (Pixel px)
 Constructor from a Pixel coordinate. More...
 
 RPadLength (User user)
 Constructor from a User coordinate. More...
 
std::string AsString () const
 Converts RPadLength to string like "0.1 + 25px" User coordinates not (yet) supported. More...
 
void Clear ()
 
void ClearPixelAndUser ()
 
void ClearUser ()
 
bool Empty () const
 
double GetNormal () const
 
double GetPixel () const
 
double GetUser () const
 
bool HasNormal () const
 
bool HasPixel () const
 
bool HasUser () const
 
RPadLengthoperator*= (double scale)
 Multiply a RPadLength. More...
 
RPadLengthoperator+= (const RPadLength &rhs)
 Add a RPadLength. More...
 
RPadLength operator- ()
 Unary -. More...
 
RPadLengthoperator-= (const RPadLength &rhs)
 Subtract a RPadLength. More...
 
bool ParseString (const std::string &val)
 Parse string and fill RPadLength attributes String can be like "0.1 + 25px" User coordinates not (yet) supported. More...
 
RPadLengthSetNormal (double v)
 
RPadLengthSetPixel (double v)
 
RPadLengthSetUser (double v)
 

Protected Attributes

std::vector< doublefArr
 components [0] - normalized, [1] - pixel, [2] - user 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/8]

ROOT::Experimental::RPadLength::RPadLength ( )
inline

Definition at line 111 of file RPadLength.hxx.

◆ RPadLength() [2/8]

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

Constructor from a Normal coordinate.

Definition at line 114 of file RPadLength.hxx.

◆ RPadLength() [3/8]

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

By default all numeric values are normal values.

Definition at line 117 of file RPadLength.hxx.

◆ RPadLength() [4/8]

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

Constructor from a Pixel coordinate.

Definition at line 120 of file RPadLength.hxx.

◆ RPadLength() [5/8]

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

Constructor from a User coordinate.

Definition at line 123 of file RPadLength.hxx.

◆ RPadLength() [6/8]

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

Constructor for normal and pixel coordinate.

Definition at line 126 of file RPadLength.hxx.

◆ RPadLength() [7/8]

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

Constructor for normal, pixel and user coordinate.

Definition at line 129 of file RPadLength.hxx.

◆ RPadLength() [8/8]

ROOT::Experimental::RPadLength::RPadLength ( const std::string &  csscode)
inline

Constructor from string representation.

Definition at line 132 of file RPadLength.hxx.

Member Function Documentation

◆ AsString()

std::string ROOT::Experimental::RPadLength::AsString ( ) const

Converts RPadLength to string like "0.1 + 25px" User coordinates not (yet) supported.

Definition at line 19 of file RPadLength.cxx.

◆ Clear()

void ROOT::Experimental::RPadLength::Clear ( )
inline

Definition at line 178 of file RPadLength.hxx.

◆ ClearPixelAndUser()

void ROOT::Experimental::RPadLength::ClearPixelAndUser ( )
inline

Definition at line 172 of file RPadLength.hxx.

◆ ClearUser()

void ROOT::Experimental::RPadLength::ClearUser ( )
inline

Definition at line 166 of file RPadLength.hxx.

◆ Empty()

bool ROOT::Experimental::RPadLength::Empty ( ) const
inline

Definition at line 180 of file RPadLength.hxx.

◆ GetNormal()

double ROOT::Experimental::RPadLength::GetNormal ( ) const
inline

Definition at line 162 of file RPadLength.hxx.

◆ GetPixel()

double ROOT::Experimental::RPadLength::GetPixel ( ) const
inline

Definition at line 163 of file RPadLength.hxx.

◆ GetUser()

double ROOT::Experimental::RPadLength::GetUser ( ) const
inline

Definition at line 164 of file RPadLength.hxx.

◆ HasNormal()

bool ROOT::Experimental::RPadLength::HasNormal ( ) const
inline

Definition at line 134 of file RPadLength.hxx.

◆ HasPixel()

bool ROOT::Experimental::RPadLength::HasPixel ( ) const
inline

Definition at line 135 of file RPadLength.hxx.

◆ HasUser()

bool ROOT::Experimental::RPadLength::HasUser ( ) const
inline

Definition at line 136 of file RPadLength.hxx.

◆ operator*=()

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

Multiply a RPadLength.

Definition at line 243 of file RPadLength.hxx.

◆ operator+=()

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

Add a RPadLength.

Definition at line 219 of file RPadLength.hxx.

◆ operator-()

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

Unary -.

Definition at line 209 of file RPadLength.hxx.

◆ operator-=()

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

Subtract a RPadLength.

Definition at line 231 of file RPadLength.hxx.

◆ ParseString()

bool ROOT::Experimental::RPadLength::ParseString ( const std::string &  val)

Parse string and fill RPadLength attributes String can be like "0.1 + 25px" User coordinates not (yet) supported.

Definition at line 50 of file RPadLength.cxx.

◆ SetNormal()

RPadLength & ROOT::Experimental::RPadLength::SetNormal ( double  v)
inline

Definition at line 138 of file RPadLength.hxx.

◆ SetPixel()

RPadLength & ROOT::Experimental::RPadLength::SetPixel ( double  v)
inline

Definition at line 146 of file RPadLength.hxx.

◆ SetUser()

RPadLength & ROOT::Experimental::RPadLength::SetUser ( double  v)
inline

Definition at line 154 of file RPadLength.hxx.

Friends And Related Function Documentation

◆ operator+

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

Add two RPadLengths.

Definition at line 183 of file RPadLength.hxx.

◆ operator-

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

Subtract two RPadLengths.

Definition at line 196 of file RPadLength.hxx.

Member Data Documentation

◆ fArr

std::vector<double> ROOT::Experimental::RPadLength::fArr
protected

components [0] - normalized, [1] - pixel, [2] - user

Definition at line 34 of file RPadLength.hxx.

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

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