------------------------------------------------------------------------------
| 320 | |
| 321 | //------------------------------------------------------------------------------ |
| 322 | int vtkPiecewiseFunction::GetNodeValue(int index, double val[4]) |
| 323 | { |
| 324 | int size = static_cast<int>(this->Internal->Nodes.size()); |
| 325 | |
| 326 | if (index < 0 || index >= size) |
| 327 | { |
| 328 | vtkErrorMacro("Index out of range!"); |
| 329 | return -1; |
| 330 | } |
| 331 | |
| 332 | val[0] = this->Internal->Nodes[index]->X; |
| 333 | val[1] = this->Internal->Nodes[index]->Y; |
| 334 | val[2] = this->Internal->Nodes[index]->Midpoint; |
| 335 | val[3] = this->Internal->Nodes[index]->Sharpness; |
| 336 | |
| 337 | return 1; |
| 338 | } |
| 339 | |
| 340 | //------------------------------------------------------------------------------ |
| 341 | int vtkPiecewiseFunction::SetNodeValue(int index, double val[4]) |
no test coverage detected