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 #if (defined linux) | (defined CMAKE) 40 #include "numpy/arrayobject.h" 41 #elif (defined __APPLE__) | (defined CMAKE) 43 #include "numpy/arrayobject.h" 46 #include "../Lib/site-packages/numpy/core/include/numpy/arrayobject.h" 52 #include "numpy/arrayobject.h" 53 #elif (defined __APPLE__) 55 #include "numpy/arrayobject.h" 58 #include "../Lib/site-packages/numpy/core/include/numpy/arrayobject.h" 63 #include "../global.h" 65 #if ITOM_POINTCLOUDLIBRARY > 0 67 #include "PointCloud/pclStructures.h" 84 #define PyPointCloud_Check(op) PyObject_TypeCheck(op, &PythonPCL::PyPointCloudType) 89 static void PyPointCloud_dealloc(PyPointCloud *
self);
90 static PyObject* PyPointCloud_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
91 static int PyPointCloud_init(PyPointCloud *
self, PyObject *args, PyObject *kwds);
97 static PyObject *PyPointCloud_name(PyPointCloud *
self);
98 static PyObject *PyPointCloud_repr(PyPointCloud *
self);
99 static PyObject *PyPointCloud_append(PyPointCloud *
self, PyObject *args, PyObject *kwds);
100 static PyObject *PyPointCloud_clear(PyPointCloud *
self);
101 static PyObject *PyPointCloud_insert(PyPointCloud *
self, PyObject *args);
102 static PyObject *PyPointCloud_erase(PyPointCloud *
self, PyObject *args);
103 static PyObject *PyPointCloud_toDataObject(PyPointCloud *
self);
104 static PyObject *PyPointCloud_copy(PyPointCloud *
self);
105 static PyObject *PyPointCloud_scaleXYZ(PyPointCloud *
self, PyObject *args, PyObject *kwds);
106 static PyObject *PyPointCloud_moveXYZ(PyPointCloud *
self, PyObject *args, PyObject *kwds);
111 static PyObject *PyPointCloud_XYZ_append(PyPointCloud *
self, PyObject *xyzObj);
112 static PyObject *PyPointCloud_XYZI_append(PyPointCloud *
self, PyObject *xyziObj);
113 static PyObject *PyPointCloud_XYZRGBA_append(PyPointCloud *
self, PyObject *xyzObj, PyObject *rgbaObj);
114 static PyObject *PyPointCloud_XYZNormal_append(PyPointCloud *
self, PyObject *xyz_nxnynz_curvObj);
115 static PyObject *PyPointCloud_XYZINormal_append(PyPointCloud *
self, PyObject *xyz_i_nxnynz_curvObj);
116 static PyObject *PyPointCloud_XYZRGBNormal_append(PyPointCloud *
self, PyObject *xyz_i_nxnynz_curvObj, PyObject *rgbaObj);
118 static PyPointCloud* createEmptyPyPointCloud();
123 static PyObject* PyPointCloud_GetType(PyPointCloud *
self,
void *closure);
124 static PyObject* PyPointCloud_GetSize(PyPointCloud *
self,
void *closure);
125 static PyObject* PyPointCloud_GetHeight(PyPointCloud *
self,
void *closure);
126 static PyObject* PyPointCloud_GetWidth(PyPointCloud *
self,
void *closure);
127 static PyObject* PyPointCloud_GetEmpty(PyPointCloud *
self,
void *closure);
128 static PyObject* PyPointCloud_GetOrganized(PyPointCloud *
self,
void *closure);
129 static PyObject* PyPointCloud_GetDense(PyPointCloud *
self,
void *closure);
130 static int PyPointCloud_SetDense(PyPointCloud *
self, PyObject *value,
void *closure);
131 static PyObject* PyPointCloud_GetFields(PyPointCloud *
self,
void *closure);
136 static Py_ssize_t PyPointCloud_seqLength(PyPointCloud *
self);
137 static PyObject *PyPointCloud_seqConcat(PyPointCloud *
self, PyObject *rhs);
138 static PyObject *PyPointCloud_seqRepeat(PyPointCloud *
self, Py_ssize_t size);
139 static PyObject *PyPointCloud_seqItem(PyPointCloud *
self, Py_ssize_t size);
140 static int PyPointCloud_seqAssItem(PyPointCloud *
self, Py_ssize_t size, PyObject *point);
141 static PyObject *PyPointCloud_seqInplaceConcat(PyPointCloud *
self, PyObject *rhs);
142 static PyObject *PyPointCloud_seqInplaceRepeat(PyPointCloud *
self, Py_ssize_t size);
147 static Py_ssize_t PyPointCloud_mappingLength(PyPointCloud *
self);
148 static PyObject *PyPointCloud_mappingGetElem(PyPointCloud *
self, PyObject *key);
149 static int PyPointCloud_mappingSetElem(PyPointCloud *
self, PyObject *key, PyObject *value);
154 static PyObject* PyPointCloud_Reduce(PyPointCloud *
self, PyObject *args);
155 static PyObject* PyPointCloud_SetState(PyPointCloud *
self, PyObject *args);
160 static PyObject *PyPointCloud_fromXYZ(PyPointCloud *
self, PyObject *args);
161 static PyObject *PyPointCloud_fromXYZI(PyPointCloud *
self, PyObject *args);
162 static PyObject *PyPointCloud_fromXYZRGBA(PyPointCloud *
self, PyObject *args);
163 static PyObject *PyPointCloud_fromTopography(PyPointCloud *
self, PyObject *args, PyObject *kwds);
169 static PyMethodDef PyPointCloud_methods[];
170 static PyTypeObject PyPointCloudType;
171 static PyModuleDef PyPointCloudModule;
172 static PyGetSetDef PyPointCloud_getseters[];
173 static PySequenceMethods PyPointCloud_sequenceProtocol;
174 static PyMappingMethods PyPointCloud_mappingProtocol;
176 static void PyPointCloud_addTpDict(PyObject *tp_dict);
192 static void PyPoint_dealloc(PyPoint *
self);
193 static PyObject* PyPoint_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
194 static int PyPoint_init(PyPoint *
self, PyObject *args, PyObject *kwds);
200 static PyObject *PyPoint_name(PyPoint *
self);
201 static PyObject *PyPoint_repr(PyPoint *
self);
206 static PyObject* PyPoint_GetType(PyPoint *
self,
void *closure);
208 static PyObject* PyPoint_GetXYZ(PyPoint *
self,
void *closure);
209 static int PyPoint_SetXYZ(PyPoint *
self, PyObject *value,
void *closure);
211 static PyObject* PyPoint_GetIntensity(PyPoint *
self,
void *closure);
212 static int PyPoint_SetIntensity(PyPoint *
self, PyObject *value,
void *closure);
214 static PyObject* PyPoint_GetRgb(PyPoint *
self,
void *closure);
215 static int PyPoint_SetRgb(PyPoint *
self, PyObject *value,
void *closure);
217 static PyObject* PyPoint_GetRgba(PyPoint *
self,
void *closure);
218 static int PyPoint_SetRgba(PyPoint *
self, PyObject *value,
void *closure);
220 static PyObject* PyPoint_GetCurvature(PyPoint *
self,
void *closure);
221 static int PyPoint_SetCurvature(PyPoint *
self, PyObject *value,
void *closure);
223 static PyObject* PyPoint_GetNormal(PyPoint *
self,
void *closure);
224 static int PyPoint_SetNormal(PyPoint *
self, PyObject *value,
void *closure);
229 static PyObject* PyPoint_mappingGetElem(PyPoint*
self, PyObject* key);
230 static int PyPoint_mappingSetElem(PyPoint*
self, PyObject* key, PyObject* value);
236 static PyMethodDef PyPoint_methods[];
237 static PyTypeObject PyPointType;
238 static PyModuleDef PyPointModule;
239 static PyGetSetDef PyPoint_getseters[];
240 static PyMappingMethods PyPoint_mappingProtocol;
242 static void PyPoint_addTpDict(PyObject *tp_dict);
260 #define PyPolygonMesh_Check(op) PyObject_TypeCheck(op, &PythonPCL::PyPolygonMeshType) 265 static void PyPolygonMesh_dealloc(PyPolygonMesh *
self);
266 static PyObject* PyPolygonMesh_new(PyTypeObject *type, PyObject *args, PyObject *kwds);
267 static int PyPolygonMesh_init(PyPolygonMesh *
self, PyObject *args, PyObject *kwds);
273 static PyObject *PyPolygonMesh_name(PyPolygonMesh *
self);
274 static PyObject *PyPolygonMesh_repr(PyPolygonMesh *
self);
275 static PyObject *PyPolygonMesh_data(PyPolygonMesh *
self);
277 static PyObject *PyPolygonMesh_get(PyPolygonMesh *
self, PyObject *args, PyObject *kwds);
278 static PyObject* PyPolygonMesh_getCloud(PyPolygonMesh *
self, PyObject *args);
279 static PyObject* PyPolygonMesh_getPolygons(PyPolygonMesh *
self, PyObject *args);
284 static PyObject* PyPolygonMesh_Reduce(PyPolygonMesh *
self, PyObject *args);
285 static PyObject* PyPolygonMesh_SetState(PyPolygonMesh *
self, PyObject *args);
290 static PyObject* PyPolygonMesh_mappingGetElem(PyPolygonMesh*
self, PyObject* key);
291 static int PyPolygonMesh_mappingLength(PyPolygonMesh*
self);
296 static PyObject* PyPolygonMesh_FromCloudAndPolygons(PyObject *
self, PyObject *args, PyObject *kwds);
297 static PyObject* PyPolygonMesh_FromOrganizedCloud(PyObject *
self, PyObject *args, PyObject *kwds);
298 static PyObject* PyPolygonMesh_FromTopography(PyObject *
self, PyObject *args, PyObject *kwds);
303 static PyObject* PyPolygonMesh_getNrOfPolygons(PyPolygonMesh *
self,
void *closure);
309 static PyMethodDef PyPolygonMesh_methods[];
310 static PyTypeObject PyPolygonMeshType;
311 static PyModuleDef PyPolygonMeshModule;
312 static PyGetSetDef PyPolygonMesh_getseters[];
313 static PyMappingMethods PyPolygonMesh_mappingProtocol;
315 static void PyPolygonMesh_addTpDict(PyObject *tp_dict);
317 static PyPolygonMesh* createEmptyPyPolygonMesh();
320 static PyObject* parseObjAsFloat32Array(PyObject *obj, npy_intp mRequired, npy_intp &n, float32 **elemRows);
321 static PyObject* parseObjAsUInt8Array(PyObject *obj, npy_intp mRequired, npy_intp &n, uint8_t **elemRows);
323 static void PythonPCL_SetString(PyObject *exception,
const char *
string);
324 static void PythonPCL_SetString(PyObject *exception,
const std::string &
string);
331 #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