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

Method InitWithCellData

Testing/GenericBridge/vtkBridgeAttribute.cxx:423–432  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Set the current attribute to be centered on cells with attribute `i' of `d'. \pre d_exists: d!=0 \pre valid_range: (i>=0) && (i GetNumberOfArrays())

Source from the content-addressed store, hash-verified

421// \pre d_exists: d!=0
422// \pre valid_range: (i>=0) && (i<d->GetNumberOfArrays())
423void vtkBridgeAttribute::InitWithCellData(vtkCellData* d, int i)
424{
425 assert("pre: d_exists" && d != nullptr);
426 assert("pre: valid_range" && (i >= 0) && (i < d->GetNumberOfArrays()));
427 vtkSetObjectBodyMacro(Pd, vtkPointData, static_cast<vtkPointData*>(nullptr));
428 vtkSetObjectBodyMacro(Cd, vtkCellData, d);
429 this->Data = d;
430 this->AttributeNumber = i;
431 this->AllocateInternalTuple(this->GetNumberOfComponents());
432}
433
434//------------------------------------------------------------------------------
435// Description:

Callers 1

SetDataSetMethod · 0.80

Calls 4

AllocateInternalTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.95
assertFunction · 0.50
GetNumberOfArraysMethod · 0.45

Tested by

no test coverage detected