------------------------------------------------------------------------------
| 107 | |
| 108 | //------------------------------------------------------------------------------ |
| 109 | void vtkPiecewiseFunction::DeepCopy(vtkDataObject* o) |
| 110 | { |
| 111 | vtkPiecewiseFunction* f = vtkPiecewiseFunction::SafeDownCast(o); |
| 112 | |
| 113 | if (f != nullptr) |
| 114 | { |
| 115 | this->Clamping = f->Clamping; |
| 116 | int i; |
| 117 | this->RemoveAllPoints(); |
| 118 | for (i = 0; i < f->GetSize(); i++) |
| 119 | { |
| 120 | double val[4]; |
| 121 | int isInRange = f->GetNodeValue(i, val); |
| 122 | assert(isInRange == 1); |
| 123 | (void)isInRange; |
| 124 | this->AddPoint(val[0], val[1], val[2], val[3]); |
| 125 | } |
| 126 | this->Modified(); |
| 127 | } |
| 128 | |
| 129 | // Do the superclass |
| 130 | this->Superclass::DeepCopy(o); |
| 131 | } |
| 132 | |
| 133 | //------------------------------------------------------------------------------ |
| 134 | void vtkPiecewiseFunction::ShallowCopy(vtkDataObject* o) |
nothing calls this directly
no test coverage detected