Logo ROOT   6.12/07
Reference Guide
List of all members | Classes | Public Member Functions | Public Attributes | Friends | List of all members
ROOT::Experimental::TPadCoord Class Reference

A coordinate in a TPad.

Definition at line 26 of file TPadCoord.hxx.

Classes

struct  CoordSysBase
 
class  Normal
 A normalized coordinate: 0 in the left, bottom corner, 1 in the top, right corner of the TPad. More...
 
class  Pixel
 A pixel coordinate: 0 in the left, bottom corner, 1 in the top, right corner of the TPad. More...
 
class  User
 A user coordinate, as defined by the EUserCoordSystem parameter of the TPad. More...
 

Public Member Functions

 TPadCoord ()=default
 Default constructor, initializing all coordinate parts to 0.. More...
 
 TPadCoord (Normal normal)
 Constructor from a Normal coordinate. More...
 
 TPadCoord (Pixel px)
 Constructor from a Pixel coordinate. More...
 
 TPadCoord (User user)
 Constructor from a User coordinate. More...
 
 TPadCoord (Normal normal, Pixel px, User user)
 Sort-of aggregate initialization constructor taking normal, pixel and user parts. More...
 
TPadCoordoperator*= (double scale)
 
TPadCoordoperator+= (const TPadCoord &rhs)
 Add a TPadCoord. More...
 
TPadCoord operator- ()
 Unary -. More...
 
TPadCoordoperator-= (const TPadCoord &rhs)
 Subtract a TPadCoord. 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

TPadCoord operator+ (TPadCoord lhs, const TPadCoord &rhs)
 Add two TPadCoords. More...
 
TPadCoord operator- (TPadCoord lhs, const TPadCoord &rhs)
 Subtract two TPadCoords. More...
 

#include <ROOT/TPadCoord.hxx>

Constructor & Destructor Documentation

◆ TPadCoord() [1/5]

ROOT::Experimental::TPadCoord::TPadCoord ( )
default

Default constructor, initializing all coordinate parts to 0..

◆ TPadCoord() [2/5]

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

Constructor from a Normal coordinate.

Definition at line 105 of file TPadCoord.hxx.

◆ TPadCoord() [3/5]

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

Constructor from a Pixel coordinate.

Definition at line 108 of file TPadCoord.hxx.

◆ TPadCoord() [4/5]

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

Constructor from a User coordinate.

Definition at line 111 of file TPadCoord.hxx.

◆ TPadCoord() [5/5]

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

Sort-of aggregate initialization constructor taking normal, pixel and user parts.

Definition at line 114 of file TPadCoord.hxx.

Member Function Documentation

◆ operator*=()

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

Definition at line 151 of file TPadCoord.hxx.

◆ operator+=()

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

Add a TPadCoord.

Definition at line 134 of file TPadCoord.hxx.

◆ operator-()

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

Unary -.

Definition at line 129 of file TPadCoord.hxx.

◆ operator-=()

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

Subtract a TPadCoord.

Definition at line 143 of file TPadCoord.hxx.

Friends And Related Function Documentation

◆ operator+

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

Add two TPadCoords.

Definition at line 117 of file TPadCoord.hxx.

◆ operator-

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

Subtract two TPadCoords.

Definition at line 123 of file TPadCoord.hxx.

Member Data Documentation

◆ fNormal

Normal ROOT::Experimental::TPadCoord::fNormal

The normalized coordinate summand.

Definition at line 93 of file TPadCoord.hxx.

◆ fPixel

Pixel ROOT::Experimental::TPadCoord::fPixel

The pixel coordinate summand.

Definition at line 96 of file TPadCoord.hxx.

◆ fUser

User ROOT::Experimental::TPadCoord::fUser

The user coordinate summand.

Definition at line 99 of file TPadCoord.hxx.

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

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