1 /**
2  *   SFCGAL
3  *
4  *   Copyright (C) 2012-2013 Oslandia <infos@oslandia.com>
5  *   Copyright (C) 2012-2013 IGN (http://www.ign.fr)
6  *
7  *   This library is free software; you can redistribute it and/or
8  *   modify it under the terms of the GNU Library General Public
9  *   License as published by the Free Software Foundation; either
10  *   version 2 of the License, or (at your option) any later version.
11  *
12  *   This library is distributed in the hope that it will be useful,
13  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  *   Library General Public License for more details.
16 
17  *   You should have received a copy of the GNU Library General Public
18  *   License along with this library; if not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef _SFCGAL_TRANSFORM_AFFINETRANSFORM2_H_
22 #define _SFCGAL_TRANSFORM_AFFINETRANSFORM2_H_
23 
24 #include <SFCGAL/config.h>
25 #include <SFCGAL/Kernel.h>
26 #include <SFCGAL/Transform.h>
27 
28 #include <CGAL/Aff_transformation_2.h>
29 
30 
31 namespace SFCGAL {
32 namespace transform {
33 
34 /**
35  * Wrapper for CGAL::Aff_transform_2
36  * @todo unittest
37  */
38 class SFCGAL_API AffineTransform2 : public Transform {
39 public:
40     /**
41      * Constructor with a transform
42      */
43     AffineTransform2( CGAL::Aff_transformation_2< Kernel > transform ) ;
44 
45     /*
46      * [SFCGAL::Transform]
47      */
48     virtual void transform( Point& p ) ;
49 
50 private:
51     CGAL::Aff_transformation_2< Kernel > _transform ;
52 };
53 
54 
55 }//transform
56 }//SFCGAL
57 
58 
59 
60 
61 #endif
62 
63