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

Source part of macros for geometry transform 3d management. More...

#include <IPSDKSerialization/Engine/SerializationSrcMacro.h>
#include <IPSDKGeometry/Entity/3d/Point/Point3d.h>
#include <IPSDKGeometry/Entity/3d/Vector/Vector3d.h>
#include <IPSDKGeometry/Entity/3d/BoundingBox/BoundingBox3d.h>
#include <IPSDKGeometry/Entity/3d/PointCloud/PointCloud3d.h>
#include <IPSDKGeometry/Entity/3d/Sphere/Sphere3d.h>
#include <IPSDKGeometry/Entity/3d/Triangle/Triangle3d.h>
#include <IPSDKGeometry/Entity/3d/Ellipsoid/Ellipsoid3d.h>
#include <IPSDKGeometry/Entity/3d/Cube/Cube3d.h>
#include <IPSDKGeometry/Entity/3d/Cuboid/Cuboid3d.h>
#include <IPSDKGeometry/Entity/3d/Mesh/Mesh3d.h>
#include <IPSDKGeometry/Entity/3d/MeshWithHoles/MeshWithHoles3d.h>
#include <IPSDKGeometry/Entity/3d/Shape/Shape3d.h>
#include <IPSDKGeometry/Entity/3d/Segment/Segment3d.h>

Go to the source code of this file.

Macros

#define IPSDK_IMPLEMENT_GEOMETRY_TRANSFORM_3D(libraryName, namespaceSeq, className, version)
 Macro allowing to implement a geometry transform 3d. More...
 
#define IPSDK_IMPLEMENT_INSITU_GEOMETRY_TRANSFORM_3D(libraryName, namespaceSeq, className, version)
 Macro allowing to implement an in situ geometry transform 3d. More...
 
#define IPSDK_REGISTER_INSITU_GEOMETRY_TRANSFORM_3D_MACRO(r, classInfo, type)
 Macro allowing to register a insitu geometry transform 3d method. More...
 
#define IPSDK_REGISTER_INSITU_GEOMETRY_TRANSFORM_3D(className, entityType, typeSeq)
 Macro allowing to register a insitu geometry transform 3d method. More...
 
#define IPSDK_REGISTER_NONINSITU_GEOMETRY_TRANSFORM_3D_MACRO(r, classInfo, type)
 Macro allowing to register a insitu geometry transform 3d method. More...
 
#define IPSDK_REGISTER_NONINSITU_GEOMETRY_TRANSFORM_3D(className, entityType, typeSeq)
 Macro allowing to register a insitu geometry transform 3d method. More...
 

Detailed Description

Source part of macros for geometry transform 3d management.

Author
E. Noirfalise
Date
2015/04/22

Macro Definition Documentation

◆ IPSDK_IMPLEMENT_GEOMETRY_TRANSFORM_3D

#define IPSDK_IMPLEMENT_GEOMETRY_TRANSFORM_3D (   libraryName,
  namespaceSeq,
  className,
  version 
)
Value:
IPSDK_IMPLEMENT_SERIAL_WITH_COPY(libraryName, namespaceSeq, className, version) \
bool className::applyInSitu(BaseGeometryEntity3d& entity) const \
{ \
return entity.visitInSitu(*this); \
} \
GeometryEntity3dPtr className::apply(const BaseGeometryEntity3d& entity) const \
{ \
return entity.visitNonInSitu(*this); \
}
#define IPSDK_IMPLEMENT_SERIAL_WITH_COPY(libraryName, namespaceSeq, className, version)
macro enabling class serialization in library class
Definition: SerializationSrcMacro.h:51
IPSDKGEOMETRY_API bool apply(const BaseGeometryTransform2d &transform, BaseGeometryEntity2d &entity)
function allowing to apply in situ a given transformation on an entity

Macro allowing to implement a geometry transform 3d.

◆ IPSDK_IMPLEMENT_INSITU_GEOMETRY_TRANSFORM_3D

#define IPSDK_IMPLEMENT_INSITU_GEOMETRY_TRANSFORM_3D (   libraryName,
  namespaceSeq,
  className,
  version 
)
Value:
IPSDK_IMPLEMENT_SERIAL_WITH_COPY(libraryName, namespaceSeq, className, version) \
bool className::applyInSitu(BaseGeometryEntity3d& entity) const \
{ \
return entity.visitInSitu(*this); \
} \
GeometryEntity3dPtr className::apply(const BaseGeometryEntity3d& entity) const \
{ \
GeometryEntity3dPtr pResultEntity(static_cast<BaseGeometryEntity3d*>(entity.duplicate())); \
if (applyInSitu(*pResultEntity) == true) \
return pResultEntity; \
else \
return GeometryEntity3dPtr(); \
}
#define IPSDK_IMPLEMENT_SERIAL_WITH_COPY(libraryName, namespaceSeq, className, version)
macro enabling class serialization in library class
Definition: SerializationSrcMacro.h:51
IPSDKGEOMETRY_API bool apply(const BaseGeometryTransform2d &transform, BaseGeometryEntity2d &entity)
function allowing to apply in situ a given transformation on an entity
boost::shared_ptr< BaseGeometryEntity3d > GeometryEntity3dPtr
shared pointer to BaseGeometryEntity3d
Definition: GeometryEntity3dTypes.h:120

Macro allowing to implement an in situ geometry transform 3d.

◆ IPSDK_REGISTER_INSITU_GEOMETRY_TRANSFORM_3D_MACRO

#define IPSDK_REGISTER_INSITU_GEOMETRY_TRANSFORM_3D_MACRO (   r,
  classInfo,
  type 
)
Value:
template IPSDKGEOMETRY_API bool \
BOOST_PP_SEQ_ELEM(0, classInfo)::processInSitu<type>( \
BOOST_PP_SEQ_ELEM(1, classInfo)<type>&) const;
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25

Macro allowing to register a insitu geometry transform 3d method.

◆ IPSDK_REGISTER_INSITU_GEOMETRY_TRANSFORM_3D

#define IPSDK_REGISTER_INSITU_GEOMETRY_TRANSFORM_3D (   className,
  entityType,
  typeSeq 
)
Value:
(className)(entityType), typeSeq);
#define IPSDK_REGISTER_INSITU_GEOMETRY_TRANSFORM_3D_MACRO(r, classInfo, type)
Macro allowing to register a insitu geometry transform 3d method.
Definition: GeometryTransform3dSrcMacros.h:71

Macro allowing to register a insitu geometry transform 3d method.

◆ IPSDK_REGISTER_NONINSITU_GEOMETRY_TRANSFORM_3D_MACRO

#define IPSDK_REGISTER_NONINSITU_GEOMETRY_TRANSFORM_3D_MACRO (   r,
  classInfo,
  type 
)
Value:
template IPSDKGEOMETRY_API GeometryEntity3dPtr \
BOOST_PP_SEQ_ELEM(0, classInfo)::process<type>( \
const BOOST_PP_SEQ_ELEM(1, classInfo)<type>&) const;
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25

Macro allowing to register a insitu geometry transform 3d method.

◆ IPSDK_REGISTER_NONINSITU_GEOMETRY_TRANSFORM_3D

#define IPSDK_REGISTER_NONINSITU_GEOMETRY_TRANSFORM_3D (   className,
  entityType,
  typeSeq 
)
Value:
(className)(entityType), typeSeq);
#define IPSDK_REGISTER_NONINSITU_GEOMETRY_TRANSFORM_3D_MACRO(r, classInfo, type)
Macro allowing to register a insitu geometry transform 3d method.
Definition: GeometryTransform3dSrcMacros.h:87

Macro allowing to register a insitu geometry transform 3d method.