LSSTApplications  11.0-24-g0a022a1,14.0+64,15.0,15.0+1,15.0-1-g14e9bfd,15.0-1-g1eca518,15.0-1-g499c38d,15.0-1-g60afb23,15.0-1-g6668b0b,15.0-1-g788a293,15.0-1-g82223af,15.0-1-ga91101e,15.0-1-gae1598d,15.0-1-gc45031d,15.0-1-gd076f1f,15.0-1-gf4f1c34,15.0-1-gfe1617d,15.0-16-g953e39cab,15.0-2-g2010ef9,15.0-2-g33d94b3,15.0-2-g5218728,15.0-2-g947dc0d,15.0-3-g9103c06,15.0-3-ga03b4ca,15.0-3-ga659d1f3,15.0-3-ga695220+2,15.0-3-gaec6799,15.0-3-gb7a597c,15.0-3-gd5b9ff95,15.0-4-g0478fed+2,15.0-4-g45f767a,15.0-4-gff20472+2,15.0-6-ge2d9597
LSSTDataManagementBasePackage
SeparableXYTransform.h
Go to the documentation of this file.
1 // -*- lsst-c++ -*-
2 
3 /*
4  * LSST Data Management System
5  * Copyright 2015 LSST Corporation.
6  *
7  * This product includes software developed by the
8  * LSST Project (http://www.lsst.org/).
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the LSST License Statement and
21  * the GNU General Public License along with this program. If not,
22  * see <http://www.lsstcorp.org/LegalNotices/>.
23  */
24 
25 /*
26  * Class representing a 2D transform for which the pixel
27  * distortions in the x- and y-directions are separable.
28  */
29 
30 #ifndef LSST_AFW_GEOM_SEPARABLEXYTRANSFORM_H
31 #define LSST_AFW_GEOM_SEPARABLEXYTRANSFORM_H
32 
34 
35 namespace lsst {
36 namespace afw {
37 namespace geom {
38 
39 class Functor;
40 
53 public:
59  SeparableXYTransform(Functor const& xfunctor, Functor const& yfunctor);
60 
65 
66  virtual ~SeparableXYTransform() = default;
67 
68  virtual std::shared_ptr<XYTransform> clone() const;
69 
77  virtual Point2D forwardTransform(Point2D const& point) const;
78 
85  virtual Point2D reverseTransform(Point2D const& point) const;
86 
88  Functor const& getXfunctor() const;
89 
91  Functor const& getYfunctor() const;
92 
93 private:
94  std::shared_ptr<Functor> _xfunctor;
95  std::shared_ptr<Functor> _yfunctor;
96 };
97 
98 } // namespace geom
99 } // namespace af
100 } // namespace lsst
101 
102 #endif // LSST_AFW_GEOM_SEPARABLEXYTRANSFORM_H
virtual Point2D forwardTransform(Point2D const &point) const
virtual Point2D reverseTransform(Point2D const &point) const
A base class for image defects.
Definition: cameraGeom.dox:3
SeparableXYTransform & operator=(SeparableXYTransform const &)
SeparableXYTransform(Functor const &xfunctor, Functor const &yfunctor)
virtual std::shared_ptr< XYTransform > clone() const
returns a deep copy
A 2D transform for which the pixel distortions in the in the x- and y-directions are separable...
Virtual base class for 2D transforms.
Definition: XYTransform.h:49
Abstract base class for function objects.
Definition: Functor.h:50