File: PointCloudColorHandleringCustom.pxi

package info (click to toggle)
python-pcl 0.3.0~rc1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,324 kB
  • sloc: python: 3,100; cpp: 292; makefile: 181; sh: 24; ansic: 12
file content (35 lines) | stat: -rw-r--r-- 1,016 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*-
cimport _pcl
cimport pcl_visualization
from _pcl cimport PointCloud_PointWithViewpoint
from _pcl cimport RangeImages
cimport pcl_defs as cpp
cimport numpy as cnp


cimport pcl_visualization_defs as pcl_vis
from boost_shared_ptr cimport sp_assign

cdef class PointCloudColorHandleringCustom:
    """
    """
    # cdef pcl_vis.PointCloudColorHandlerCustom_t *me

    def __cinit__(self):
        pass

    # void sp_assign[T](shared_ptr[T] &p, T *value)
    def __cinit__(self, _pcl.PointCloud pc, int r, int g, int b):
        sp_assign(self.thisptr_shared, new pcl_vis.PointCloudColorHandlerCustom[cpp.PointXYZ](pc.thisptr_shared, r, g, b))
        pass

    # def __cinit__(self, _pcl.RangeImages rangeImage, int r, int g, int b):
    #     sp_assign(self.thisptr_shared, new pcl_vis.PointCloudColorHandlerCustom[cpp.PointWithViewpoint](rangeImage.thisptr_shared, r, g, b))
    #     pass

    def __dealloc__(self):
        # del self.me
        pass