15 #ifndef __IPSDKGEOMETRY_POINTCLOUD2D_H__ 16 #define __IPSDKGEOMETRY_POINTCLOUD2D_H__ 20 #pragma warning (push) 21 #pragma warning (disable : 4251) 23 #include <IPSDKGeometry/Entity/2d/BaseTypedGeometryEntity2d.h> 24 #include <IPSDKGeometry/Entity/2d/Point/Point2dData.h> 75 inline void setCollection(
const PointColl& pointColl);
76 inline const PointColl& getCollection()
const;
81 inline void push_back(
const PointType& pt);
99 return g_coordinateSystem2dType;
102 template <
typename T>
106 return g_entity2dType;
109 template <
typename T>
113 return static_cast<ipUInt32>(_pointColl.size());
116 template <
typename T>
120 _pointColl = pointColl;
123 template <
typename T>
130 template <
typename T>
137 template <
typename T>
141 _pointColl.push_back(pt);
144 template <
typename T>
157 #pragma warning (pop) 159 #endif // __IPSDKGEOMETRY_POINTCLOUD2D_H__ const PointColl & getCollection() const
access to points collection
Definition: PointCloud2d.h:125
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
void setCollection(const PointColl &pointColl)
access to points collection
Definition: PointCloud2d.h:118
Point2dData< T > PointType
point type associated to object
Definition: PointCloud2d.h:49
ipUInt32 size() const
retrieve number of points into cloud
Definition: PointCloud2d.h:111
eEntity2dType getEntity2dType() const
method allowing to retrieve entity 2d type
Definition: PointCloud2d.h:104
eCoordinateSystem2dType
Enumerate describing coordinate system 2d type.
Definition: GeometryEntity2dTypes.h:76
void clear()
clear point collection
Definition: PointCloud2d.h:146
#define IPSDKGEOMETRY_API
Import/Export macro for library IPSDKGeometry.
Definition: IPSDKGeometryExports.h:25
Base class for typed 3d geometry entities.
Definition: BaseTypedGeometryEntity2d.h:27
Unordered collection of 2d points.
Definition: PointCloud2d.h:35
#define IPSDK_DECLARE_GEOMETRY_ENTITY_2D(libraryName, className)
Macro allowing to declare a geometry entity 2d.
Definition: GeometryEntity2dHdrMacros.h:131
eCoordinateSystem2dType getCoordinateSystem2dType() const
method allowing to retrieve coordinate system 2d type
Definition: PointCloud2d.h:97
Point cloud.
Definition: GeometryEntity2dTypes.h:46
Basic operators used for point cloud 2d management.
eEntity2dType
Enumerate describing entity 2d type.
Definition: GeometryEntity2dTypes.h:38
std::vector< PointType > PointColl
collection of points associated to polygon
Definition: PointCloud2d.h:52
PointColl _pointColl
ordered collection of points associated to polygon
Definition: PointCloud2d.h:89
Lightweight structure used to store Point2d data.
Definition: GeometryEntity2dTypes.h:26
Cartesian coordinate system.
Definition: GeometryEntity2dTypes.h:78
void push_back(const PointType &pt)
append a new element at the end of collection
Definition: PointCloud2d.h:139
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53