ATLAS Offline Software
graphics
VP1
VP1Base
VP1Base
VP12DViewRPhiFishEyeTransformation.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// //
7
// Header file for class VP12DViewRPhiFishEyeTransformation //
8
// //
9
// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> //
10
// //
11
// Initial version: April 2007 //
12
// //
14
15
#ifndef VP12DVIEWRPHIFISHEYETRANSFORMATION_H
16
#define VP12DVIEWRPHIFISHEYETRANSFORMATION_H
17
18
#include "
VP1Base/IVP12DViewTransformation.h
"
19
20
class
VP12DViewRPhiFishEyeTransformation
:
public
IVP12DViewTransformation
{
21
public
:
22
23
VP12DViewRPhiFishEyeTransformation
();
24
virtual
~VP12DViewRPhiFishEyeTransformation
() {};
25
26
QPointF
transform
(
const
QPointF &
source
)
const
;
27
QPointF
inverseTransform
(
const
QPointF &
source
)
const
;
28
29
virtual
QRectF
inverseTransform
(
const
QRectF &
source
)
const
{
return
IVP12DViewTransformation::inverseTransform
(
source
); }
30
virtual
QRectF
transform
(
const
QRectF &
source
)
const
{
return
IVP12DViewTransformation::inverseTransform
(
source
); }
31
32
private
:
33
34
double
m_fisheyepar
;
35
36
};
37
39
40
#include <cmath>
41
42
inline
QPointF
VP12DViewRPhiFishEyeTransformation::transform
(
const
QPointF &
source
)
const
43
{
44
QPointF
p
(
source
);
45
p
/= 1.0+
m_fisheyepar
*sqrt(
source
.x()*
source
.x()+
source
.y()*
source
.y());
46
return
p
;
47
}
48
49
inline
QPointF
VP12DViewRPhiFishEyeTransformation::inverseTransform
(
const
QPointF &
source
)
const
50
{
51
QPointF
p
(
source
);
52
p
/= 1.0-
m_fisheyepar
*sqrt(
source
.x()*
source
.x()+
source
.y()*
source
.y());
53
return
p
;
54
}
55
56
#endif
IVP12DViewTransformation
Definition:
IVP12DViewTransformation.h:27
VP12DViewRPhiFishEyeTransformation::inverseTransform
virtual QRectF inverseTransform(const QRectF &source) const
Definition:
VP12DViewRPhiFishEyeTransformation.h:29
IVP12DViewTransformation::inverseTransform
virtual QPointF inverseTransform(const QPointF &source) const =0
python.utils.AtlRunQueryDQUtils.p
p
Definition:
AtlRunQueryDQUtils.py:210
VP12DViewRPhiFishEyeTransformation::VP12DViewRPhiFishEyeTransformation
VP12DViewRPhiFishEyeTransformation()
Definition:
VP12DViewRPhiFishEyeTransformation.cxx:18
VP12DViewRPhiFishEyeTransformation::inverseTransform
QPointF inverseTransform(const QPointF &source) const
Definition:
VP12DViewRPhiFishEyeTransformation.h:49
IVP12DViewTransformation.h
copySelective.source
string source
Definition:
copySelective.py:32
VP12DViewRPhiFishEyeTransformation::transform
virtual QRectF transform(const QRectF &source) const
Definition:
VP12DViewRPhiFishEyeTransformation.h:30
VP12DViewRPhiFishEyeTransformation::~VP12DViewRPhiFishEyeTransformation
virtual ~VP12DViewRPhiFishEyeTransformation()
Definition:
VP12DViewRPhiFishEyeTransformation.h:24
VP12DViewRPhiFishEyeTransformation::m_fisheyepar
double m_fisheyepar
Definition:
VP12DViewRPhiFishEyeTransformation.h:34
VP12DViewRPhiFishEyeTransformation
Definition:
VP12DViewRPhiFishEyeTransformation.h:20
VP12DViewRPhiFishEyeTransformation::transform
QPointF transform(const QPointF &source) const
Definition:
VP12DViewRPhiFishEyeTransformation.h:42
Generated on Sun Dec 22 2024 21:22:27 for ATLAS Offline Software by
1.8.18