------------------------------------------------------------------------------
| 26 | |
| 27 | //------------------------------------------------------------------------------ |
| 28 | void vtkCameraWidget::SelectRegion(double eventPos[2]) |
| 29 | { |
| 30 | if (!this->WidgetRep) |
| 31 | { |
| 32 | return; |
| 33 | } |
| 34 | |
| 35 | double x = eventPos[0]; |
| 36 | if (x < 0.3333) |
| 37 | { |
| 38 | reinterpret_cast<vtkCameraRepresentation*>(this->WidgetRep)->AddCameraToPath(); |
| 39 | } |
| 40 | else if (x < 0.666667) |
| 41 | { |
| 42 | reinterpret_cast<vtkCameraRepresentation*>(this->WidgetRep)->AnimatePath(this->Interactor); |
| 43 | } |
| 44 | else if (x < 1.0) |
| 45 | { |
| 46 | reinterpret_cast<vtkCameraRepresentation*>(this->WidgetRep)->InitializePath(); |
| 47 | } |
| 48 | |
| 49 | this->Superclass::SelectRegion(eventPos); |
| 50 | } |
| 51 | |
| 52 | //------------------------------------------------------------------------------ |
| 53 | void vtkCameraWidget::PrintSelf(ostream& os, vtkIndent indent) |
nothing calls this directly
no test coverage detected