29 #define PY_ARRAY_UNIQUE_SYMBOL itom_ARRAY_API //see numpy help ::array api :: Miscellaneous :: Importing the api (this line must bebefore include global.h)
30 #define NO_IMPORT_ARRAY
32 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
36 #if (defined _DEBUG) && (defined WIN32)
38 #include "pythonWrapper.h"
39 #include "numpy/arrayobject.h"
42 #include "pythonWrapper.h"
43 #include "numpy/arrayobject.h"
47 #include "../global.h"
49 #if ITOM_POINTCLOUDLIBRARY > 0
51 #include "PointCloud/pclStructures.h"
68 #define PyPointCloud_Check(op) PyObject_TypeCheck(op, &PythonPCL::PyPointCloudType)
73 static void PyPointCloud_dealloc(PyPointCloud *
self);
74 static PyObject* PyPointCloud_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
75 static int PyPointCloud_init(PyPointCloud *
self, PyObject *args, PyObject *kwds);
81 static PyObject *PyPointCloud_name(PyPointCloud *
self);
82 static PyObject *PyPointCloud_repr(PyPointCloud *
self);
83 static PyObject *PyPointCloud_append(PyPointCloud *
self, PyObject *args, PyObject *kwds);
84 static PyObject *PyPointCloud_clear(PyPointCloud *
self);
85 static PyObject *PyPointCloud_insert(PyPointCloud *
self, PyObject *args);
86 static PyObject *PyPointCloud_erase(PyPointCloud *
self, PyObject *args);
87 static PyObject *PyPointCloud_toDataObject(PyPointCloud *
self);
88 static PyObject *PyPointCloud_copy(PyPointCloud *
self);
89 static PyObject *PyPointCloud_scaleXYZ(PyPointCloud *
self, PyObject *args, PyObject *kwds);
90 static PyObject *PyPointCloud_moveXYZ(PyPointCloud *
self, PyObject *args, PyObject *kwds);
95 static PyObject *PyPointCloud_XYZ_append(PyPointCloud *
self, PyObject *xyzObj);
96 static PyObject *PyPointCloud_XYZI_append(PyPointCloud *
self, PyObject *xyziObj);
97 static PyObject *PyPointCloud_XYZRGBA_append(PyPointCloud *
self, PyObject *xyzObj, PyObject *rgbaObj);
98 static PyObject *PyPointCloud_XYZNormal_append(PyPointCloud *
self, PyObject *xyz_nxnynz_curvObj);
99 static PyObject *PyPointCloud_XYZINormal_append(PyPointCloud *
self, PyObject *xyz_i_nxnynz_curvObj);
100 static PyObject *PyPointCloud_XYZRGBNormal_append(PyPointCloud *
self, PyObject *xyz_i_nxnynz_curvObj, PyObject *rgbaObj);
102 static PyPointCloud* createEmptyPyPointCloud();
107 static PyObject* PyPointCloud_GetType(PyPointCloud *
self,
void *closure);
108 static PyObject* PyPointCloud_GetSize(PyPointCloud *
self,
void *closure);
109 static PyObject* PyPointCloud_GetHeight(PyPointCloud *
self,
void *closure);
110 static PyObject* PyPointCloud_GetWidth(PyPointCloud *
self,
void *closure);
111 static PyObject* PyPointCloud_GetEmpty(PyPointCloud *
self,
void *closure);
112 static PyObject* PyPointCloud_GetOrganized(PyPointCloud *
self,
void *closure);
113 static PyObject* PyPointCloud_GetDense(PyPointCloud *
self,
void *closure);
114 static int PyPointCloud_SetDense(PyPointCloud *
self, PyObject *value,
void *closure);
115 static PyObject* PyPointCloud_GetFields(PyPointCloud *
self,
void *closure);
120 static Py_ssize_t PyPointCloud_seqLength(PyPointCloud *
self);
121 static PyObject *PyPointCloud_seqConcat(PyPointCloud *
self, PyObject *rhs);
122 static PyObject *PyPointCloud_seqRepeat(PyPointCloud *
self, Py_ssize_t size);
123 static PyObject *PyPointCloud_seqItem(PyPointCloud *
self, Py_ssize_t size);
124 static int PyPointCloud_seqAssItem(PyPointCloud *
self, Py_ssize_t size, PyObject *point);
125 static PyObject *PyPointCloud_seqInplaceConcat(PyPointCloud *
self, PyObject *rhs);
126 static PyObject *PyPointCloud_seqInplaceRepeat(PyPointCloud *
self, Py_ssize_t size);
131 static Py_ssize_t PyPointCloud_mappingLength(PyPointCloud *
self);
132 static PyObject *PyPointCloud_mappingGetElem(PyPointCloud *
self, PyObject *key);
133 static int PyPointCloud_mappingSetElem(PyPointCloud *
self, PyObject *key, PyObject *value);
138 static PyObject* PyPointCloud_Reduce(PyPointCloud *
self, PyObject *args);
139 static PyObject* PyPointCloud_SetState(PyPointCloud *
self, PyObject *args);
144 static PyObject *PyPointCloud_fromXYZ(PyPointCloud *
self, PyObject *args, PyObject *kwds);
145 static PyObject *PyPointCloud_fromXYZI(PyPointCloud *
self, PyObject *args, PyObject *kwds);
146 static PyObject *PyPointCloud_fromXYZRGBA(PyPointCloud *
self, PyObject *args, PyObject *kwds);
147 static PyObject *PyPointCloud_fromTopography(PyPointCloud *
self, PyObject *args, PyObject *kwds);
148 static PyObject *PyPointCloud_fromDisparity(PyPointCloud *
self, PyObject *args, PyObject *kwds);
154 static PyMethodDef PyPointCloud_methods[];
155 static PyTypeObject PyPointCloudType;
156 static PyModuleDef PyPointCloudModule;
157 static PyGetSetDef PyPointCloud_getseters[];
158 static PySequenceMethods PyPointCloud_sequenceProtocol;
159 static PyMappingMethods PyPointCloud_mappingProtocol;
161 static void PyPointCloud_addTpDict(PyObject *tp_dict);
177 static void PyPoint_dealloc(PyPoint *
self);
178 static PyObject* PyPoint_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
179 static int PyPoint_init(PyPoint *
self, PyObject *args, PyObject *kwds);
185 static PyObject *PyPoint_name(PyPoint *
self);
186 static PyObject *PyPoint_repr(PyPoint *
self);
191 static PyObject* PyPoint_GetType(PyPoint *
self,
void *closure);
193 static PyObject* PyPoint_GetXYZ(PyPoint *
self,
void *closure);
194 static int PyPoint_SetXYZ(PyPoint *
self, PyObject *value,
void *closure);
196 static PyObject* PyPoint_GetIntensity(PyPoint *
self,
void *closure);
197 static int PyPoint_SetIntensity(PyPoint *
self, PyObject *value,
void *closure);
199 static PyObject* PyPoint_GetRgb(PyPoint *
self,
void *closure);
200 static int PyPoint_SetRgb(PyPoint *
self, PyObject *value,
void *closure);
202 static PyObject* PyPoint_GetRgba(PyPoint *
self,
void *closure);
203 static int PyPoint_SetRgba(PyPoint *
self, PyObject *value,
void *closure);
205 static PyObject* PyPoint_GetCurvature(PyPoint *
self,
void *closure);
206 static int PyPoint_SetCurvature(PyPoint *
self, PyObject *value,
void *closure);
208 static PyObject* PyPoint_GetNormal(PyPoint *
self,
void *closure);
209 static int PyPoint_SetNormal(PyPoint *
self, PyObject *value,
void *closure);
214 static PyObject* PyPoint_mappingGetElem(PyPoint*
self, PyObject* key);
215 static int PyPoint_mappingSetElem(PyPoint*
self, PyObject* key, PyObject* value);
221 static PyMethodDef PyPoint_methods[];
222 static PyTypeObject PyPointType;
223 static PyModuleDef PyPointModule;
224 static PyGetSetDef PyPoint_getseters[];
225 static PyMappingMethods PyPoint_mappingProtocol;
227 static void PyPoint_addTpDict(PyObject *tp_dict);
245 #define PyPolygonMesh_Check(op) PyObject_TypeCheck(op, &PythonPCL::PyPolygonMeshType)
250 static void PyPolygonMesh_dealloc(PyPolygonMesh *
self);
251 static PyObject* PyPolygonMesh_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
252 static int PyPolygonMesh_init(PyPolygonMesh *
self, PyObject *args, PyObject *kwds);
258 static PyObject *PyPolygonMesh_name(PyPolygonMesh *
self);
259 static PyObject *PyPolygonMesh_repr(PyPolygonMesh *
self);
260 static PyObject *PyPolygonMesh_data(PyPolygonMesh *
self);
262 static PyObject *PyPolygonMesh_get(PyPolygonMesh *
self, PyObject *args, PyObject *kwds);
263 static PyObject* PyPolygonMesh_getCloud(PyPolygonMesh *
self, PyObject *args);
264 static PyObject* PyPolygonMesh_getPolygons(PyPolygonMesh *
self, PyObject *args);
269 static PyObject* PyPolygonMesh_Reduce(PyPolygonMesh *
self, PyObject *args);
270 static PyObject* PyPolygonMesh_SetState(PyPolygonMesh *
self, PyObject *args);
275 static PyObject* PyPolygonMesh_mappingGetElem(PyPolygonMesh*
self, PyObject* key);
276 static int PyPolygonMesh_mappingLength(PyPolygonMesh*
self);
281 static PyObject* PyPolygonMesh_FromCloudAndPolygons(PyObject *
self, PyObject *args, PyObject *kwds);
282 static PyObject* PyPolygonMesh_FromOrganizedCloud(PyObject *
self, PyObject *args, PyObject *kwds);
283 static PyObject* PyPolygonMesh_FromTopography(PyObject *
self, PyObject *args, PyObject *kwds);
288 static PyObject* PyPolygonMesh_getNrOfPolygons(PyPolygonMesh *
self,
void *closure);
294 static PyMethodDef PyPolygonMesh_methods[];
295 static PyTypeObject PyPolygonMeshType;
296 static PyModuleDef PyPolygonMeshModule;
297 static PyGetSetDef PyPolygonMesh_getseters[];
298 static PyMappingMethods PyPolygonMesh_mappingProtocol;
300 static void PyPolygonMesh_addTpDict(PyObject *tp_dict);
302 static PyPolygonMesh* createEmptyPyPolygonMesh();
305 static PyObject* parseObjAsFloat32Array(PyObject *obj, npy_intp mRequired, npy_intp &n, float32 **elemRows);
306 static PyObject* parseObjAsUInt8Array(PyObject *obj, npy_intp mRequired, npy_intp &n, uint8_t **elemRows);
308 static void PythonPCL_SetString(PyObject *exception,
const char *
string);
309 static void PythonPCL_SetString(PyObject *exception,
const std::string &
string);
316 #endif //#if ITOM_POINTCLOUDLIBRARY > 0
generic class that covers one single point of different possible types provided by the Point Cloud Li...
Definition: pclStructures.h:73
generic class that covers one single point cloud of different possible types provided by the Point Cl...
Definition: pclStructures.h:292
generic class that covers a shared pointer to pcl::PolygonMesh that is a class for a polygonal mesh p...
Definition: pclStructures.h:667
Definition: apiFunctionsGraph.cpp:39