MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkAxesTransformWidget

Method vtkAxesTransformWidget

Interaction/Widgets/vtkAxesTransformWidget.cxx:22–47  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

20
21//------------------------------------------------------------------------------
22vtkAxesTransformWidget::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//------------------------------------------------------------------------------
50vtkAxesTransformWidget::~vtkAxesTransformWidget()

Callers

nothing calls this directly

Calls 4

SetPriorityMethod · 0.80
SetCallbackMethodMethod · 0.80
NewFunction · 0.50
SetParentMethod · 0.45

Tested by

no test coverage detected