MCPcopy Create free account
hub / github.com/Kitware/ParaView / Copy

Method Copy

Remoting/ServerManager/vtkSMDoubleMapProperty.cxx:333–348  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

331
332//---------------------------------------------------------------------------
333void vtkSMDoubleMapProperty::Copy(vtkSMProperty* src)
334{
335 vtkSMDoubleMapProperty* other = vtkSMDoubleMapProperty::SafeDownCast(src);
336 if (other &&
337 (other->Private->NumberOfComponents != this->Private->NumberOfComponents ||
338 other->Private->Map.size() != this->Private->Map.size() ||
339 !std::equal(
340 other->Private->Map.begin(), other->Private->Map.end(), this->Private->Map.begin())))
341 {
342 this->Private->Map = other->Private->Map;
343 this->Private->NumberOfComponents = other->Private->NumberOfComponents;
344 this->Modified();
345 }
346
347 this->Superclass::Copy(src);
348}
349
350//---------------------------------------------------------------------------
351void vtkSMDoubleMapProperty::ResetToXMLDefaults()

Callers

nothing calls this directly

Calls 5

equalFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected