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

Method ShallowCopy

Rendering/Core/vtkColorTransferFunction.cxx:1456–1477  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1454
1455//------------------------------------------------------------------------------
1456void vtkColorTransferFunction::ShallowCopy(vtkColorTransferFunction* f)
1457{
1458 if (f != nullptr)
1459 {
1460 this->Superclass::DeepCopy(f);
1461
1462 this->Clamping = f->Clamping;
1463 this->ColorSpace = f->ColorSpace;
1464 this->HSVWrap = f->HSVWrap;
1465 this->Scale = f->Scale;
1466
1467 int i;
1468 this->RemoveAllPoints();
1469 for (i = 0; i < f->GetSize(); i++)
1470 {
1471 double val[6];
1472 f->GetNodeValue(i, val);
1473 this->AddRGBPoint(val[0], val[1], val[2], val[3], val[4], val[5]);
1474 }
1475 this->Modified();
1476 }
1477}
1478
1479//------------------------------------------------------------------------------
1480// Accelerate the mapping by copying the data in 32-bit chunks instead

Callers

nothing calls this directly

Calls 5

RemoveAllPointsMethod · 0.95
AddRGBPointMethod · 0.95
GetSizeMethod · 0.45
GetNodeValueMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected