Home
last modified time | relevance | path

Searched refs:eventPos (Results 1 – 25 of 290) sorted by relevance

12345678910>>...12

/dports/math/vtk9/VTK-9.1.0/Interaction/Widgets/
H A DvtkMagnifierWidget.cxx83 double eventPos[2]; in SetEnabled() local
84 eventPos[0] = static_cast<double>(this->Interactor->GetEventPosition()[0]); in SetEnabled()
85 eventPos[1] = static_cast<double>(this->Interactor->GetEventPosition()[1]); in SetEnabled()
107 double eventPos[2]; in MoveAction() local
108 eventPos[0] = static_cast<double>(X); in MoveAction()
109 eventPos[1] = static_cast<double>(Y); in MoveAction()
110 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
133 double eventPos[2]; in CharAction() local
134 eventPos[0] = static_cast<double>(X); in CharAction()
135 eventPos[1] = static_cast<double>(Y); in CharAction()
[all …]
H A DvtkContinuousValueWidget.cxx71 double eventPos[2]; in SelectAction() local
72 eventPos[0] = self->Interactor->GetEventPosition()[0]; in SelectAction()
73 eventPos[1] = self->Interactor->GetEventPosition()[1]; in SelectAction()
78 static_cast<int>(eventPos[0]), static_cast<int>(eventPos[1]))) in SelectAction()
85 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
152 double eventPos[2]; in MoveAction() local
153 eventPos[0] = self->Interactor->GetEventPosition()[0]; in MoveAction()
154 eventPos[1] = self->Interactor->GetEventPosition()[1]; in MoveAction()
155 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
H A DvtkCenteredSliderWidget.cxx63 double eventPos[2]; in SelectAction() local
64 eventPos[0] = self->Interactor->GetEventPosition()[0]; in SelectAction()
65 eventPos[1] = self->Interactor->GetEventPosition()[1]; in SelectAction()
70 static_cast<int>(eventPos[0]), static_cast<int>(eventPos[1]))) in SelectAction()
78 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
132 double eventPos[2]; in MoveAction() local
133 eventPos[0] = self->Interactor->GetEventPosition()[0]; in MoveAction()
134 eventPos[1] = self->Interactor->GetEventPosition()[1]; in MoveAction()
135 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
H A DvtkResliceCursorWidget.cxx122 double eventPos[2]; in ResizeThicknessAction() local
123 eventPos[0] = static_cast<double>(X); in ResizeThicknessAction()
124 eventPos[1] = static_cast<double>(Y); in ResizeThicknessAction()
184 double eventPos[2]; in SelectAction() local
185 eventPos[0] = static_cast<double>(X); in SelectAction()
186 eventPos[1] = static_cast<double>(Y); in SelectAction()
225 double eventPos[2]; in RotateAction() local
226 eventPos[0] = static_cast<double>(X); in RotateAction()
227 eventPos[1] = static_cast<double>(Y); in RotateAction()
303 double eventPos[2]; in EndSelectAction() local
[all …]
H A DvtkSliderWidget.cxx62 double eventPos[2]; in SelectAction() local
63 eventPos[0] = self->Interactor->GetEventPosition()[0]; in SelectAction()
64 eventPos[1] = self->Interactor->GetEventPosition()[1]; in SelectAction()
69 static_cast<int>(eventPos[0]), static_cast<int>(eventPos[1]))) in SelectAction()
77 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
118 double eventPos[2]; in MoveAction() local
119 eventPos[0] = self->Interactor->GetEventPosition()[0]; in MoveAction()
120 eventPos[1] = self->Interactor->GetEventPosition()[1]; in MoveAction()
121 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
H A DvtkConstrainedPointHandleRepresentation.cxx170 vtkRenderer* renderer, double eventPos[2]) in CheckConstraint()
309 this->DisplayPosition->SetValue(eventPos); in SetDisplayPosition()
312 if (this->GetIntersectionPosition(eventPos, worldPos)) in SetDisplayPosition()
433 this->Translate(eventPos); in WidgetInteraction()
438 this->Scale(eventPos); in WidgetInteraction()
442 this->LastEventPosition[0] = eventPos[0]; in WidgetInteraction()
443 this->LastEventPosition[1] = eventPos[1]; in WidgetInteraction()
452 if (this->GetIntersectionPosition(eventPos, worldPos)) in Translate()
472 tmp[0] = eventPos[0] + this->InteractionOffset[0]; in GetIntersectionPosition()
473 tmp[1] = eventPos[1] + this->InteractionOffset[1]; in GetIntersectionPosition()
[all …]
/dports/audio/sdl_mixer/SDL_mixer-1.2.12/native_midi/
H A Dnative_midi_mac.c69 lastEventTime = eventPos->time; \
300 MIDIEvent *eventPos = evntlist;
332 while(eventPos)
382 pitch = eventPos->data[0];
383 velocity = eventPos->data[1];
438 value = eventPos->data[1];
476 newInst = eventPos->data[0];
520 bend = (eventPos->data[0] & 0x7f) | ((eventPos->data[1] & 0x7f) << 7);
542 if (eventPos->status == 0xFF && eventPos->data[0] == 0x51) /* Tempo change */
546 eventPos->extraData[2];
[all …]
/dports/audio/sdl2_mixer/SDL2_mixer-2.0.4/native_midi/
H A Dnative_midi_mac.c305 MIDIEvent *eventPos = evntlist; in BuildTuneSequence() local
337 while(eventPos) in BuildTuneSequence()
340 int channel = eventPos->status&0x0F; in BuildTuneSequence()
387 pitch = eventPos->data[0]; in BuildTuneSequence()
388 velocity = eventPos->data[1]; in BuildTuneSequence()
442 controller = eventPos->data[0]; in BuildTuneSequence()
443 value = eventPos->data[1]; in BuildTuneSequence()
481 newInst = eventPos->data[0]; in BuildTuneSequence()
525 bend = (eventPos->data[0] & 0x7f) | ((eventPos->data[1] & 0x7f) << 7); in BuildTuneSequence()
547 if (eventPos->status == 0xFF && eventPos->data[0] == 0x51) /* Tempo change */ in BuildTuneSequence()
[all …]
/dports/math/vtk8/VTK-8.2.0/Interaction/Widgets/
H A DvtkPointHandleRepresentation2D.cxx207 dpos[0] = fabs(eventPos[0] - this->StartEventPosition[0]); in DetermineConstraintAxis()
208 dpos[1] = fabs(eventPos[1] - this->StartEventPosition[1]); in DetermineConstraintAxis()
253 this->DetermineConstraintAxis(this->ConstraintAxis,eventPos); in WidgetInteraction()
254 this->Translate(eventPos); in WidgetInteraction()
260 this->Scale(eventPos); in WidgetInteraction()
264 this->LastEventPosition[0] = eventPos[0]; in WidgetInteraction()
265 this->LastEventPosition[1] = eventPos[1]; in WidgetInteraction()
272 void vtkPointHandleRepresentation2D::Translate(double eventPos[2]) in Translate()
276 dpos[0] = eventPos[0] - pos[0]; in Translate()
277 dpos[1] = eventPos[1] - pos[1]; in Translate()
[all …]
H A DvtkContinuousValueWidget.cxx81 double eventPos[2]; in SelectAction() local
82 eventPos[0] = self->Interactor->GetEventPosition()[0]; in SelectAction()
83 eventPos[1] = self->Interactor->GetEventPosition()[1]; in SelectAction()
87 !self->CurrentRenderer->IsInViewport(static_cast<int>(eventPos[0]), in SelectAction()
88 static_cast<int>(eventPos[1]))) in SelectAction()
95 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
165 double eventPos[2]; in MoveAction() local
166 eventPos[0] = self->Interactor->GetEventPosition()[0]; in MoveAction()
167 eventPos[1] = self->Interactor->GetEventPosition()[1]; in MoveAction()
168 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
H A DvtkCenteredSliderWidget.cxx72 double eventPos[2]; in SelectAction() local
73 eventPos[0] = self->Interactor->GetEventPosition()[0]; in SelectAction()
74 eventPos[1] = self->Interactor->GetEventPosition()[1]; in SelectAction()
78 !self->CurrentRenderer->IsInViewport(static_cast<int>(eventPos[0]), in SelectAction()
79 static_cast<int>(eventPos[1]))) in SelectAction()
87 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
144 double eventPos[2]; in MoveAction() local
145 eventPos[0] = self->Interactor->GetEventPosition()[0]; in MoveAction()
146 eventPos[1] = self->Interactor->GetEventPosition()[1]; in MoveAction()
147 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
H A DvtkResliceCursorWidget.cxx132 double eventPos[2]; in ResizeThicknessAction() local
133 eventPos[0] = static_cast<double>(X); in ResizeThicknessAction()
134 eventPos[1] = static_cast<double>(Y); in ResizeThicknessAction()
197 double eventPos[2]; in SelectAction() local
198 eventPos[0] = static_cast<double>(X); in SelectAction()
199 eventPos[1] = static_cast<double>(Y); in SelectAction()
239 double eventPos[2]; in RotateAction() local
240 eventPos[0] = static_cast<double>(X); in RotateAction()
241 eventPos[1] = static_cast<double>(Y); in RotateAction()
317 double eventPos[2]; in EndSelectAction() local
[all …]
H A DvtkSliderWidget.cxx66 double eventPos[2]; in SelectAction() local
67 eventPos[0] = self->Interactor->GetEventPosition()[0]; in SelectAction()
68 eventPos[1] = self->Interactor->GetEventPosition()[1]; in SelectAction()
72 …!self->CurrentRenderer->IsInViewport(static_cast<int>(eventPos[0]), static_cast<int>(eventPos[1]))) in SelectAction()
80 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
122 double eventPos[2]; in MoveAction() local
123 eventPos[0] = self->Interactor->GetEventPosition()[0]; in MoveAction()
124 eventPos[1] = self->Interactor->GetEventPosition()[1]; in MoveAction()
125 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
H A DvtkBorderWidget.cxx136 double eventPos[2]; in SelectAction() local
137 eventPos[0] = XF; in SelectAction()
138 eventPos[1] = YF; in SelectAction()
139 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
148 eventPos[0] = (XF-fpos1[0])/fpos2[0]; in SelectAction()
149 eventPos[1] = (YF-fpos1[1])/fpos2[1]; in SelectAction()
151 self->SelectRegion(eventPos); in SelectAction()
190 double eventPos[2]; in TranslateAction() local
191 eventPos[0] = XF; in TranslateAction()
192 eventPos[1] = YF; in TranslateAction()
[all …]
H A DvtkConstrainedPointHandleRepresentation.cxx315 this->DisplayPosition->SetValue(eventPos); in SetDisplayPosition()
318 if ( this->GetIntersectionPosition(eventPos, worldPos) ) in SetDisplayPosition()
441 this->Translate(eventPos); in WidgetInteraction()
446 this->Scale(eventPos); in WidgetInteraction()
450 this->LastEventPosition[0] = eventPos[0]; in WidgetInteraction()
451 this->LastEventPosition[1] = eventPos[1]; in WidgetInteraction()
460 if ( this->GetIntersectionPosition(eventPos, worldPos) ) in Translate()
480 tmp[0] = eventPos[0] + this->InteractionOffset[0]; in GetIntersectionPosition()
481 tmp[1] = eventPos[1] + this->InteractionOffset[1]; in GetIntersectionPosition()
506 picker->Pick(eventPos[0], eventPos[1], 0, renderer); in GetIntersectionPosition()
[all …]
/dports/math/vtk6/VTK-6.2.0/Interaction/Widgets/
H A DvtkPointHandleRepresentation2D.cxx201 dpos[0] = fabs(eventPos[0] - this->StartEventPosition[0]); in DetermineConstraintAxis()
202 dpos[1] = fabs(eventPos[1] - this->StartEventPosition[1]); in DetermineConstraintAxis()
247 this->DetermineConstraintAxis(this->ConstraintAxis,eventPos); in WidgetInteraction()
248 this->Translate(eventPos); in WidgetInteraction()
254 this->Scale(eventPos); in WidgetInteraction()
258 this->LastEventPosition[0] = eventPos[0]; in WidgetInteraction()
259 this->LastEventPosition[1] = eventPos[1]; in WidgetInteraction()
266 void vtkPointHandleRepresentation2D::Translate(double eventPos[2]) in Translate()
270 dpos[0] = eventPos[0] - pos[0]; in Translate()
271 dpos[1] = eventPos[1] - pos[1]; in Translate()
[all …]
H A DvtkContinuousValueWidget.cxx81 double eventPos[2]; in SelectAction() local
82 eventPos[0] = self->Interactor->GetEventPosition()[0]; in SelectAction()
83 eventPos[1] = self->Interactor->GetEventPosition()[1]; in SelectAction()
87 !self->CurrentRenderer->IsInViewport(static_cast<int>(eventPos[0]), in SelectAction()
88 static_cast<int>(eventPos[1]))) in SelectAction()
95 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
165 double eventPos[2]; in MoveAction() local
166 eventPos[0] = self->Interactor->GetEventPosition()[0]; in MoveAction()
167 eventPos[1] = self->Interactor->GetEventPosition()[1]; in MoveAction()
168 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
H A DvtkHandleWidget.cxx112 double eventPos[2]; in SelectAction() local
113 eventPos[0] = static_cast<double>(X); in SelectAction()
114 eventPos[1] = static_cast<double>(Y); in SelectAction()
115 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
129 double eventPos[2]; in TranslateAction() local
130 eventPos[0] = static_cast<double>(self->Interactor->GetEventPosition()[0]); in TranslateAction()
131 eventPos[1] = static_cast<double>(self->Interactor->GetEventPosition()[1]); in TranslateAction()
133 self->WidgetRep->StartWidgetInteraction(eventPos); in TranslateAction()
155 double eventPos[2]; in ScaleAction() local
156 eventPos[0] = static_cast<double>(self->Interactor->GetEventPosition()[0]); in ScaleAction()
[all …]
H A DvtkCenteredSliderWidget.cxx72 double eventPos[2]; in SelectAction() local
73 eventPos[0] = self->Interactor->GetEventPosition()[0]; in SelectAction()
74 eventPos[1] = self->Interactor->GetEventPosition()[1]; in SelectAction()
78 !self->CurrentRenderer->IsInViewport(static_cast<int>(eventPos[0]), in SelectAction()
79 static_cast<int>(eventPos[1]))) in SelectAction()
87 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
144 double eventPos[2]; in MoveAction() local
145 eventPos[0] = self->Interactor->GetEventPosition()[0]; in MoveAction()
146 eventPos[1] = self->Interactor->GetEventPosition()[1]; in MoveAction()
147 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
H A DvtkResliceCursorWidget.cxx134 double eventPos[2]; in ResizeThicknessAction() local
135 eventPos[0] = static_cast<double>(X); in ResizeThicknessAction()
136 eventPos[1] = static_cast<double>(Y); in ResizeThicknessAction()
199 double eventPos[2]; in SelectAction() local
200 eventPos[0] = static_cast<double>(X); in SelectAction()
201 eventPos[1] = static_cast<double>(Y); in SelectAction()
241 double eventPos[2]; in RotateAction() local
242 eventPos[0] = static_cast<double>(X); in RotateAction()
243 eventPos[1] = static_cast<double>(Y); in RotateAction()
319 double eventPos[2]; in EndSelectAction() local
[all …]
H A DvtkConstrainedPointHandleRepresentation.cxx313 this->DisplayPosition->SetValue(eventPos); in SetDisplayPosition()
316 if ( this->GetIntersectionPosition(eventPos, worldPos) ) in SetDisplayPosition()
439 this->Translate(eventPos); in WidgetInteraction()
444 this->Scale(eventPos); in WidgetInteraction()
448 this->LastEventPosition[0] = eventPos[0]; in WidgetInteraction()
449 this->LastEventPosition[1] = eventPos[1]; in WidgetInteraction()
458 if ( this->GetIntersectionPosition(eventPos, worldPos) ) in Translate()
479 tmp[0] = eventPos[0] + this->InteractionOffset[0]; in GetIntersectionPosition()
480 tmp[1] = eventPos[1] + this->InteractionOffset[1]; in GetIntersectionPosition()
505 picker->Pick(eventPos[0], eventPos[1], 0, renderer); in GetIntersectionPosition()
[all …]
H A DvtkSliderWidget.cxx66 double eventPos[2]; in SelectAction() local
67 eventPos[0] = self->Interactor->GetEventPosition()[0]; in SelectAction()
68 eventPos[1] = self->Interactor->GetEventPosition()[1]; in SelectAction()
72 …!self->CurrentRenderer->IsInViewport(static_cast<int>(eventPos[0]), static_cast<int>(eventPos[1]))) in SelectAction()
80 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
122 double eventPos[2]; in MoveAction() local
123 eventPos[0] = self->Interactor->GetEventPosition()[0]; in MoveAction()
124 eventPos[1] = self->Interactor->GetEventPosition()[1]; in MoveAction()
125 self->WidgetRep->WidgetInteraction(eventPos); in MoveAction()
H A DvtkBorderWidget.cxx138 double eventPos[2]; in SelectAction() local
139 eventPos[0] = XF; in SelectAction()
140 eventPos[1] = YF; in SelectAction()
141 self->WidgetRep->StartWidgetInteraction(eventPos); in SelectAction()
150 eventPos[0] = (XF-fpos1[0])/fpos2[0]; in SelectAction()
151 eventPos[1] = (YF-fpos1[1])/fpos2[1]; in SelectAction()
153 self->SelectRegion(eventPos); in SelectAction()
192 double eventPos[2]; in TranslateAction() local
193 eventPos[0] = XF; in TranslateAction()
194 eventPos[1] = YF; in TranslateAction()
[all …]
H A DvtkAffineRepresentation2D.h123 virtual void StartWidgetInteraction(double eventPos[2]);
124 virtual void WidgetInteraction(double eventPos[2]);
125 virtual void EndWidgetInteraction(double eventPos[2]);
141 void Translate(double eventPos[2]);
142 void Scale(double eventPos[2]);
143 void Rotate(double eventPos[2]);
144 void Shear(double eventPos[2]);
146 void UpdateText(const char *text, double eventPos[2]);
/dports/audio/dssi/dssi-1.1.1/examples/
H A Dkarplong.cpp265 unsigned long eventPos; in runImpl() local
269 for (pos = 0, eventPos = 0; pos < sampleCount; ) { in runImpl()
271 while (eventPos < eventCount && in runImpl()
272 pos >= events[eventPos].time.tick) { in runImpl()
274 switch (events[eventPos].type) { in runImpl()
277 n = events[eventPos].data.note; in runImpl()
286 n = events[eventPos].data.note; in runImpl()
294 ++eventPos; in runImpl()
298 if (eventPos < eventCount && in runImpl()
299 events[eventPos].time.tick < sampleCount) { in runImpl()
[all …]

12345678910>>...12