IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Macros
GeometryTransform2dHdrMacros.h File Reference

Header part of macros for geometry transform 2d management. More...

#include <IPSDKGeometry/Entity/2d/GeometryEntity2dListMacros.h>
#include <boost/preprocessor/seq/for_each.hpp>

Go to the source code of this file.

Macros

#define IPSDK_DECLARE_GEOMETRY_TRANSFORM_2D(libraryName, className)
 Macro allowing to declare a geometry transform 2d. More...
 

Detailed Description

Header part of macros for geometry transform 2d management.

Author
E. Noirfalise
Date
2015/04/22

Macro Definition Documentation

◆ IPSDK_DECLARE_GEOMETRY_TRANSFORM_2D

#define IPSDK_DECLARE_GEOMETRY_TRANSFORM_2D (   libraryName,
  className 
)
Value:
IPSDK_DECLARE_SERIAL_WITH_COPY(libraryName, className) \
IPSDK_ENUMERATE_FRIEND_GEOMETRY_ENTITY_2D_TYPES() \
public: \
bool applyInSitu(BaseGeometryEntity2d& entity) const; \
GeometryEntity2dPtr apply(const BaseGeometryEntity2d& entity) const; \
protected: \
bool processInSitu(BaseGeometryEntity2d&) const \
{ \
return false; \
} \
GeometryEntity2dPtr process(const BaseGeometryEntity2d&) const \
{ \
return GeometryEntity2dPtr(); \
}
#define IPSDK_DECLARE_SERIAL_WITH_COPY(libraryName, className)
macro enabling serialization on class
Definition: SerializationHdrMacro.h:73
IPSDKGEOMETRY_API bool apply(const BaseGeometryTransform2d &transform, BaseGeometryEntity2d &entity)
function allowing to apply in situ a given transformation on an entity
boost::shared_ptr< BaseGeometryEntity2d > GeometryEntity2dPtr
shared pointer to BaseGeometryEntity2d
Definition: GeometryEntity2dTypes.h:88

Macro allowing to declare a geometry transform 2d.