IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
GeometryMeasure2dHdrMacros.h
Go to the documentation of this file.
1 // GeometryMeasure2dHdrMacros.h:
3 // -----------------------------
4 //
14 
15 #ifndef __IPSDKGEOMETRY_GEOMETRYMEASURE2DHDRMACROS_H__
16 #define __IPSDKGEOMETRY_GEOMETRYMEASURE2DHDRMACROS_H__
17 
19 #include <boost/preprocessor/seq/for_each.hpp>
20 
23 
26 #define IPSDK_DECLARE_GEOMETRY_MEASURE_2D(libraryName, className) \
27  IPSDK_DECLARE_SERIAL_WITH_COPY(libraryName, className) \
28  IPSDK_ENUMERATE_FRIEND_GEOMETRY_ENTITY_2D_TYPES() \
29 public: \
30  static DataType measure(const BaseGeometryEntity2d& entity); \
31  bool measure(const BaseGeometryEntity2d& entity, DataType& result) const; \
32 protected: \
33  bool process(const BaseGeometryEntity2d& entity, DataType& result) const \
34  { \
35  return false; \
36  }
37 
40 
41 #endif // __IPSDKGEOMETRY_GEOMETRYMEASURE2DHDRMACROS_H__
Predefined macros for geometry entity 2d management.