------------------------------------------------------------------------------ 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())
| 421 | // \pre d_exists: d!=0 |
| 422 | // \pre valid_range: (i>=0) && (i<d->GetNumberOfArrays()) |
| 423 | void 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: |
no test coverage detected