------------------------------------------------------------------------------ Description: Cell at current position \pre not_at_end: !IsAtEnd() \pre c_exists: c!=0 THREAD SAFE
| 85 | // \pre c_exists: c!=0 |
| 86 | // THREAD SAFE |
| 87 | void vtkBridgeCellIteratorOne::GetCell(vtkGenericAdaptorCell* c) |
| 88 | { |
| 89 | assert("pre: not_at_end" && !this->IsAtEnd()); |
| 90 | assert("pre: c_exists" && c != nullptr); |
| 91 | |
| 92 | vtkBridgeCell* c2 = static_cast<vtkBridgeCell*>(c); |
| 93 | if (this->DataSet != nullptr) |
| 94 | { |
| 95 | c2->Init(this->DataSet, this->Id); |
| 96 | } |
| 97 | else |
| 98 | { |
| 99 | if (this->InternalCell != nullptr) |
| 100 | { |
| 101 | c2->InitWithCell(this->InternalCell, this->Id); |
| 102 | } |
| 103 | else |
| 104 | { |
| 105 | c2->DeepCopy(this->Cell); |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | //------------------------------------------------------------------------------ |
| 111 | // Description: |
nothing calls this directly
no test coverage detected