------------------------------------------------------------------------------
| 476 | |
| 477 | //------------------------------------------------------------------------------ |
| 478 | void vtkCameraPathRepresentation::SizeHandles() |
| 479 | { |
| 480 | if (this->NumberOfHandles > 0) |
| 481 | { |
| 482 | for (int i = 0; i < this->NumberOfHandles; ++i) |
| 483 | { |
| 484 | double width = this->SizeHandlesInPixels(3, CameraHandles[i]->GetPosition()); |
| 485 | double oldwidth = CameraHandles[i]->GetSize(); |
| 486 | // avoid size recalculations if the new size offset is very small |
| 487 | if (std::abs(oldwidth - width) > MINIMAL_SIZE_OFFSET) |
| 488 | { |
| 489 | this->CameraHandles[i]->SetSize(width); |
| 490 | this->CameraHandles[i]->Update(); |
| 491 | } |
| 492 | } |
| 493 | } |
| 494 | } |
| 495 | |
| 496 | //------------------------------------------------------------------------------ |
| 497 | void vtkCameraPathRepresentation::PrintSelf(ostream& os, vtkIndent indent) |
no test coverage detected