------------------------------------------------------------------------------
| 20 | |
| 21 | //------------------------------------------------------------------------------ |
| 22 | vtkAxesTransformWidget::vtkAxesTransformWidget() |
| 23 | { |
| 24 | this->WidgetState = vtkAxesTransformWidget::Start; |
| 25 | this->ManagesCursor = 1; |
| 26 | this->CurrentHandle = 0; |
| 27 | |
| 28 | // The widgets for moving the end points. They observe this widget (i.e., |
| 29 | // this widget is the parent to the handles). |
| 30 | this->OriginWidget = vtkHandleWidget::New(); |
| 31 | this->OriginWidget->SetPriority(this->Priority - 0.01); |
| 32 | this->OriginWidget->SetParent(this); |
| 33 | this->OriginWidget->ManagesCursorOff(); |
| 34 | |
| 35 | this->SelectionWidget = vtkHandleWidget::New(); |
| 36 | this->SelectionWidget->SetPriority(this->Priority - 0.01); |
| 37 | this->SelectionWidget->SetParent(this); |
| 38 | this->SelectionWidget->ManagesCursorOff(); |
| 39 | |
| 40 | // Define widget events |
| 41 | this->CallbackMapper->SetCallbackMethod(vtkCommand::LeftButtonPressEvent, vtkWidgetEvent::Select, |
| 42 | this, vtkAxesTransformWidget::SelectAction); |
| 43 | this->CallbackMapper->SetCallbackMethod(vtkCommand::LeftButtonReleaseEvent, |
| 44 | vtkWidgetEvent::EndSelect, this, vtkAxesTransformWidget::EndSelectAction); |
| 45 | this->CallbackMapper->SetCallbackMethod( |
| 46 | vtkCommand::MouseMoveEvent, vtkWidgetEvent::Move, this, vtkAxesTransformWidget::MoveAction); |
| 47 | } |
| 48 | |
| 49 | //------------------------------------------------------------------------------ |
| 50 | vtkAxesTransformWidget::~vtkAxesTransformWidget() |
nothing calls this directly
no test coverage detected