File: pcl_visualization.pyx

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 (75 lines) | stat: -rw-r--r-- 2,675 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -*- coding: utf-8 -*-
# cython: embedsignature=True
from libcpp cimport bool

from collections import Sequence
import numbers
import numpy as np
cimport numpy as cnp

cimport pcl_defs as cpp
cimport pcl_visualization_defs as vis

cimport cython
# from cython.operator import dereference as deref
from cython.operator cimport dereference as deref, preincrement as inc

from cpython cimport Py_buffer

from libcpp.string cimport string
from libcpp cimport bool
from libcpp.vector cimport vector

from boost_shared_ptr cimport sp_assign

cnp.import_array()

### Enum ###

### Enum Setting ###
# pcl_visualization_defs.pxd
# cdef enum RenderingProperties:
# Re: [Cython] resolving name conflict -- does not work for enums !? 
# https://www.mail-archive.com/cython-dev@codespeak.net/msg02494.html
PCLVISUALIZER_POINT_SIZE = vis.PCL_VISUALIZER_POINT_SIZE
PCLVISUALIZER_OPACITY = vis.PCL_VISUALIZER_OPACITY
PCLVISUALIZER_LINE_WIDTH = vis.PCL_VISUALIZER_LINE_WIDTH
PCLVISUALIZER_FONT_SIZE = vis.PCL_VISUALIZER_FONT_SIZE
PCLVISUALIZER_COLOR = vis.PCL_VISUALIZER_COLOR
PCLVISUALIZER_REPRESENTATION = vis.PCL_VISUALIZER_REPRESENTATION
PCLVISUALIZER_IMMEDIATE_RENDERING = vis.PCL_VISUALIZER_IMMEDIATE_RENDERING

# cdef enum RenderingRepresentationProperties:
PCLVISUALIZER_REPRESENTATION_POINTS = vis.PCL_VISUALIZER_REPRESENTATION_POINTS
PCLVISUALIZER_REPRESENTATION_WIREFRAME = vis.PCL_VISUALIZER_REPRESENTATION_WIREFRAME
PCLVISUALIZER_REPRESENTATION_SURFACE = vis.PCL_VISUALIZER_REPRESENTATION_SURFACE

### Enum Setting(define Class InternalType) ###

###

# PointCloud/Common
# NG
# include "pxi/PointCloud__PointXYZ.pxi"
# include "pxi/PointCloud__PointXYZI.pxi"
# include "pxi/Common/RangeImage/RangeImages.pxi"

# VTK - Handler(Color)
include "pxi/Visualization/Handler/PointCloudColorHandleringCustom.pxi"
include "pxi/Visualization/Handler/PointCloudColorHandleringGenericField.pxi"
include "pxi/Visualization/Handler/PointCloudColorHandleringHSVField.pxi"
include "pxi/Visualization/Handler/PointCloudColorHandleringRandom.pxi"
include "pxi/Visualization/Handler/PointCloudColorHandleringRGBField.pxi"
include "pxi/Visualization/Handler/PointCloudGeometryHandleringCustom.pxi"
include "pxi/Visualization/Handler/PointCloudGeometryHandleringSurfaceNormal.pxi"
include "pxi/Visualization/Handler/PointCloudGeometryHandleringXYZ.pxi"

# VTK
include "pxi/Visualization/CloudViewing.pxi"
include "pxi/Visualization/PCLVisualizering.pxi"
include "pxi/Visualization/PCLHistogramViewing.pxi"
# include "pxi/Visualization/RangeImageVisualization.pxi"

# NG(vtk Link Error)
# include "pxi/Visualization/RangeImageVisualization.pxi"
# include "pxi/Visualization/PCLHistogramViewing.pxi"