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

Method SetLookupTable

Common/Core/vtkDataArray.cxx:330–345  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

328
329//------------------------------------------------------------------------------
330void vtkDataArray::SetLookupTable(vtkLookupTable* lut)
331{
332 if (this->LookupTable != lut)
333 {
334 if (this->LookupTable)
335 {
336 this->LookupTable->UnRegister(this);
337 }
338 this->LookupTable = lut;
339 if (this->LookupTable)
340 {
341 this->LookupTable->Register(this);
342 }
343 this->Modified();
344 }
345}
346
347//------------------------------------------------------------------------------
348double* vtkDataArray::GetTupleN(vtkIdType i, int n)

Calls 3

ModifiedMethod · 0.95
UnRegisterMethod · 0.45
RegisterMethod · 0.45

Tested by

no test coverage detected