PointCloudLibrary/pcl

Use strongly typed 'enum' instead of 'int' for properties in PCLVisualizer code

Open

#1,692 opened on Aug 24, 2016

View on GitHub
 (11 comments) (0 reactions) (0 assignees)C++ (4,506 forks)batch import
effort: lowgood first issuekind: todomodule: visualization

Repository metrics

Stars
 (9,023 stars)
PR merge metrics
 (Avg merge 8d 7h) (3 merged PRs in 30d)

Description

Right now functions like setPointCloudRenderingProperties use an int to represent the property to be modified. This means that there is no way of knowing which properties are accepted by the function. A solution is to use strongly typed enum instead of int for properties. The issue was brought up in #1668.

Contributor guide