Skip to content

File AffineTransform3.h

File List > detail > transform > AffineTransform3.h

Go to the documentation of this file

// Copyright (c) 2012-2013, IGN France.
// Copyright (c) 2012-2022, Oslandia.
// SPDX-License-Identifier: LGPL-2.0-or-later

#ifndef _SFCGAL_TRANSFORM_AFFINETRANSFORM3_H_
#define _SFCGAL_TRANSFORM_AFFINETRANSFORM3_H_

#include "SFCGAL/Kernel.h"
#include "SFCGAL/Transform.h"
#include "SFCGAL/config.h"

#include <CGAL/Aff_transformation_3.h>

namespace SFCGAL {
namespace transform {

class SFCGAL_API AffineTransform3 : public Transform {
public:
  AffineTransform3(CGAL::Aff_transformation_3<Kernel> transform);

  /*
   * [SFCGAL::Transform]
   */
  virtual void
  transform(Point &p);

  virtual void
  transform(LineString &ls);
  virtual void
  transform(Triangle &tri);
  virtual void
  transform(Polygon &poly);

  virtual void
  transform(PolyhedralSurface &surf);

  virtual void
  transform(TriangulatedSurface &surf);

  virtual void
  transform(Solid &solid);

private:
  CGAL::Aff_transformation_3<Kernel> _transform;
};

} // namespace transform
} // namespace SFCGAL

#endif