Deprecate SetIncludeOffset and rename to SetVOIIsGlobal

This commit is contained in:
Gunther H. Weber 2023-03-07 20:42:24 -08:00 committed by Kenneth Moreland
parent e013ad126f
commit e55b700f75
2 changed files with 12 additions and 3 deletions

@ -74,7 +74,7 @@ vtkm::cont::DataSet ExtractStructured::DoExecute(const vtkm::cont::DataSet& inpu
this->VOI,
this->SampleRate,
this->IncludeBoundary,
this->IncludeOffset);
this->VOIIsGlobal);
// Create map arrays for mapping fields. Could potentially save some time to first check to see
// if these arrays would be used.

@ -78,8 +78,17 @@ public:
VTKM_CONT
void SetIncludeBoundary(bool value) { this->IncludeBoundary = value; }
/// Get if VOI is specified in global point (rather than in local) indices
VTKM_CONT
void SetIncludeOffset(bool value) { this->IncludeOffset = value; }
bool GetVOIIsGlobal() const { return this->VOIIsGlobal; }
/// Set if VOI is specified in global point (rather than in local) indices
VTKM_CONT
void SetVOIIsGlobal(bool value) { this->VOIIsGlobal = value; }
/// Set if VOI is specified in global point (rather than in local) indices
/// (depracted in favor of a method with a name that better conveys purpose)
VTKM_DEPRECATED(2.0)
VTKM_CONT
void SetIncludeOffset(bool value) { this->VOIIsGlobal = value; }
private:
VTKM_CONT
@ -88,7 +97,7 @@ private:
vtkm::RangeId3 VOI = vtkm::RangeId3(0, -1, 0, -1, 0, -1);
vtkm::Id3 SampleRate = { 1, 1, 1 };
bool IncludeBoundary = false;
bool IncludeOffset = false;
bool VOIIsGlobal = false;
};
} // namespace entity_extraction