VGM Version 5.3
Loading...
Searching...
No Matches
transform.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The RootGM package of the Virtual Geometry Model
5// Copyright (C) 2007, Ivana Hrivnacova
6// All rights reserved.
7//
8// For the licensing terms see vgm/LICENSE.
9// Contact: ivana@ipno.in2p3.fr
10// -----------------------------------------------------------------------
11
13//
20
21#ifndef ROOT_GM_TRANSFORM_H
22#define ROOT_GM_TRANSFORM_H
23
25
26#include "TGeoMatrix.h"
27
28class TGeoShape;
29
30namespace RootGM {
31
32// Root -> VGM
33//
34VGM::Transform Transform(const TGeoMatrix& matrix);
35VGM::Transform TransformScale(const TGeoScale& scale);
37bool HasReflection(const TGeoMatrix& matrix);
38
39// VGM -> Root
40TGeoMatrix* CreateTransform(const VGM::Transform& transform);
41TGeoScale* CreateScale(const VGM::Transform& transform);
42bool HasReflection(const VGM::Transform& transform);
43
44// Root special
45TGeoHMatrix Displacement(TGeoShape* shape);
46
47void fromToRotation(double from[3], double to[3], double mtx[3][3]);
48} // namespace RootGM
49
50#endif // ROOT_GM_TRANSFORM_H
VGM implementation for Root.
Definition axis.h:28
void fromToRotation(double from[3], double to[3], double mtx[3][3])
TGeoScale * CreateScale(const VGM::Transform &transform)
TGeoMatrix * CreateTransform(const VGM::Transform &transform)
VGM::Transform Identity()
TGeoHMatrix Displacement(TGeoShape *shape)
VGM::Transform Transform(const TGeoMatrix &matrix)
Definition transform.cxx:37
bool HasReflection(const TGeoMatrix &matrix)
VGM::Transform TransformScale(const TGeoScale &scale)
std::vector< double > Transform
Definition Transform.h:40