HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hgeomtransform.h
Go to the documentation of this file.
1 #ifndef HGEOMTRANSFORM_H
2 #define HGEOMTRANSFORM_H
3 
4 #include "hgeomvector.h"
5 #include "hgeomrotation.h"
6 
7 class HGeomTransform : public TObject {
8 protected:
9  HGeomRotation rot; // rotation matrix, describing the orientation
10  HGeomVector trans; // translation vector, describing the position
11 public:
13  inline HGeomTransform(const HGeomTransform& t);
16  const HGeomRotation& getRotMatrix() const { return rot; }
17  const HGeomVector& getTransVector() const { return trans; }
18  void setRotMatrix(const HGeomRotation& r) { rot=r; }
19  void setRotMatrix(const Double_t* a) { rot.setMatrix(a); }
20  void setRotMatrix(const Float_t* a) { rot.setMatrix(a); }
21  void setTransVector(const HGeomVector& t) { trans=t; }
22  void setTransVector(const Double_t* a) { trans.setVector(a); }
23  void setTransVector(const Float_t* a) { trans.setVector(a); }
24  HGeomVector transFrom(const HGeomVector& p) const;
25  HGeomVector transTo(const HGeomVector& p) const;
26  void transFrom(const HGeomTransform&);
27  void transTo(const HGeomTransform&);
28  void invert(void);
29  void clear();
30  void print() const;
31  inline void setTransform(const HGeomTransform& t);
32  ClassDef(HGeomTransform,1) // basic geometry transformation class
33 };
34 
35 inline HGeomTransform::HGeomTransform(const HGeomTransform& t): TObject(t) {
36  rot=t.getRotMatrix();
38 }
39 
40 
42  rot=t.getRotMatrix();
44 }
45 
46 #endif /* !HGEOMTRANSFORM_H */
void setRotMatrix(const Double_t *a)
void setRotMatrix(const Float_t *a)
void setTransVector(const Double_t *a)
HGeomTransform & operator=(const HGeomTransform &t)
const HGeomRotation & getRotMatrix() const
void setTransform(const HGeomTransform &t)
HGeomVector trans
void invert(void)
void setVector(const Double_t *a)
Definition: hgeomvector.h:64
const HGeomVector & getTransVector() const
void setMatrix(const Double_t *)
Definition: hgeomrotation.h:61
void print() const
void setTransVector(const HGeomVector &t)
void setRotMatrix(const HGeomRotation &r)
HGeomVector transFrom(const HGeomVector &p) const
HGeomRotation rot
Definition: hgeomtransform.h:9
void setTransVector(const Float_t *a)
HGeomVector transTo(const HGeomVector &p) const