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

Method vtkRenderWindowInteractor

Rendering/Core/vtkRenderWindowInteractor.cxx:63–144  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Construct object so that light follows camera motion.

Source from the content-addressed store, hash-verified

61//------------------------------------------------------------------------------
62// Construct object so that light follows camera motion.
63vtkRenderWindowInteractor::vtkRenderWindowInteractor()
64{
65 this->RenderWindow = nullptr;
66 this->HardwareWindow = nullptr;
67 // Here we are using base, and relying on the graphics factory or standard
68 // object factory logic to create the correct instance, which should be the
69 // vtkInteractorStyleSwitch when linked to the interactor styles, or
70 // vtkInteractorStyleSwitchBase if the style module is not linked.
71 this->SetInteractorStyle(vtkNew<vtkInteractorStyleSwitchBase>());
72
73 this->LightFollowCamera = 1;
74 this->Initialized = 0;
75 this->Enabled = 0;
76 this->EnableRender = true;
77 this->DesiredUpdateRate = 15;
78 // default limit is 3 hours per frame
79 this->StillUpdateRate = 0.0001;
80
81 this->Picker = this->CreateDefaultPicker();
82 this->Picker->Register(this);
83 this->Picker->Delete();
84
85 this->PickingManager = nullptr;
86 vtkPickingManager* pm = this->CreateDefaultPickingManager();
87 this->SetPickingManager(pm);
88 pm->Delete();
89
90 this->EventPosition[0] = this->LastEventPosition[0] = 0;
91 this->EventPosition[1] = this->LastEventPosition[1] = 0;
92
93 for (int i = 0; i < VTKI_MAX_POINTERS; ++i)
94 {
95 this->EventPositions[i][0] = this->LastEventPositions[i][0] = 0;
96 this->EventPositions[i][1] = this->LastEventPositions[i][1] = 0;
97 }
98 this->PointerIndex = 0;
99
100 this->EventSize[0] = 0;
101 this->EventSize[1] = 0;
102
103 this->Size[0] = 0;
104 this->Size[1] = 0;
105
106 this->Translation[0] = this->LastTranslation[0] = 0;
107 this->Translation[1] = this->LastTranslation[1] = 0;
108
109 this->NumberOfFlyFrames = 15;
110 this->Dolly = 0.30;
111
112 this->AltKey = 0;
113 this->ControlKey = 0;
114 this->ShiftKey = 0;
115 this->KeyCode = 0;
116 this->Rotation = 0;
117 this->LastRotation = 0;
118 this->Scale = 0;
119 this->LastScale = 0;
120 this->RepeatCount = 0;

Calls 7

SetInteractorStyleMethod · 0.95
CreateDefaultPickerMethod · 0.95
SetPickingManagerMethod · 0.95
SetCurrentGestureMethod · 0.95
DeleteMethod · 0.65
RegisterMethod · 0.45

Tested by

no test coverage detected