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

Method InitWithOnePoint

Testing/GenericBridge/vtkBridgePointIteratorOne.cxx:114–121  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Used internally by vtkBridgeDataSet. Iterate over one point of identifier `id' on dataset `ds'. \pre ds_can_be_null: ds!=0 || ds==0 \pre valid_id: vtkImplies(ds!=0,(id>=0)&&(id<=ds->GetNumberOfCells()))

Source from the content-addressed store, hash-verified

112// \pre ds_can_be_null: ds!=0 || ds==0
113// \pre valid_id: vtkImplies(ds!=0,(id>=0)&&(id<=ds->GetNumberOfCells()))
114void vtkBridgePointIteratorOne::InitWithOnePoint(vtkBridgeDataSet* ds, vtkIdType id)
115{
116 assert("pre: valid_id" &&
117 ((ds == nullptr) || ((id >= 0) && (id <= ds->GetNumberOfCells())))); // A=>B: !A||B
118
119 vtkSetObjectBodyMacro(DataSet, vtkBridgeDataSet, ds);
120 this->Id = id;
121}
122VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 2

assertFunction · 0.50
GetNumberOfCellsMethod · 0.45

Tested by

no test coverage detected