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

A length in RPad.

Definition at line 43 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 operator== (const RPadLength &rhs) const
 Compare 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 124 of file RPadLength.hxx.

◆ RPadLength() [2/8]

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

Constructor from a Normal coordinate.

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

◆ RPadLength() [4/8]

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

Constructor from a Pixel coordinate.

Definition at line 133 of file RPadLength.hxx.

◆ RPadLength() [5/8]

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

Constructor from a User coordinate.

Definition at line 136 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 139 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 142 of file RPadLength.hxx.

◆ RPadLength() [8/8]

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

Constructor from string representation.

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

◆ ClearPixelAndUser()

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

Definition at line 185 of file RPadLength.hxx.

◆ ClearUser()

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

Definition at line 179 of file RPadLength.hxx.

◆ Empty()

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

Definition at line 193 of file RPadLength.hxx.

◆ GetNormal()

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

Definition at line 175 of file RPadLength.hxx.

◆ GetPixel()

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

Definition at line 176 of file RPadLength.hxx.

◆ GetUser()

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

Definition at line 177 of file RPadLength.hxx.

◆ HasNormal()

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

Definition at line 147 of file RPadLength.hxx.

◆ HasPixel()

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

Definition at line 148 of file RPadLength.hxx.

◆ HasUser()

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

Definition at line 149 of file RPadLength.hxx.

◆ operator*=()

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

Multiply a RPadLength.

Definition at line 256 of file RPadLength.hxx.

◆ operator+=()

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

Add a RPadLength.

Definition at line 232 of file RPadLength.hxx.

◆ operator-()

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

Unary -.

Definition at line 222 of file RPadLength.hxx.

◆ operator-=()

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

Subtract a RPadLength.

Definition at line 244 of file RPadLength.hxx.

◆ operator==()

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

Compare a RPadLength.

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

◆ SetPixel()

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

Definition at line 159 of file RPadLength.hxx.

◆ SetUser()

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

Definition at line 167 of file RPadLength.hxx.

Friends And Related Function Documentation

◆ operator+

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

Add two RPadLengths.

Definition at line 196 of file RPadLength.hxx.

◆ operator-

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

Subtract two RPadLengths.

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


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