Logo ROOT   6.21/01
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 (Normal normal)
 Constructor from a Normal coordinate. More...
 
 RPadLength (Pixel px)
 Constructor from a Pixel coordinate. More...
 
 RPadLength (User user)
 Constructor from a User 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...
 
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)
 
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< double > fArr
 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/6]

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

Definition at line 111 of file RPadLength.hxx.

◆ RPadLength() [2/6]

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

Constructor from a Normal coordinate.

Definition at line 114 of file RPadLength.hxx.

◆ RPadLength() [3/6]

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

Constructor from a Pixel coordinate.

Definition at line 117 of file RPadLength.hxx.

◆ RPadLength() [4/6]

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

Constructor from a User coordinate.

Definition at line 120 of file RPadLength.hxx.

◆ RPadLength() [5/6]

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

Constructor for normal and pixel coordinate.

Definition at line 123 of file RPadLength.hxx.

◆ RPadLength() [6/6]

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

Constructor for normal, pixel and user coordinate.

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

◆ ClearPixelAndUser()

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

Definition at line 164 of file RPadLength.hxx.

◆ ClearUser()

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

Definition at line 158 of file RPadLength.hxx.

◆ Empty()

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

Definition at line 172 of file RPadLength.hxx.

◆ GetNormal()

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

Definition at line 154 of file RPadLength.hxx.

◆ GetPixel()

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

Definition at line 155 of file RPadLength.hxx.

◆ GetUser()

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

Definition at line 156 of file RPadLength.hxx.

◆ HasNormal()

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

Definition at line 128 of file RPadLength.hxx.

◆ HasPixel()

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

Definition at line 129 of file RPadLength.hxx.

◆ HasUser()

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

Definition at line 130 of file RPadLength.hxx.

◆ operator*=()

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

Definition at line 234 of file RPadLength.hxx.

◆ operator+=()

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

Add a RPadLength.

Definition at line 211 of file RPadLength.hxx.

◆ operator-()

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

Unary -.

Definition at line 201 of file RPadLength.hxx.

◆ operator-=()

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

Subtract a RPadLength.

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

◆ SetPixel()

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

Definition at line 139 of file RPadLength.hxx.

◆ SetUser()

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

Definition at line 146 of file RPadLength.hxx.

Friends And Related Function Documentation

◆ operator+

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

Add two RPadLengths.

Definition at line 175 of file RPadLength.hxx.

◆ operator-

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

Subtract two RPadLengths.

Definition at line 188 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.


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