Logo ROOT  
Reference Guide
ROOT::Experimental::REveTrans Class Reference

Definition at line 29 of file REveTrans.hxx.

Public Member Functions

 REveTrans ()
 Default constructor. More...
 
 REveTrans (const Double_t arr[16])
 Constructor. More...
 
 REveTrans (const Float_t arr[16])
 Constructor. More...
 
 REveTrans (const REveTrans &t)
 Constructor. More...
 
virtual ~REveTrans ()
 
Double_tArray ()
 
const Double_tArray () const
 
Double_tArrT ()
 
const Double_tArrT () const
 
Double_tArrX ()
 
const Double_tArrX () const
 
Double_tArrY ()
 
const Double_tArrY () const
 
Double_tArrZ ()
 
const Double_tArrZ () const
 
Double_tCM (Int_t i, Int_t j)
 
Double_t CM (Int_t i, Int_t j) const
 
TVector3 GetBaseVec (Int_t b) const
 Get base-vector with index b. More...
 
void GetBaseVec (Int_t b, TVector3 &v) const
 
Bool_t GetEditRotation ()
 
Bool_t GetEditScale ()
 
Bool_t GetEditTrans () const
 
TVector3 GetPos () const
 
void GetPos (Double_t &x, Double_t &y, Double_t &z) const
 Get position (base-vec 4). More...
 
void GetPos (Double_t *x) const
 
void GetPos (Float_t *x) const
 
void GetPos (TVector3 &v) const
 
void GetRotAngles (Float_t *x) const
 Get Cardan rotation angles (pattern xYz above). More...
 
void GetScale (Double_t &sx, Double_t &sy, Double_t &sz) const
 Deduce scales from sizes of base vectors. More...
 
Bool_t GetUseTrans () const
 
Double_t Invert ()
 Invert matrix. More...
 
Bool_t IsScale (Double_t low=0.9, Double_t high=1.1) const
 Test if the transformation is a scale. More...
 
void Move (const REveTrans &a, Int_t ai, Double_t amount)
 Move in a's coord-system along axis-index ai. More...
 
void Move3 (const REveTrans &a, Double_t x, Double_t y, Double_t z)
 General move in a's coord-system. More...
 
void Move3LF (Double_t x, Double_t y, Double_t z)
 General move in local-frame. More...
 
void Move3PF (Double_t x, Double_t y, Double_t z)
 General move in parent-frame. More...
 
void MoveLF (Int_t ai, Double_t amount)
 Move in local-frame along axis with index ai. More...
 
void MovePF (Int_t ai, Double_t amount)
 Move in parent-frame along axis index ai. More...
 
void Multiply (const Double_t *vin, Double_t *vout, Double_t w=1) const
 Multiply vector and fill output array vout. More...
 
TVector3 Multiply (const TVector3 &v, Double_t w=1) const
 Multiply vector and return it. More...
 
void MultiplyIP (Double_t *v, Double_t w=1) const
 Multiply vector in-place. More...
 
void MultiplyIP (Float_t *v, Double_t w=1) const
 Multiply vector in-place. More...
 
void MultiplyIP (TVector3 &v, Double_t w=1) const
 Multiply vector in-place. More...
 
void MultLeft (const REveTrans &t)
 Multiply from left: this = t * this. More...
 
void MultRight (const REveTrans &t)
 Multiply from right: this = this * t. More...
 
Double_toperator() (Int_t i, Int_t j)
 
Double_t operator() (Int_t i, Int_t j) const
 
REveTrans operator* (const REveTrans &t)
 Copy, multiply from right and return product. More...
 
void operator*= (const REveTrans &t)
 
REveTransoperator= (const REveTrans &t)
 
Double_toperator[] (Int_t i)
 
Double_t operator[] (Int_t i) const
 
void OrtoNorm3 ()
 Orto-norm columns 1 to 3. More...
 
virtual void Print (Option_t *option="") const
 Print in reasonable format. More...
 
void Rotate (const REveTrans &a, Int_t i1, Int_t i2, Double_t amount)
 Rotate in a's coord-system, rotating base vector with index i1 into i2. More...
 
TVector3 Rotate (const TVector3 &v) const
 Rotate vector and return the rotated vector. Translation is NOT applied. More...
 
void RotateIP (Double_t *v) const
 Rotate vector in-place. Translation is NOT applied. More...
 
void RotateIP (Float_t *v) const
 Rotate vector in-place. Translation is NOT applied. More...
 
void RotateIP (TVector3 &v) const
 Rotate vector in-place. Translation is NOT applied. More...
 
void RotateLF (Int_t i1, Int_t i2, Double_t amount)
 Rotate in local frame. Does optimised version of MultRight. More...
 
void RotatePF (Int_t i1, Int_t i2, Double_t amount)
 Rotate in parent frame. Does optimised version of MultLeft. More...
 
void Scale (Double_t sx, Double_t sy, Double_t sz)
 Scale matrix. Translation part untouched. More...
 
void SetBaseVec (Int_t b, const TVector3 &v)
 Set base-vector with index b. More...
 
void SetBaseVec (Int_t b, Double_t x, Double_t y, Double_t z)
 Set base-vector with index b. More...
 
void SetBuffer3D (TBuffer3D &buff)
 Fill transformation part TBuffer3D core section. More...
 
void SetEditRotation (Bool_t x)
 
void SetEditScale (Bool_t x)
 
void SetEditTrans (Bool_t v)
 
void SetFrom (const TGeoMatrix &mat)
 Initialize from TGeoMatrix. More...
 
void SetFrom (Double_t *carr)
 
void SetFromArray (const Double_t arr[16])
 Set matrix from Double_t array. More...
 
void SetFromArray (const Float_t arr[16])
 Set matrix from Float_t array. More...
 
void SetGeoHMatrix (TGeoHMatrix &mat)
 Set TGeoHMatrix mat. More...
 
void SetPos (const REveTrans &t)
 
void SetPos (Double_t *x)
 
void SetPos (Double_t x, Double_t y, Double_t z)
 Set position (base-vec 4). More...
 
void SetPos (Float_t *x)
 
void SetRotByAngles (Float_t a1, Float_t a2, Float_t a3)
 
void SetRotByAnyAngles (Float_t a1, Float_t a2, Float_t a3, const char *pat)
 Sets Rotation part as given by angles a1, a1, a3 and pattern pat. More...
 
void SetScale (Double_t sx, Double_t sy, Double_t sz)
 Set scaling. More...
 
void SetScaleX (Double_t sx)
 Change x scaling. More...
 
void SetScaleY (Double_t sy)
 Change y scaling. More...
 
void SetScaleZ (Double_t sz)
 Change z scaling. More...
 
void SetTrans (const REveTrans &t, Bool_t copyAngles=kTRUE)
 Set matrix from another,. More...
 
void SetupFromToVec (const REveVector &from, const REveVector &to)
 A function for creating a rotation matrix that rotates a vector called "from" into another vector called "to". More...
 
void SetupRotation (Int_t i, Int_t j, Double_t f)
 Setup the matrix as an elementary rotation. More...
 
void SetUseTrans (Bool_t v)
 
void TransposeRotationPart ()
 Transpose 3x3 rotation sub-matrix. More...
 
void UnitRot ()
 Reset rotation part of the matrix to unity. More...
 
void UnitTrans ()
 Reset matrix to unity. More...
 
Double_t Unscale ()
 Remove scaling, make all base vectors of unit length. More...
 
void Unscale (Double_t &sx, Double_t &sy, Double_t &sz)
 Remove scaling, make all base vectors of unit length. More...
 
void ZeroTrans (Double_t w=1.0)
 Reset matrix to zero, only the perspective scaling is set to w (1 by default). More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 

Protected Member Functions

Double_t Norm3Column (Int_t col)
 Norm 3-vector in column col. More...
 
Double_t Orto3Column (Int_t col, Int_t ref)
 Orto-norm 3-vector in column col with respect to column ref. More...
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
void MakeZombie ()
 

Protected Attributes

Float_t fA1
 
Float_t fA2
 
Float_t fA3
 
Bool_t fAsOK
 
Bool_t fEditRotation
 
Bool_t fEditScale
 
Bool_t fEditTrans
 
Double32_t fM [16]
 
Bool_t fUseTrans
 

Additional Inherited Members

- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) ,
  kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13)
}
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

#include <ROOT/REveTrans.hxx>

Inheritance diagram for ROOT::Experimental::REveTrans:
[legend]

Constructor & Destructor Documentation

◆ REveTrans() [1/4]

REveTrans::REveTrans ( )

Default constructor.

Definition at line 75 of file REveTrans.cxx.

◆ REveTrans() [2/4]

REveTrans::REveTrans ( const REveTrans t)

Constructor.

Definition at line 89 of file REveTrans.cxx.

◆ REveTrans() [3/4]

REveTrans::REveTrans ( const Double_t  arr[16])

Constructor.

Definition at line 103 of file REveTrans.cxx.

◆ REveTrans() [4/4]

REveTrans::REveTrans ( const Float_t  arr[16])

Constructor.

Definition at line 117 of file REveTrans.cxx.

◆ ~REveTrans()

virtual ROOT::Experimental::REveTrans::~REveTrans ( )
inlinevirtual

Definition at line 53 of file REveTrans.hxx.

Member Function Documentation

◆ Array() [1/2]

Double_t * ROOT::Experimental::REveTrans::Array ( )
inline

Definition at line 98 of file REveTrans.hxx.

◆ Array() [2/2]

const Double_t * ROOT::Experimental::REveTrans::Array ( ) const
inline

Definition at line 99 of file REveTrans.hxx.

◆ ArrT() [1/2]

Double_t * ROOT::Experimental::REveTrans::ArrT ( )
inline

Definition at line 106 of file REveTrans.hxx.

◆ ArrT() [2/2]

const Double_t * ROOT::Experimental::REveTrans::ArrT ( ) const
inline

Definition at line 107 of file REveTrans.hxx.

◆ ArrX() [1/2]

Double_t * ROOT::Experimental::REveTrans::ArrX ( )
inline

Definition at line 100 of file REveTrans.hxx.

◆ ArrX() [2/2]

const Double_t * ROOT::Experimental::REveTrans::ArrX ( ) const
inline

Definition at line 101 of file REveTrans.hxx.

◆ ArrY() [1/2]

Double_t * ROOT::Experimental::REveTrans::ArrY ( )
inline

Definition at line 102 of file REveTrans.hxx.

◆ ArrY() [2/2]

const Double_t * ROOT::Experimental::REveTrans::ArrY ( ) const
inline

Definition at line 103 of file REveTrans.hxx.

◆ ArrZ() [1/2]

Double_t * ROOT::Experimental::REveTrans::ArrZ ( )
inline

Definition at line 104 of file REveTrans.hxx.

◆ ArrZ() [2/2]

const Double_t * ROOT::Experimental::REveTrans::ArrZ ( ) const
inline

Definition at line 105 of file REveTrans.hxx.

◆ CM() [1/2]

Double_t & ROOT::Experimental::REveTrans::CM ( Int_t  i,
Int_t  j 
)
inline

Definition at line 113 of file REveTrans.hxx.

◆ CM() [2/2]

Double_t ROOT::Experimental::REveTrans::CM ( Int_t  i,
Int_t  j 
) const
inline

Definition at line 112 of file REveTrans.hxx.

◆ GetBaseVec() [1/2]

TVector3 REveTrans::GetBaseVec ( Int_t  b) const

Get base-vector with index b.

Definition at line 492 of file REveTrans.cxx.

◆ GetBaseVec() [2/2]

void REveTrans::GetBaseVec ( Int_t  b,
TVector3 v 
) const

Definition at line 497 of file REveTrans.cxx.

◆ GetEditRotation()

Bool_t ROOT::Experimental::REveTrans::GetEditRotation ( )
inline

Definition at line 182 of file REveTrans.hxx.

◆ GetEditScale()

Bool_t ROOT::Experimental::REveTrans::GetEditScale ( )
inline

Definition at line 183 of file REveTrans.hxx.

◆ GetEditTrans()

Bool_t ROOT::Experimental::REveTrans::GetEditTrans ( ) const
inline

Definition at line 185 of file REveTrans.hxx.

◆ GetPos() [1/5]

TVector3 REveTrans::GetPos ( ) const

Definition at line 558 of file REveTrans.cxx.

◆ GetPos() [2/5]

void REveTrans::GetPos ( Double_t x,
Double_t y,
Double_t z 
) const

Get position (base-vec 4).

Definition at line 535 of file REveTrans.cxx.

◆ GetPos() [3/5]

void REveTrans::GetPos ( Double_t x) const

Definition at line 540 of file REveTrans.cxx.

◆ GetPos() [4/5]

void REveTrans::GetPos ( Float_t x) const

Definition at line 546 of file REveTrans.cxx.

◆ GetPos() [5/5]

void REveTrans::GetPos ( TVector3 v) const

Definition at line 552 of file REveTrans.cxx.

◆ GetRotAngles()

void REveTrans::GetRotAngles ( Float_t x) const

Get Cardan rotation angles (pattern xYz above).

Definition at line 624 of file REveTrans.cxx.

◆ GetScale()

void REveTrans::GetScale ( Double_t sx,
Double_t sy,
Double_t sz 
) const

Deduce scales from sizes of base vectors.

Definition at line 679 of file REveTrans.cxx.

◆ GetUseTrans()

Bool_t ROOT::Experimental::REveTrans::GetUseTrans ( ) const
inline

Definition at line 177 of file REveTrans.hxx.

◆ Invert()

Double_t REveTrans::Invert ( )

Invert matrix.

Copied from ROOT's TMatrixFCramerInv.

Definition at line 864 of file REveTrans.cxx.

◆ IsScale()

Bool_t REveTrans::IsScale ( Double_t  low = 0.9,
Double_t  high = 1.1 
) const

Test if the transformation is a scale.

To be used by ROOT TGLObject descendants that potentially need to use GL_NORMALIZE. The low/high limits are expected to be squares of actual limits.

Ideally this should be done by the TGLViewer [but is not].

Definition at line 1075 of file REveTrans.cxx.

◆ Move()

void REveTrans::Move ( const REveTrans a,
Int_t  ai,
Double_t  amount 
)

Move in a's coord-system along axis-index ai.

Definition at line 435 of file REveTrans.cxx.

◆ Move3()

void REveTrans::Move3 ( const REveTrans a,
Double_t  x,
Double_t  y,
Double_t  z 
)

General move in a's coord-system.

Definition at line 446 of file REveTrans.cxx.

◆ Move3LF()

void REveTrans::Move3LF ( Double_t  x,
Double_t  y,
Double_t  z 
)

General move in local-frame.

Definition at line 366 of file REveTrans.cxx.

◆ Move3PF()

void REveTrans::Move3PF ( Double_t  x,
Double_t  y,
Double_t  z 
)

General move in parent-frame.

Definition at line 404 of file REveTrans.cxx.

◆ MoveLF()

void REveTrans::MoveLF ( Int_t  ai,
Double_t  amount 
)

Move in local-frame along axis with index ai.

Definition at line 357 of file REveTrans.cxx.

◆ MovePF()

void REveTrans::MovePF ( Int_t  ai,
Double_t  amount 
)

Move in parent-frame along axis index ai.

Definition at line 396 of file REveTrans.cxx.

◆ Multiply() [1/2]

void REveTrans::Multiply ( const Double_t vin,
Double_t vout,
Double_t  w = 1 
) const

Multiply vector and fill output array vout.

Definition at line 772 of file REveTrans.cxx.

◆ Multiply() [2/2]

TVector3 REveTrans::Multiply ( const TVector3 v,
Double_t  w = 1 
) const

Multiply vector and return it.

Definition at line 762 of file REveTrans.cxx.

◆ MultiplyIP() [1/3]

void REveTrans::MultiplyIP ( Double_t v,
Double_t  w = 1 
) const

Multiply vector in-place.

Definition at line 740 of file REveTrans.cxx.

◆ MultiplyIP() [2/3]

void REveTrans::MultiplyIP ( Float_t v,
Double_t  w = 1 
) const

Multiply vector in-place.

Definition at line 751 of file REveTrans.cxx.

◆ MultiplyIP() [3/3]

void REveTrans::MultiplyIP ( TVector3 v,
Double_t  w = 1 
) const

Multiply vector in-place.

Definition at line 730 of file REveTrans.cxx.

◆ MultLeft()

void REveTrans::MultLeft ( const REveTrans t)

Multiply from left: this = t * this.

Definition at line 302 of file REveTrans.cxx.

◆ MultRight()

void REveTrans::MultRight ( const REveTrans t)

Multiply from right: this = this * t.

Definition at line 318 of file REveTrans.cxx.

◆ Norm3Column()

Double_t REveTrans::Norm3Column ( Int_t  col)
protected

Norm 3-vector in column col.

Definition at line 826 of file REveTrans.cxx.

◆ operator()() [1/2]

Double_t & ROOT::Experimental::REveTrans::operator() ( Int_t  i,
Int_t  j 
)
inline

Definition at line 116 of file REveTrans.hxx.

◆ operator()() [2/2]

Double_t ROOT::Experimental::REveTrans::operator() ( Int_t  i,
Int_t  j 
) const
inline

Definition at line 115 of file REveTrans.hxx.

◆ operator*()

REveTrans REveTrans::operator* ( const REveTrans t)

Copy, multiply from right and return product.

Avoid unless necessary.

Definition at line 335 of file REveTrans.cxx.

◆ operator*=()

void ROOT::Experimental::REveTrans::operator*= ( const REveTrans t)
inline

Definition at line 76 of file REveTrans.hxx.

◆ operator=()

REveTrans & ROOT::Experimental::REveTrans::operator= ( const REveTrans t)
inline

Definition at line 63 of file REveTrans.hxx.

◆ operator[]() [1/2]

Double_t & ROOT::Experimental::REveTrans::operator[] ( Int_t  i)
inline

Definition at line 110 of file REveTrans.hxx.

◆ operator[]() [2/2]

Double_t ROOT::Experimental::REveTrans::operator[] ( Int_t  i) const
inline

Definition at line 109 of file REveTrans.hxx.

◆ Orto3Column()

Double_t REveTrans::Orto3Column ( Int_t  col,
Int_t  ref 
)
protected

Orto-norm 3-vector in column col with respect to column ref.

Definition at line 837 of file REveTrans.cxx.

◆ OrtoNorm3()

void REveTrans::OrtoNorm3 ( )

Orto-norm columns 1 to 3.

Definition at line 849 of file REveTrans.cxx.

◆ Print()

void REveTrans::Print ( Option_t option = "") const
virtual

Print in reasonable format.

Reimplemented from TObject.

Definition at line 957 of file REveTrans.cxx.

◆ Rotate() [1/2]

void REveTrans::Rotate ( const REveTrans a,
Int_t  i1,
Int_t  i2,
Double_t  amount 
)

Rotate in a's coord-system, rotating base vector with index i1 into i2.

Definition at line 458 of file REveTrans.cxx.

◆ Rotate() [2/2]

TVector3 REveTrans::Rotate ( const TVector3 v) const

Rotate vector and return the rotated vector. Translation is NOT applied.

Definition at line 816 of file REveTrans.cxx.

◆ RotateIP() [1/3]

void REveTrans::RotateIP ( Double_t v) const

Rotate vector in-place. Translation is NOT applied.

Definition at line 792 of file REveTrans.cxx.

◆ RotateIP() [2/3]

void REveTrans::RotateIP ( Float_t v) const

Rotate vector in-place. Translation is NOT applied.

Definition at line 804 of file REveTrans.cxx.

◆ RotateIP() [3/3]

void REveTrans::RotateIP ( TVector3 v) const

Rotate vector in-place. Translation is NOT applied.

Definition at line 782 of file REveTrans.cxx.

◆ RotateLF()

void REveTrans::RotateLF ( Int_t  i1,
Int_t  i2,
Double_t  amount 
)

Rotate in local frame. Does optimised version of MultRight.

Definition at line 376 of file REveTrans.cxx.

◆ RotatePF()

void REveTrans::RotatePF ( Int_t  i1,
Int_t  i2,
Double_t  amount 
)

Rotate in parent frame. Does optimised version of MultLeft.

Definition at line 414 of file REveTrans.cxx.

◆ Scale()

void REveTrans::Scale ( Double_t  sx,
Double_t  sy,
Double_t  sz 
)

Scale matrix. Translation part untouched.

Definition at line 648 of file REveTrans.cxx.

◆ SetBaseVec() [1/2]

void REveTrans::SetBaseVec ( Int_t  b,
const TVector3 v 
)

Set base-vector with index b.

Definition at line 482 of file REveTrans.cxx.

◆ SetBaseVec() [2/2]

void REveTrans::SetBaseVec ( Int_t  b,
Double_t  x,
Double_t  y,
Double_t  z 
)

Set base-vector with index b.

Definition at line 472 of file REveTrans.cxx.

◆ SetBuffer3D()

void REveTrans::SetBuffer3D ( TBuffer3D buff)

Fill transformation part TBuffer3D core section.

Definition at line 1050 of file REveTrans.cxx.

◆ SetEditRotation()

void ROOT::Experimental::REveTrans::SetEditRotation ( Bool_t  x)
inline

Definition at line 180 of file REveTrans.hxx.

◆ SetEditScale()

void ROOT::Experimental::REveTrans::SetEditScale ( Bool_t  x)
inline

Definition at line 181 of file REveTrans.hxx.

◆ SetEditTrans()

void ROOT::Experimental::REveTrans::SetEditTrans ( Bool_t  v)
inline

Definition at line 186 of file REveTrans.hxx.

◆ SetFrom() [1/2]

void REveTrans::SetFrom ( const TGeoMatrix mat)

Initialize from TGeoMatrix.

Definition at line 994 of file REveTrans.cxx.

◆ SetFrom() [2/2]

void REveTrans::SetFrom ( Double_t carr)

Definition at line 982 of file REveTrans.cxx.

◆ SetFromArray() [1/2]

void REveTrans::SetFromArray ( const Double_t  arr[16])

Set matrix from Double_t array.

Definition at line 179 of file REveTrans.cxx.

◆ SetFromArray() [2/2]

void REveTrans::SetFromArray ( const Float_t  arr[16])

Set matrix from Float_t array.

Definition at line 188 of file REveTrans.cxx.

◆ SetGeoHMatrix()

void REveTrans::SetGeoHMatrix ( TGeoHMatrix mat)

Set TGeoHMatrix mat.

Definition at line 1021 of file REveTrans.cxx.

◆ SetPos() [1/4]

void REveTrans::SetPos ( const REveTrans t)

Definition at line 525 of file REveTrans.cxx.

◆ SetPos() [2/4]

void REveTrans::SetPos ( Double_t x)

Definition at line 513 of file REveTrans.cxx.

◆ SetPos() [3/4]

void REveTrans::SetPos ( Double_t  x,
Double_t  y,
Double_t  z 
)

Set position (base-vec 4).

Definition at line 508 of file REveTrans.cxx.

◆ SetPos() [4/4]

void REveTrans::SetPos ( Float_t x)

Definition at line 519 of file REveTrans.cxx.

◆ SetRotByAngles()

void REveTrans::SetRotByAngles ( Float_t  a1,
Float_t  a2,
Float_t  a3 
)

Definition at line 573 of file REveTrans.cxx.

◆ SetRotByAnyAngles()

void REveTrans::SetRotByAnyAngles ( Float_t  a1,
Float_t  a2,
Float_t  a3,
const char *  pat 
)

Sets Rotation part as given by angles a1, a1, a3 and pattern pat.

Pattern consists of "XxYyZz" characters. eg: x means rotate about x axis, X means rotate in negative direction xYz -> R_x(a3) * R_y(-a2) * R_z(a1); (standard Gled representation) Note that angles and pattern elements have inverted order!

Implements Eulerian/Cardanian angles in a uniform way.

Definition at line 603 of file REveTrans.cxx.

◆ SetScale()

void REveTrans::SetScale ( Double_t  sx,
Double_t  sy,
Double_t  sz 
)

Set scaling.

Definition at line 689 of file REveTrans.cxx.

◆ SetScaleX()

void REveTrans::SetScaleX ( Double_t  sx)

Change x scaling.

Definition at line 703 of file REveTrans.cxx.

◆ SetScaleY()

void REveTrans::SetScaleY ( Double_t  sy)

Change y scaling.

Definition at line 712 of file REveTrans.cxx.

◆ SetScaleZ()

void REveTrans::SetScaleZ ( Double_t  sz)

Change z scaling.

Definition at line 721 of file REveTrans.cxx.

◆ SetTrans()

void REveTrans::SetTrans ( const REveTrans t,
Bool_t  copyAngles = kTRUE 
)

Set matrix from another,.

Definition at line 165 of file REveTrans.cxx.

◆ SetupFromToVec()

void REveTrans::SetupFromToVec ( const REveVector from,
const REveVector to 
)

A function for creating a rotation matrix that rotates a vector called "from" into another vector called "to".

Input : from[3], to[3] which both must be normalized non-zero vectors Output: mtx[3][3] – a 3x3 matrix in column-major form

Authors: Tomas Möller, John Hughes "Efficiently Building a Matrix to Rotate One Vector to Another" Journal of Graphics Tools, 4(4):1-4, 1999

Definition at line 220 of file REveTrans.cxx.

◆ SetupRotation()

void REveTrans::SetupRotation ( Int_t  i,
Int_t  j,
Double_t  f 
)

Setup the matrix as an elementary rotation.

Optimized versions of left/right multiplication with an elementary rotation matrix are implemented in RotatePF/RotateLF. Expects identity matrix.

Definition at line 200 of file REveTrans.cxx.

◆ SetUseTrans()

void ROOT::Experimental::REveTrans::SetUseTrans ( Bool_t  v)
inline

Definition at line 178 of file REveTrans.hxx.

◆ TransposeRotationPart()

void REveTrans::TransposeRotationPart ( )

Transpose 3x3 rotation sub-matrix.

Definition at line 345 of file REveTrans.cxx.

◆ UnitRot()

void REveTrans::UnitRot ( )

Reset rotation part of the matrix to unity.

Definition at line 154 of file REveTrans.cxx.

◆ UnitTrans()

void REveTrans::UnitTrans ( )

Reset matrix to unity.

Definition at line 131 of file REveTrans.cxx.

◆ Unscale() [1/2]

Double_t REveTrans::Unscale ( )

Remove scaling, make all base vectors of unit length.

Definition at line 658 of file REveTrans.cxx.

◆ Unscale() [2/2]

void REveTrans::Unscale ( Double_t sx,
Double_t sy,
Double_t sz 
)

Remove scaling, make all base vectors of unit length.

Definition at line 668 of file REveTrans.cxx.

◆ ZeroTrans()

void REveTrans::ZeroTrans ( Double_t  w = 1.0)

Reset matrix to zero, only the perspective scaling is set to w (1 by default).

Definition at line 143 of file REveTrans.cxx.

Member Data Documentation

◆ fA1

Float_t ROOT::Experimental::REveTrans::fA1
mutableprotected

Definition at line 34 of file REveTrans.hxx.

◆ fA2

Float_t ROOT::Experimental::REveTrans::fA2
mutableprotected

Definition at line 35 of file REveTrans.hxx.

◆ fA3

Float_t ROOT::Experimental::REveTrans::fA3
mutableprotected

Definition at line 36 of file REveTrans.hxx.

◆ fAsOK

Bool_t ROOT::Experimental::REveTrans::fAsOK
mutableprotected

Definition at line 37 of file REveTrans.hxx.

◆ fEditRotation

Bool_t ROOT::Experimental::REveTrans::fEditRotation
protected

Definition at line 42 of file REveTrans.hxx.

◆ fEditScale

Bool_t ROOT::Experimental::REveTrans::fEditScale
protected

Definition at line 43 of file REveTrans.hxx.

◆ fEditTrans

Bool_t ROOT::Experimental::REveTrans::fEditTrans
protected

Definition at line 41 of file REveTrans.hxx.

◆ fM

Double32_t ROOT::Experimental::REveTrans::fM[16]
protected

Definition at line 32 of file REveTrans.hxx.

◆ fUseTrans

Bool_t ROOT::Experimental::REveTrans::fUseTrans
protected

Definition at line 40 of file REveTrans.hxx.

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

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