-------------------------------------------------------------------------------------------------
| 264 | |
| 265 | //------------------------------------------------------------------------------------------------- |
| 266 | int vtkPVTransferFunction2D::SetControlBox(int id, vtkSmartPointer<vtkPVTransferFunction2DBox> b) |
| 267 | { |
| 268 | if (id < 0) |
| 269 | { |
| 270 | // invalid id |
| 271 | return -1; |
| 272 | } |
| 273 | if (id >= static_cast<int>(this->Internals->Boxes.size())) |
| 274 | { |
| 275 | return this->AddControlBox(b); |
| 276 | } |
| 277 | |
| 278 | auto box = this->Internals->Boxes.at(id); |
| 279 | box->SetBox(b->GetBox()); |
| 280 | box->SetColor(b->GetColor()); |
| 281 | return id; |
| 282 | } |
| 283 | |
| 284 | //------------------------------------------------------------------------------------------------- |
| 285 | int vtkPVTransferFunction2D::RemoveControlBox(int id) |
no test coverage detected