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

Method SetDistance

Interaction/Widgets/vtkCompassRepresentation.cxx:590–600  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

588
589//------------------------------------------------------------------------------
590void vtkCompassRepresentation::SetDistance(double distance)
591{
592 distance = std::max<double>(this->DistanceRepresentation->GetMinimumValue(),
593 std::min<double>(distance, this->DistanceRepresentation->GetMaximumValue()));
594 if (this->Distance != distance)
595 {
596 this->Distance = distance;
597 this->Modified();
598 this->DistanceRepresentation->SetValue(this->Distance);
599 }
600}
601
602//------------------------------------------------------------------------------
603void vtkCompassRepresentation::SetMaximumDistance(double distance)

Callers 4

SetMaximumDistanceMethod · 0.95
SetMinimumDistanceMethod · 0.95
UpdateDistanceMethod · 0.95
EndDistanceMethod · 0.95

Calls 2

ModifiedMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected