@@ -1400,7 +1400,7 @@ pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties (
14001400 // Check if the mapper has scalars
14011401 if (!actor->GetMapper ()->GetInput ()->GetPointData ()->GetScalars ())
14021402 break ;
1403-
1403+
14041404 // Check that scalars are not unisgned char (i.e. check if a LUT is used to colormap scalars assuming vtk ColorMode is Default)
14051405 if (actor->GetMapper ()->GetInput ()->GetPointData ()->GetScalars ()->IsA (" vtkUnsignedCharArray" ))
14061406 break ;
@@ -1411,7 +1411,7 @@ pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties (
14111411 PCL_WARN (" [setPointCloudRenderingProperties] Range max must be greater than range min!\n " );
14121412 return (false );
14131413 }
1414-
1414+
14151415 // Update LUT
14161416 actor->GetMapper ()->GetLookupTable ()->SetRange (val1, val2);
14171417 actor->GetMapper ()->UseLookupTableScalarRangeOn ();
@@ -1563,15 +1563,15 @@ pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties (
15631563 // Check if the mapper has scalars
15641564 if (!actor->GetMapper ()->GetInput ()->GetPointData ()->GetScalars ())
15651565 break ;
1566-
1566+
15671567 // Check that scalars are not unisgned char (i.e. check if a LUT is used to colormap scalars assuming vtk ColorMode is Default)
15681568 if (actor->GetMapper ()->GetInput ()->GetPointData ()->GetScalars ()->IsA (" vtkUnsignedCharArray" ))
15691569 break ;
15701570
15711571 // Get range limits from existing LUT
15721572 double *range;
15731573 range = actor->GetMapper ()->GetLookupTable ()->GetRange ();
1574-
1574+
15751575 actor->GetMapper ()->ScalarVisibilityOn ();
15761576 actor->GetMapper ()->SetScalarRange (range[0 ], range[1 ]);
15771577 vtkSmartPointer<vtkLookupTable> table;
@@ -1587,7 +1587,7 @@ pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties (
15871587 // Check if the mapper has scalars
15881588 if (!actor->GetMapper ()->GetInput ()->GetPointData ()->GetScalars ())
15891589 break ;
1590-
1590+
15911591 // Check that scalars are not unisgned char (i.e. check if a LUT is used to colormap scalars assuming vtk ColorMode is Default)
15921592 if (actor->GetMapper ()->GetInput ()->GetPointData ()->GetScalars ()->IsA (" vtkUnsignedCharArray" ))
15931593 break ;
@@ -1717,7 +1717,7 @@ pcl::visualization::PCLVisualizer::setShapeRenderingProperties (
17171717 // Check if the mapper has scalars
17181718 if (!actor->GetMapper ()->GetInput ()->GetPointData ()->GetScalars ())
17191719 break ;
1720-
1720+
17211721 // Check that scalars are not unisgned char (i.e. check if a LUT is used to colormap scalars assuming vtk ColorMode is Default)
17221722 if (actor->GetMapper ()->GetInput ()->GetPointData ()->GetScalars ()->IsA (" vtkUnsignedCharArray" ))
17231723 break ;
@@ -1728,7 +1728,7 @@ pcl::visualization::PCLVisualizer::setShapeRenderingProperties (
17281728 PCL_WARN (" [setShapeRenderingProperties] Range max must be greater than range min!\n " );
17291729 return (false );
17301730 }
1731-
1731+
17321732 // Update LUT
17331733 actor->GetMapper ()->GetLookupTable ()->SetRange (val1, val2);
17341734 actor->GetMapper ()->UseLookupTableScalarRangeOn ();
@@ -1861,11 +1861,11 @@ pcl::visualization::PCLVisualizer::setShapeRenderingProperties (
18611861 // Check that scalars are not unisgned char (i.e. check if a LUT is used to colormap scalars assuming vtk ColorMode is Default)
18621862 if (actor->GetMapper ()->GetInput ()->GetPointData ()->GetScalars ()->IsA (" vtkUnsignedCharArray" ))
18631863 break ;
1864-
1864+
18651865 // Get range limits from existing LUT
18661866 double *range;
18671867 range = actor->GetMapper ()->GetLookupTable ()->GetRange ();
1868-
1868+
18691869 actor->GetMapper ()->ScalarVisibilityOn ();
18701870 actor->GetMapper ()->SetScalarRange (range[0 ], range[1 ]);
18711871 vtkSmartPointer<vtkLookupTable> table;
@@ -3005,7 +3005,7 @@ pcl::visualization::PCLVisualizer::addPolygonMesh (const pcl::PolygonMesh &poly_
30053005 pcl::fromPCLPointCloud2 (poly_mesh.cloud , *point_cloud);
30063006 poly_points->SetNumberOfPoints (point_cloud->size ());
30073007
3008- for (std::size_t i = 0 ; i < point_cloud->size (); ++i)
3008+ for (std::size_t i = 0 ; i < point_cloud->size (); ++i)
30093009 {
30103010 const pcl::PointXYZ& p = (*point_cloud)[i];
30113011 poly_points->InsertPoint (i, p.x , p.y , p.z );
@@ -3175,7 +3175,7 @@ pcl::visualization::PCLVisualizer::updatePolygonMesh (
31753175
31763176 // Update the cells
31773177 cells = vtkSmartPointer<vtkCellArray>::New ();
3178-
3178+
31793179 const auto idx = details::fillCells (lookup, verts, cells, max_size_of_polygon);
31803180
31813181 cells->GetData ()->SetNumberOfValues (idx);
@@ -3419,7 +3419,7 @@ pcl::visualization::PCLVisualizer::addTextureMesh (const pcl::TextureMesh &mesh,
34193419 mapper->MapDataArrayToMultiTextureAttribute (tu,
34203420 this_coordinates_name.c_str (),
34213421 vtkDataObject::FIELD_ASSOCIATION_POINTS);
3422-
3422+
34233423 polydata->GetPointData ()->AddArray (coordinates);
34243424 actor->GetProperty ()->SetTexture (tu, texture);
34253425 ++tex_id;
@@ -4338,7 +4338,7 @@ pcl::visualization::PCLVisualizer::close ()
43384338void
43394339pcl::visualization::PCLVisualizer::removeCorrespondences (
43404340 const std::string &id, int viewport)
4341- {
4341+ {
43424342 removeShape (id, viewport);
43434343}
43444344
@@ -4571,7 +4571,7 @@ pcl::visualization::PCLVisualizer::getUniqueCameraFile (int argc, char **argv)
45714571 p_file_indices = pcl::console::parse_file_extension_argument (argc, argv, " .pcd" );
45724572 if (!p_file_indices.empty ())
45734573 {
4574- boost::uuids::detail::sha1 sha1;
4574+ boost::uuids::detail::sha1 sha1;
45754575 bool valid = false ;
45764576
45774577 // Calculate sha1 using canonical paths
0 commit comments