------------------------------------------------------------------------------ Description: Used internally for the Bridge. Initialize the cell from a dataset `ds' and `cellid'. \pre ds_exists: ds!=0 \pre valid_cellid: (cellid>=0) && (cellid GetNumberOfCells())
| 883 | // \pre ds_exists: ds!=0 |
| 884 | // \pre valid_cellid: (cellid>=0) && (cellid<ds->GetNumberOfCells()) |
| 885 | void vtkBridgeCell::Init(vtkBridgeDataSet* ds, vtkIdType cellid) |
| 886 | { |
| 887 | assert("pre: ds_exists" && ds != nullptr); |
| 888 | assert("pre: valid_cellid" && (cellid >= 0) && (cellid < ds->GetNumberOfCells())); |
| 889 | |
| 890 | vtkSetObjectBodyMacro(DataSet, vtkBridgeDataSet, ds); |
| 891 | vtkCell* tmp = ds->Implementation->GetCell(cellid); |
| 892 | vtkSetObjectBodyMacro(Cell, vtkCell, tmp); |
| 893 | this->Id = cellid; |
| 894 | this->BoolIsInDataSet = 1; |
| 895 | if (this->InternalIterator == nullptr) |
| 896 | { |
| 897 | this->InternalIterator = vtkBridgeCellIterator::New(); |
| 898 | } |
| 899 | this->InternalIterator->InitWithOneCell(this); |
| 900 | |
| 901 | this->InternalIterator->Begin(); |
| 902 | } |
| 903 | |
| 904 | //------------------------------------------------------------------------------ |
| 905 | // Description: |
no test coverage detected