ROOT 6.18/05 Reference Guide |
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... | |
RPadLength & | operator*= (double scale) |
RPadLength & | operator+= (const RPadLength &rhs) |
Add a RPadLength . More... | |
RPadLength | operator- () |
Unary -. More... | |
RPadLength & | operator-= (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 RPadLength s. More... | |
RPadLength | operator- (RPadLength lhs, const RPadLength &rhs) |
Subtract two RPadLength s. More... | |
#include <ROOT/RPadLength.hxx>
|
default |
Default constructor, initializing all coordinate parts to 0.
.
|
inline |
Constructor from a Normal
coordinate.
Definition at line 110 of file RPadLength.hxx.
|
inline |
Constructor from a Pixel
coordinate.
Definition at line 113 of file RPadLength.hxx.
|
inline |
Constructor from a User
coordinate.
Definition at line 116 of file RPadLength.hxx.
Sort-of aggregate initialization constructor taking normal, pixel and user parts.
Definition at line 119 of file RPadLength.hxx.
|
inline |
Definition at line 156 of file RPadLength.hxx.
|
inline |
Add a RPadLength
.
Definition at line 139 of file RPadLength.hxx.
|
inline |
Unary -.
Definition at line 134 of file RPadLength.hxx.
|
inline |
Subtract a RPadLength
.
Definition at line 148 of file RPadLength.hxx.
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.
|
friend |
Add two RPadLength
s.
Definition at line 122 of file RPadLength.hxx.
|
friend |
Subtract two RPadLength
s.
Definition at line 128 of file RPadLength.hxx.
Normal ROOT::Experimental::RPadLength::fNormal |
The normalized coordinate summand.
Definition at line 98 of file RPadLength.hxx.
Pixel ROOT::Experimental::RPadLength::fPixel |
The pixel coordinate summand.
Definition at line 101 of file RPadLength.hxx.
User ROOT::Experimental::RPadLength::fUser |
The user coordinate summand.
Definition at line 104 of file RPadLength.hxx.