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

Method SetFunctionWeight

Common/DataModel/vtkImplicitSum.cxx:63–78  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

61
62//------------------------------------------------------------------------------
63void vtkImplicitSum::SetFunctionWeight(vtkImplicitFunction* f, double scale)
64{
65 int loc = this->FunctionList->IndexOfFirstOccurrence(f);
66 if (loc < 0)
67 {
68 vtkWarningMacro("Function not found in function list");
69 return;
70 }
71
72 if (this->Weights->GetValue(loc) != scale)
73 {
74 this->Modified();
75 this->Weights->SetValue(loc, scale);
76 this->CalculateTotalWeight();
77 }
78}
79
80//------------------------------------------------------------------------------
81void vtkImplicitSum::RemoveAllFunctions()

Callers

nothing calls this directly

Calls 5

CalculateTotalWeightMethod · 0.95
GetValueMethod · 0.45
ModifiedMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected