|
1 |
| -# -*- coding: utf-8 -*- |
2 |
| -# cython: embedsignature=True |
3 |
| -from libcpp cimport bool |
4 |
| - |
5 |
| -from collections import Sequence |
6 |
| -import numbers |
7 |
| -import numpy as np |
8 |
| -cimport numpy as cnp |
9 |
| - |
10 |
| -cimport pcl_defs as cpp |
11 |
| -cimport pcl_visualization_defs as vis |
12 |
| - |
13 |
| -cimport cython |
14 |
| -# from cython.operator import dereference as deref |
15 |
| -from cython.operator cimport dereference as deref, preincrement as inc |
16 |
| - |
17 |
| -from cpython cimport Py_buffer |
18 |
| - |
19 |
| -from libcpp.string cimport string |
20 |
| -from libcpp cimport bool |
21 |
| -from libcpp.vector cimport vector |
22 |
| - |
23 |
| -from boost_shared_ptr cimport sp_assign |
24 |
| - |
25 |
| -cnp.import_array() |
26 |
| - |
27 |
| -### Enum ### |
28 |
| - |
29 |
| -### Enum Setting ### |
30 |
| -# pcl_visualization_defs.pxd |
31 |
| -# cdef enum RenderingProperties: |
32 |
| -# Re: [Cython] resolving name conflict -- does not work for enums !? |
33 |
| -# https://www.mail-archive.com/cython-dev@codespeak.net/msg02494.html |
34 |
| -PCLVISUALIZER_POINT_SIZE = vis.PCL_VISUALIZER_POINT_SIZE |
35 |
| -PCLVISUALIZER_OPACITY = vis.PCL_VISUALIZER_OPACITY |
36 |
| -PCLVISUALIZER_LINE_WIDTH = vis.PCL_VISUALIZER_LINE_WIDTH |
37 |
| -PCLVISUALIZER_FONT_SIZE = vis.PCL_VISUALIZER_FONT_SIZE |
38 |
| -PCLVISUALIZER_COLOR = vis.PCL_VISUALIZER_COLOR |
39 |
| -PCLVISUALIZER_REPRESENTATION = vis.PCL_VISUALIZER_REPRESENTATION |
40 |
| -PCLVISUALIZER_IMMEDIATE_RENDERING = vis.PCL_VISUALIZER_IMMEDIATE_RENDERING |
41 |
| - |
42 |
| -# cdef enum RenderingRepresentationProperties: |
43 |
| -PCLVISUALIZER_REPRESENTATION_POINTS = vis.PCL_VISUALIZER_REPRESENTATION_POINTS |
44 |
| -PCLVISUALIZER_REPRESENTATION_WIREFRAME = vis.PCL_VISUALIZER_REPRESENTATION_WIREFRAME |
45 |
| -PCLVISUALIZER_REPRESENTATION_SURFACE = vis.PCL_VISUALIZER_REPRESENTATION_SURFACE |
46 |
| - |
47 |
| -### Enum Setting(define Class InternalType) ### |
48 |
| - |
49 |
| -### |
50 |
| - |
51 |
| -# PointCloud/Common |
52 |
| -# NG |
53 |
| -# include "pxi/PointCloud__PointXYZ.pxi" |
54 |
| -# include "pxi/PointCloud__PointXYZI.pxi" |
55 |
| -# include "pxi/Common/RangeImage/RangeImages.pxi" |
56 |
| - |
57 |
| -# VTK - Handler(Color) |
58 |
| -include "pxi/Visualization/Handler/PointCloudColorHandleringCustom.pxi" |
59 |
| -include "pxi/Visualization/Handler/PointCloudColorHandleringGenericField.pxi" |
60 |
| -include "pxi/Visualization/Handler/PointCloudColorHandleringHSVField.pxi" |
61 |
| -include "pxi/Visualization/Handler/PointCloudColorHandleringRandom.pxi" |
62 |
| -include "pxi/Visualization/Handler/PointCloudColorHandleringRGBField.pxi" |
63 |
| -include "pxi/Visualization/Handler/PointCloudGeometryHandleringCustom.pxi" |
64 |
| -include "pxi/Visualization/Handler/PointCloudGeometryHandleringSurfaceNormal.pxi" |
65 |
| -include "pxi/Visualization/Handler/PointCloudGeometryHandleringXYZ.pxi" |
66 |
| - |
67 |
| -# VTK |
68 |
| -include "pxi/Visualization/CloudViewing.pxi" |
69 |
| -include "pxi/Visualization/PCLVisualizering.pxi" |
70 |
| -include "pxi/Visualization/PCLHistogramViewing.pxi" |
71 |
| -# include "pxi/Visualization/RangeImageVisualization.pxi" |
72 |
| -include "pxi/Visualization/vtkSmartPointerRenderWindow.pxi" |
73 |
| - |
74 |
| -# NG(vtk Link Error) |
75 |
| -# include "pxi/Visualization/RangeImageVisualization.pxi" |
76 |
| -# include "pxi/Visualization/PCLHistogramViewing.pxi" |
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# cython: embedsignature=True |
| 3 | +from libcpp cimport bool |
| 4 | + |
| 5 | +from collections import Sequence |
| 6 | +import numbers |
| 7 | +import numpy as np |
| 8 | +cimport numpy as cnp |
| 9 | + |
| 10 | +cimport pcl_defs as cpp |
| 11 | +cimport pcl_visualization_defs as pcl_vis |
| 12 | + |
| 13 | +cimport cython |
| 14 | +# from cython.operator import dereference as deref |
| 15 | +from cython.operator cimport dereference as deref, preincrement as inc |
| 16 | + |
| 17 | +from cpython cimport Py_buffer |
| 18 | + |
| 19 | +from libcpp.string cimport string |
| 20 | +from libcpp cimport bool |
| 21 | +from libcpp.vector cimport vector |
| 22 | + |
| 23 | +from boost_shared_ptr cimport sp_assign |
| 24 | + |
| 25 | +cnp.import_array() |
| 26 | + |
| 27 | +### Enum ### |
| 28 | + |
| 29 | +### Enum Setting ### |
| 30 | +# pcl_visualization_defs.pxd |
| 31 | +# cdef enum RenderingProperties: |
| 32 | +# Re: [Cython] resolving name conflict -- does not work for enums !? |
| 33 | +# https://www.mail-archive.com/cython-dev@codespeak.net/msg02494.html |
| 34 | +PCLVISUALIZER_POINT_SIZE = pcl_vis.PCL_VISUALIZER_POINT_SIZE |
| 35 | +PCLVISUALIZER_OPACITY = pcl_vis.PCL_VISUALIZER_OPACITY |
| 36 | +PCLVISUALIZER_LINE_WIDTH = pcl_vis.PCL_VISUALIZER_LINE_WIDTH |
| 37 | +PCLVISUALIZER_FONT_SIZE = pcl_vis.PCL_VISUALIZER_FONT_SIZE |
| 38 | +PCLVISUALIZER_COLOR = pcl_vis.PCL_VISUALIZER_COLOR |
| 39 | +PCLVISUALIZER_REPRESENTATION = pcl_vis.PCL_VISUALIZER_REPRESENTATION |
| 40 | +PCLVISUALIZER_IMMEDIATE_RENDERING = pcl_vis.PCL_VISUALIZER_IMMEDIATE_RENDERING |
| 41 | + |
| 42 | +# cdef enum RenderingRepresentationProperties: |
| 43 | +PCLVISUALIZER_REPRESENTATION_POINTS = pcl_vis.PCL_VISUALIZER_REPRESENTATION_POINTS |
| 44 | +PCLVISUALIZER_REPRESENTATION_WIREFRAME = pcl_vis.PCL_VISUALIZER_REPRESENTATION_WIREFRAME |
| 45 | +PCLVISUALIZER_REPRESENTATION_SURFACE = pcl_vis.PCL_VISUALIZER_REPRESENTATION_SURFACE |
| 46 | + |
| 47 | +### Enum Setting(define Class InternalType) ### |
| 48 | + |
| 49 | +### |
| 50 | + |
| 51 | +# PointCloud/Common |
| 52 | +# NG |
| 53 | +# include "pxi/PointCloud__PointXYZ.pxi" |
| 54 | +# include "pxi/PointCloud__PointXYZI.pxi" |
| 55 | +# include "pxi/Common/RangeImage/RangeImages.pxi" |
| 56 | + |
| 57 | +# VTK - Handler(Color) |
| 58 | +include "pxi/Visualization/Handler/PointCloudColorHandleringCustom.pxi" |
| 59 | +include "pxi/Visualization/Handler/PointCloudColorHandleringGenericField.pxi" |
| 60 | +include "pxi/Visualization/Handler/PointCloudColorHandleringHSVField.pxi" |
| 61 | +include "pxi/Visualization/Handler/PointCloudColorHandleringRandom.pxi" |
| 62 | +include "pxi/Visualization/Handler/PointCloudColorHandleringRGBField.pxi" |
| 63 | +include "pxi/Visualization/Handler/PointCloudGeometryHandleringCustom.pxi" |
| 64 | +include "pxi/Visualization/Handler/PointCloudGeometryHandleringSurfaceNormal.pxi" |
| 65 | +include "pxi/Visualization/Handler/PointCloudGeometryHandleringXYZ.pxi" |
| 66 | + |
| 67 | +# VTK |
| 68 | +include "pxi/Visualization/CloudViewing.pxi" |
| 69 | +include "pxi/Visualization/PCLVisualizering.pxi" |
| 70 | +include "pxi/Visualization/PCLHistogramViewing.pxi" |
| 71 | +# include "pxi/Visualization/RangeImageVisualization.pxi" |
| 72 | +include "pxi/Visualization/vtkSmartPointerRenderWindow.pxi" |
| 73 | + |
| 74 | +# NG(vtk Link Error) |
| 75 | +# include "pxi/Visualization/RangeImageVisualization.pxi" |
| 76 | +# include "pxi/Visualization/PCLHistogramViewing.pxi" |
0 commit comments