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

Method SelectRegion

Interaction/Widgets/vtkCameraWidget.cxx:28–50  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

26
27//------------------------------------------------------------------------------
28void 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//------------------------------------------------------------------------------
53void vtkCameraWidget::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 3

AddCameraToPathMethod · 0.80
AnimatePathMethod · 0.80
InitializePathMethod · 0.80

Tested by

no test coverage detected