Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::RPadLength Class Reference

A length in RPad.

Definition at line 31 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.
 
 RPadLength (double normal)
 By default all numeric values are normal values.
 
 RPadLength (Normal normal)
 Constructor from a Normal coordinate.
 
 RPadLength (Normal normal, Pixel px)
 Constructor for normal and pixel coordinate.
 
 RPadLength (Normal normal, Pixel px, User user)
 Constructor for normal, pixel and user coordinate.
 
 RPadLength (Pixel px)
 Constructor from a Pixel coordinate.
 
 RPadLength (User user)
 Constructor from a User coordinate.
 
std::string AsString () const
 Converts RPadLength to string like "0.1 + 25px" User coordinates not (yet) supported.
 
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.
 
RPadLengthoperator+= (const RPadLength &rhs)
 Add a RPadLength.
 
RPadLength operator- ()
 Unary -.
 
RPadLengthoperator-= (const RPadLength &rhs)
 Subtract a RPadLength.
 
bool operator== (const RPadLength &rhs) const
 Compare a RPadLength.
 
bool ParseString (const std::string &val)
 Parse string and fill RPadLength attributes String can be like "0.1 + 25px" User coordinates not (yet) supported.
 
RPadLengthSetNormal (double v)
 
RPadLengthSetPixel (double v)
 
RPadLengthSetUser (double v)
 

Protected Attributes

std::vector< doublefArr
 components [0] - normalized, [1] - pixel, [2] - user
 

Friends

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

#include <ROOT/RPadLength.hxx>

Constructor & Destructor Documentation

◆ RPadLength() [1/8]

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

Definition at line 112 of file RPadLength.hxx.

◆ RPadLength() [2/8]

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

Constructor from a Normal coordinate.

Definition at line 115 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 118 of file RPadLength.hxx.

◆ RPadLength() [4/8]

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

Constructor from a Pixel coordinate.

Definition at line 121 of file RPadLength.hxx.

◆ RPadLength() [5/8]

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

Constructor from a User coordinate.

Definition at line 124 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 127 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 130 of file RPadLength.hxx.

◆ RPadLength() [8/8]

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

Constructor from string representation.

Definition at line 133 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 20 of file RPadLength.cxx.

◆ Clear()

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

Definition at line 179 of file RPadLength.hxx.

◆ ClearPixelAndUser()

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

Definition at line 173 of file RPadLength.hxx.

◆ ClearUser()

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

Definition at line 167 of file RPadLength.hxx.

◆ Empty()

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

Definition at line 181 of file RPadLength.hxx.

◆ GetNormal()

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

Definition at line 163 of file RPadLength.hxx.

◆ GetPixel()

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

Definition at line 164 of file RPadLength.hxx.

◆ GetUser()

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

Definition at line 165 of file RPadLength.hxx.

◆ HasNormal()

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

Definition at line 135 of file RPadLength.hxx.

◆ HasPixel()

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

Definition at line 136 of file RPadLength.hxx.

◆ HasUser()

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

Definition at line 137 of file RPadLength.hxx.

◆ operator*=()

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

Multiply a RPadLength.

Definition at line 244 of file RPadLength.hxx.

◆ operator+=()

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

Add a RPadLength.

Definition at line 220 of file RPadLength.hxx.

◆ operator-()

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

Unary -.

Definition at line 210 of file RPadLength.hxx.

◆ operator-=()

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

Subtract a RPadLength.

Definition at line 232 of file RPadLength.hxx.

◆ operator==()

bool ROOT::Experimental::RPadLength::operator== ( const RPadLength rhs) const
inline

Compare a RPadLength.

Definition at line 253 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 51 of file RPadLength.cxx.

◆ SetNormal()

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

Definition at line 139 of file RPadLength.hxx.

◆ SetPixel()

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

Definition at line 147 of file RPadLength.hxx.

◆ SetUser()

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

Definition at line 155 of file RPadLength.hxx.

Friends And Related Symbol Documentation

◆ operator+

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

Add two RPadLengths.

Definition at line 184 of file RPadLength.hxx.

◆ operator-

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

Subtract two RPadLengths.

Definition at line 197 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 35 of file RPadLength.hxx.

Libraries for ROOT::Experimental::RPadLength:

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