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

An extent / size (horizontal and vertical) in a RPad.

Author
Axel Naumann axel@.nosp@m.cern.nosp@m..ch
Date
2017-07-07
Warning
This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback is welcome!

Definition at line 27 of file RPadExtent.hxx.

Classes

struct  ScaleFactor
 A scale factor (separate factors for horizontal and vertical) for scaling a RPadLength. More...
 

Public Member Functions

 RPadExtent ()=default
 
 RPadExtent (const RPadLength &horiz, const RPadLength &vert)
 
RPadLengthHoriz ()
 
const RPadLengthHoriz () const
 
RPadExtentoperator*= (const ScaleFactor &scale)
 Scale a horizontally and vertically.
 
RPadExtentoperator+= (const RPadExtent &rhs)
 Add a RPadExtent.
 
RPadExtentoperator-= (const RPadExtent &rhs)
 Subtract a RPadExtent.
 
RPadLengthVert ()
 
const RPadLengthVert () const
 

Private Attributes

RPadLength fHoriz
 horizontal part
 
RPadLength fVert
 vertical part
 

Friends

RPadExtent operator+ (RPadExtent lhs, const RPadExtent &rhs)
 Add two RPadExtents.
 
RPadExtent operator- (RPadExtent lhs, const RPadExtent &rhs)
 Subtract two RPadExtents.
 

#include <ROOT/RPadExtent.hxx>

Constructor & Destructor Documentation

◆ RPadExtent() [1/2]

ROOT::Experimental::RPadExtent::RPadExtent ( )
default

◆ RPadExtent() [2/2]

ROOT::Experimental::RPadExtent::RPadExtent ( const RPadLength horiz,
const RPadLength vert 
)
inline

Definition at line 37 of file RPadExtent.hxx.

Member Function Documentation

◆ Horiz() [1/2]

RPadLength & ROOT::Experimental::RPadExtent::Horiz ( )
inline

Definition at line 43 of file RPadExtent.hxx.

◆ Horiz() [2/2]

const RPadLength & ROOT::Experimental::RPadExtent::Horiz ( ) const
inline

Definition at line 44 of file RPadExtent.hxx.

◆ operator*=()

RPadExtent & ROOT::Experimental::RPadExtent::operator*= ( const ScaleFactor scale)
inline

Scale a horizontally and vertically.

Parameters
scale- the scale factor,

Definition at line 89 of file RPadExtent.hxx.

◆ operator+=()

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

Add a RPadExtent.

Definition at line 63 of file RPadExtent.hxx.

◆ operator-=()

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

Subtract a RPadExtent.

Definition at line 71 of file RPadExtent.hxx.

◆ Vert() [1/2]

RPadLength & ROOT::Experimental::RPadExtent::Vert ( )
inline

Definition at line 46 of file RPadExtent.hxx.

◆ Vert() [2/2]

const RPadLength & ROOT::Experimental::RPadExtent::Vert ( ) const
inline

Definition at line 47 of file RPadExtent.hxx.

Friends And Related Symbol Documentation

◆ operator+

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

Add two RPadExtents.

Definition at line 51 of file RPadExtent.hxx.

◆ operator-

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

Subtract two RPadExtents.

Definition at line 57 of file RPadExtent.hxx.

Member Data Documentation

◆ fHoriz

RPadLength ROOT::Experimental::RPadExtent::fHoriz
private

horizontal part

Definition at line 29 of file RPadExtent.hxx.

◆ fVert

RPadLength ROOT::Experimental::RPadExtent::fVert
private

vertical part

Definition at line 31 of file RPadExtent.hxx.

Libraries for ROOT::Experimental::RPadExtent:

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