TGeoMatrix


class description - source file - inheritance tree

class TGeoMatrix : public TNamed


    protected:
void SetDefaultName() public:
virtual ~TGeoMatrix() static TClass* Class() virtual Int_t GetByteCount() const void GetHomogenousMatrix(Double_t* hmat) const virtual const Double_t* GetRotationMatrix() const virtual const Double_t* GetScale() const virtual const Double_t* GetTranslation() const virtual TClass* IsA() const Bool_t IsCombi() const Bool_t IsGeneral() const Bool_t IsIdentity() const Bool_t IsRegistered() const Bool_t IsRotAboutZ() const Bool_t IsRotation() const Bool_t IsScale() const Bool_t IsTranslation() const virtual void LocalToMaster(const Double_t* local, Double_t* master) const virtual void LocalToMasterBomb(const Double_t* local, Double_t* master) const virtual void LocalToMasterVect(const Double_t* local, Double_t* master) const virtual void MasterToLocal(const Double_t* master, Double_t* local) const virtual void MasterToLocalBomb(const Double_t* master, Double_t* local) const virtual void MasterToLocalVect(const Double_t* master, Double_t* local) const virtual void Print(const Option_t* option) const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members





See also

TGeoCombiTrans, TGeoHMatrix, TGeoIdentity, TGeoRotation, TGeoScale, TGeoTranslation

Class Description

 Geometrical transformation package





/*

*/


Bool_t IsRotAboutZ() const
 Returns true if no rotation or the rotation is about Z axis

Int_t GetByteCount() const
 Get total size in bytes of this

void GetHomogenousMatrix(Double_t *hmat) const
 The homogenous matrix associated with the transformation is used for
 piling up's and visualization. A homogenous matrix is a 4*4 array
 containing the translation, the rotation and the scale components

          | R00*sx  R01    R02    dx |
          | R10    R11*sy  R12    dy |
          | R20     R21   R22*sz  dz |
          |  0       0      0      1 |

   where Rij is the rotation matrix, (sx, sy, sz) is the scale
 transformation and (dx, dy, dz) is the translation.

void LocalToMaster(const Double_t *local, Double_t *master) const
 convert a point by multiplying its column vector (x, y, z, 1) to matrix inverse

void LocalToMasterVect(const Double_t *local, Double_t *master) const
 convert a vector by multiplying its column vector (x, y, z, 1) to matrix inverse

void LocalToMasterBomb(const Double_t *local, Double_t *master) const
 convert a point by multiplying its column vector (x, y, z, 1) to matrix inverse

void MasterToLocal(const Double_t *master, Double_t *local) const
 convert a point by multiplying its column vector (x, y, z, 1) to matrix

void MasterToLocalVect(const Double_t *master, Double_t *local) const
 convert a point by multiplying its column vector (x, y, z, 1) to matrix

void MasterToLocalBomb(const Double_t *master, Double_t *local) const
 convert a point by multiplying its column vector (x, y, z, 1) to matrix

void Print(Option_t *) const
 print the matrix in 4x4 format

void SetDefaultName()
 If no name was supplied in the ctor, the type of transformation is checked.
 A letter will be prepended to the name :
   t - translation
   r - rotation
   s - scale
   c - combi (translation + rotation)
   g - general (tr+rot+scale)
 The index of the transformation in gGeoManager list of transformations will
 be appended.



Inline Functions


                 Bool_t IsIdentity() const
                 Bool_t IsTranslation() const
                 Bool_t IsRotation() const
                 Bool_t IsScale() const
                 Bool_t IsCombi() const
                 Bool_t IsGeneral() const
                 Bool_t IsRegistered() const
        const Double_t* GetTranslation() const
        const Double_t* GetRotationMatrix() const
        const Double_t* GetScale() const
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
                   void ~TGeoMatrix()


Author: Andrei Gheata 25/10/01
Last update: root/geom:$Name: $:$Id: TGeoMatrix.cxx,v 1.7 2003/05/07 14:21:56 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.