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

Method SetTolerance

Interaction/Widgets/vtkMultiLineRepresentation.cxx:162–176  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

160
161//------------------------------------------------------------------------------
162void vtkMultiLineRepresentation::SetTolerance(int tol)
163{
164 int newTol = std::clamp(tol, 1, 100);
165 if (this->Tolerance == newTol)
166 {
167 return;
168 }
169
170 this->Tolerance = newTol;
171 for (vtkLineRepresentation* lineRepr : this->LineRepresentationVector)
172 {
173 lineRepr->SetTolerance(this->Tolerance);
174 }
175 this->Modified();
176}
177
178//------------------------------------------------------------------------------
179void vtkMultiLineRepresentation::SetResolution(int res)

Callers 15

vtkPlaneWidgetMethod · 0.45
vtkPointWidgetMethod · 0.45
DeepCopyMethod · 0.45
ShallowCopyMethod · 0.45
vtkBrokenLineWidgetMethod · 0.45
vtkSphereWidgetMethod · 0.45

Calls 2

clampFunction · 0.50
ModifiedMethod · 0.45

Tested by 4

testBugMethod · 0.36
TestResliceCursorWidget2Function · 0.36
TestResliceCursorWidget3Function · 0.36
TestOrthoPlanesFunction · 0.36