IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
ipsdk::geom::SimplifyTransform2d Class Reference

Algorithm allowing to simplify a geometry. More...

#include <SimplifyTransform2d.h>

Inheritance diagram for ipsdk::geom::SimplifyTransform2d:
ipsdk::geom::BaseGeometryTransform2d ipsdk::geom::BaseGeometryTransform ipsdk::BaseSerializationObject ipsdk::BaseDynamicObject

Public Member Functions

eTransform2dType getTransform2dType () const
 method allowing to retrieve entity 2d transformation type
 
template<typename T >
Polygon2d< T > simplify (const Polygon2d< T > &entity) const
 method allowing to apply transformation to a polygon
 
Constructors and destructors
 SimplifyTransform2d ()
 
 SimplifyTransform2d (const ipReal64 maxDistance)
 
 ~SimplifyTransform2d ()
 
void setMaxDistance (const ipReal64 maxDistance)
 access to maximum distance of a vertex to other segments to be removed (default value : 1.5)
 
const ipReal64 getMaxDistance () const
 access to maximum distance of a vertex to other segments to be removed (default value : 1.5)
 
- Public Member Functions inherited from ipsdk::geom::BaseGeometryTransform2d
eCoordinateDimension getCoordinateDimension () const
 method allowing to retrieve entity underlying coordinates dimension
 
virtual bool applyInSitu (BaseGeometryEntity2d &entity) const =0
 method allowing to apply in situ transformation to an entity More...
 
bool applyInSitu (const GeometryEntity2dPtr &pEntity) const
 method allowing to apply in situ transformation to an entity More...
 
virtual GeometryEntity2dPtr apply (const BaseGeometryEntity2d &entity) const =0
 method allowing to apply transformation to an entity More...
 
GeometryEntity2dPtr apply (const GeometryEntity2dConstPtr &pEntity) const
 method allowing to apply transformation to an entity More...
 
 BaseGeometryTransform2d ()
 
virtual ~BaseGeometryTransform2d ()=0
 
- Public Member Functions inherited from ipsdk::geom::BaseGeometryTransform
 BaseGeometryTransform ()
 
virtual ~BaseGeometryTransform ()=0
 
- Public Member Functions inherited from ipsdk::BaseSerializationObject
 BaseSerializationObject ()
 Default constructor.
 
virtual ~BaseSerializationObject ()=0
 destructor
 
- Public Member Functions inherited from ipsdk::BaseDynamicObject
virtual const std::string & getClassName () const
 method allowing to retrieve object class name
 
virtual BaseDynamicObjectcreateNew () const =0
 method allowing to create new instance of current object type
 
virtual DynamicObjectPtr createShared () const =0
 method allowing to create new shared instance of current object type
 
virtual bool hasCopySupport () const =0
 check whether objet has copy support
 
virtual BaseDynamicObjectduplicate () const =0
 method allowing to duplicate current object More...
 
virtual DynamicObjectPtr duplicateShared () const =0
 method allowing shared duplication of current object More...
 
 BaseDynamicObject ()
 
virtual ~BaseDynamicObject ()=0
 

Static Public Attributes

static const eTransform2dType::domain g_transform2dType = eTransform2dType::eT2DT_Simplify
 geometry transformation type
 
- Static Public Attributes inherited from ipsdk::geom::BaseGeometryTransform2d
static const eCoordinateDimension::domain g_coordinateDimension = eCoordinateDimension::eCD_2d
 entity underlying coordinates dimension
 

Protected Member Functions

template<typename T >
bool processInSitu (Point2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
GeometryEntity2dPtr process (const Point2d< T > &entity) const
 dedicated processing methods
 
bool processInSitu (Vector2d &entity) const
 dedicated processing methods
 
GeometryEntity2dPtr process (const Vector2d &entity) const
 dedicated processing methods
 
template<typename T >
bool processInSitu (BoundingBox2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
GeometryEntity2dPtr process (const BoundingBox2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
bool processInSitu (Polygon2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
GeometryEntity2dPtr process (const Polygon2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
bool processInSitu (PolygonWithHoles2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
GeometryEntity2dPtr process (const PolygonWithHoles2d< T > &entity) const
 dedicated processing methods
 
bool processInSitu (Shape2d &entity) const
 dedicated processing methods
 
GeometryEntity2dPtr process (const Shape2d &entity) const
 dedicated processing methods
 
template<typename T >
bool processInSitu (Circle2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
GeometryEntity2dPtr process (const Circle2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
bool processInSitu (Ellipse2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
GeometryEntity2dPtr process (const Ellipse2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
bool processInSitu (Square2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
GeometryEntity2dPtr process (const Square2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
bool processInSitu (Rectangle2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
GeometryEntity2dPtr process (const Rectangle2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
bool processInSitu (Segment2d< T > &entity) const
 dedicated processing methods
 
template<typename T >
GeometryEntity2dPtr process (const Segment2d< T > &entity) const
 dedicated processing methods
 
- Protected Member Functions inherited from ipsdk::BaseSerializationObject
virtual BoolResult write (BaseOArchive &ar) const
 method allowing to ensure serialization write part for object
 
virtual BoolResult read (BaseIArchive &ar)
 method allowing to ensure serialization read part for object
 
- Protected Member Functions inherited from ipsdk::BaseDynamicObject
virtual void initCtorCopy (const BaseDynamicObject &object)
 
virtual void copy (const BaseDynamicObject &object)
 method allowing to copy data from another object
 

Protected Attributes

ipReal64 _maxDistance
 

Additional Inherited Members

- Static Public Member Functions inherited from ipsdk::BaseSerializationObject
static ipUInt32 getVersion ()
 method allowing to retrieve class version information for serialization
 
- Static Public Member Functions inherited from ipsdk::BaseDynamicObject
static const std::string & getTypeName ()
 method allowing to retrieve name associated to class
 

Detailed Description

Algorithm allowing to simplify a geometry.

Author
E. Noirfalise
Date
2015/04/24
Note
this algorithm is specialy implement for polygon case

Member Data Documentation

◆ _maxDistance

ipReal64 ipsdk::geom::SimplifyTransform2d::_maxDistance
protected

maximum distance of a vertex to other segments to be removed (default value : 1.5)


The documentation for this class was generated from the following file: