------------------------------------------------------------------------------
| 132 | |
| 133 | //------------------------------------------------------------------------------ |
| 134 | void vtkPiecewiseFunction::ShallowCopy(vtkDataObject* o) |
| 135 | { |
| 136 | vtkPiecewiseFunction* f = vtkPiecewiseFunction::SafeDownCast(o); |
| 137 | |
| 138 | if (f != nullptr) |
| 139 | { |
| 140 | this->Clamping = f->Clamping; |
| 141 | int i; |
| 142 | this->RemoveAllPoints(); |
| 143 | for (i = 0; i < f->GetSize(); i++) |
| 144 | { |
| 145 | double val[4]; |
| 146 | int isInRange = f->GetNodeValue(i, val); |
| 147 | assert(isInRange == 1); |
| 148 | (void)isInRange; |
| 149 | this->AddPoint(val[0], val[1], val[2], val[3]); |
| 150 | } |
| 151 | this->Modified(); |
| 152 | } |
| 153 | |
| 154 | // Do the superclass |
| 155 | this->vtkDataObject::ShallowCopy(o); |
| 156 | } |
| 157 | |
| 158 | //------------------------------------------------------------------------------ |
| 159 | void vtkPiecewiseFunction::Initialize() |
nothing calls this directly
no test coverage detected