MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / updateImpl

Method updateImpl

apps/modeler/src/points_actor_item.cpp:91–101  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

89
90//////////////////////////////////////////////////////////////////////////////////////////////
91void
92pcl::modeler::PointsActorItem::updateImpl()
93{
94 vtkSmartPointer<vtkDataArray> scalars;
95 cloud_mesh_->getColorScalarsFromField(scalars, color_scheme_);
96 poly_data_->GetPointData()->SetScalars(scalars);
97
98 double minmax[2];
99 scalars->GetRange(minmax);
100 actor_->GetMapper()->SetScalarRange(minmax);
101}
102
103//////////////////////////////////////////////////////////////////////////////////////////////
104void

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected