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