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

Method InitWithPointData

Testing/GenericBridge/vtkBridgeAttribute.cxx:407–416  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Set the current attribute to be centered on points 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

405// \pre d_exists: d!=0
406// \pre valid_range: (i>=0) && (i<d->GetNumberOfArrays())
407void vtkBridgeAttribute::InitWithPointData(vtkPointData* d, int i)
408{
409 assert("pre: d_exists" && d != nullptr);
410 assert("pre: valid_range" && (i >= 0) && (i < d->GetNumberOfArrays()));
411 vtkSetObjectBodyMacro(Cd, vtkCellData, static_cast<vtkCellData*>(nullptr));
412 vtkSetObjectBodyMacro(Pd, vtkPointData, d);
413 this->Data = d;
414 this->AttributeNumber = i;
415 this->AllocateInternalTuple(this->GetNumberOfComponents());
416}
417
418//------------------------------------------------------------------------------
419// 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