Commit 0d7a3e64 authored by Mike Rye's avatar Mike Rye
Browse files

Add support for ParaView 5.4/VeloView

parent 698665cd
......@@ -5,6 +5,7 @@ set(CMAKE_CXX_STANDARD 11)
# Find ParaView
if (NOT ParaView_BINARY_DIR)
find_package(ParaView REQUIRED)
message(STATUS "PARAVIEW_USE_FILE: ${PARAVIEW_USE_FILE}")
include(${PARAVIEW_USE_FILE})
endif()
include(ParaViewPlugins)
......
......@@ -982,7 +982,7 @@ BOOST_PP_SEQ_FOR_EACH(_DEFINE_CONVERTER, _, PCLP_POINT_TYPES)
//------------------------------------------------------------------------------
template <typename PointType>
std::string vtkPCLConversions::GetPointTypeName()
std::string vtkPCLConversions::GetPointTypeName(PointType const & point)
{
return PointMeta<PointType>::GetName();
}
......@@ -1045,7 +1045,9 @@ _PCLP_INSTANTIATE_GetPointTypeIndex(std::set<std::string> const &)
//------------------------------------------------------------------------------
// Template specialization for all PCL XYZ point types.
#define _PCLP_INSTANTIATE_POINT_TYPE_METHODS(r, data, i, PointType) \
template std::string vtkPCLConversions::GetPointTypeName<PointType>(); \
template std::string vtkPCLConversions::GetPointTypeName<PointType>( \
PointType const & point \
); \
\
template void vtkPCLConversions::GetFieldNames<PointType>(std::set<std::string> &); \
\
......
......@@ -76,10 +76,11 @@ public:
* @brief Return the point type as a string.
* @tparam PointType The PCL point type.
* @return The name of the point, with the "pcl::" prefix.
* @todo Remove the argument when dropping support for ParaView 5.4.
*/
template <typename PointType>
static
std::string GetPointTypeName();
std::string GetPointTypeName(PointType const & point);
/*!
* @brief Get the index of the best matching PCL point type in the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment