Adding the ablitiy to set the scalar range of an Actor to get a consistent mapping of scalar values when running with MPI

This commit is contained in:
Matt Larsen 2017-02-09 15:38:40 -08:00
parent c487931f1f
commit c2f0dd5a64
2 changed files with 7 additions and 0 deletions

@ -132,5 +132,10 @@ const vtkm::Bounds &Actor::GetSpatialBounds() const
return this->Internals->SpatialBounds;
}
void Actor::SetScalarRange(const vtkm::Range &scalarRange)
{
this->Internals->ScalarRange = scalarRange;
}
}
} // namespace vtkm::rendering

@ -56,6 +56,8 @@ public:
const vtkm::Bounds &GetSpatialBounds() const;
void SetScalarRange(const vtkm::Range &scalarRange);
private:
struct InternalsType;
std::shared_ptr<InternalsType> Internals;