MCPcopy Create free account
hub / github.com/Kitware/VTK / SortAndUpdateRange

Method SortAndUpdateRange

Common/DataModel/vtkPiecewiseFunction.cxx:439–455  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

437
438//------------------------------------------------------------------------------
439void vtkPiecewiseFunction::SortAndUpdateRange(bool updateSearchMethod)
440{
441 // Use stable_sort to avoid shuffling of DuplicateScalars
442 std::stable_sort(
443 this->Internal->Nodes.begin(), this->Internal->Nodes.end(), this->Internal->CompareNodes);
444 bool modifiedInvoked = this->UpdateRange();
445 // If range is updated, Modified() has been called, don't call it again.
446 if (!modifiedInvoked)
447 {
448 this->Modified();
449 }
450
451 if (updateSearchMethod)
452 {
453 this->UpdateSearchMethod();
454 }
455}
456
457//------------------------------------------------------------------------------
458bool vtkPiecewiseFunction::UpdateRange()

Callers 6

SetNodeValueMethod · 0.95
AddPointMethod · 0.95
RemoveAllPointsMethod · 0.95
AdjustRangeMethod · 0.95
FillFromDataPointerMethod · 0.95

Calls 5

UpdateRangeMethod · 0.95
UpdateSearchMethodMethod · 0.95
beginMethod · 0.45
endMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected