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

Method InitWithDataSet

Testing/GenericBridge/vtkBridgeCellIteratorOnDataSet.cxx:133–142  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Used internally by vtkBridgeDataSet. Iterate over cells of `ds' of some dimension `dim'. \pre ds_exists: ds!=0 \pre valid_dim_range: (dim>=-1) && (dim<=3)

Source from the content-addressed store, hash-verified

131// \pre ds_exists: ds!=0
132// \pre valid_dim_range: (dim>=-1) && (dim<=3)
133void vtkBridgeCellIteratorOnDataSet::InitWithDataSet(vtkBridgeDataSet* ds, int dim)
134{
135 assert("pre: ds_exists" && ds != nullptr);
136 assert("pre: valid_dim_range" && (dim >= -1) && (dim <= 3));
137
138 this->Dim = dim;
139 vtkSetObjectBodyMacro(DataSet, vtkBridgeDataSet, ds);
140 this->Size = ds->GetNumberOfCells();
141 this->Id = this->Size; // at end
142}
143VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 2

assertFunction · 0.50
GetNumberOfCellsMethod · 0.45

Tested by

no test coverage detected