Question: Distance between cursor Task 2 - Understand and Implement the Algorithm of Target Selection with the Bubble Cursor The algorithm proposed in [ 1 ]

Distance between cursor Task 2- Understand and Implement the Algorithm of Target Selection with the
Bubble Cursor
The algorithm proposed in [1] is used to continuously update the radius of the bubble cursor, such
that there is always exactly one target within its activation area. To describe the algorithm in an
environment with objects T1,T2,dots,Tn, we adopt the following definitions as [1]:
Intersecting Distance i ( IntD Di): The length of the shortest line connecting the centre of the bubble
cursor and any point on the border of Ti.lntDi can be calculated as the distance between the cursor
and ob
Figure 3. How to calculate ConD. The black cross indicates the cursor centre. The green circle is an
object.
A simplified version of the algorithm is below:
Set i= index of closest target (Ti) by intersecting distance
Set j= index of second closest target (Tj) by intersecting distance
Set radius of bubble cursor =min(ConDi,lntDj)
This algorithm ensures that the bubble cursor will at least intersect the closest object, and possibly
completely contain it. When the bubble only intersects the closest object and does not completely
contain it, we morph the cursor by extending a second bubble which quickly expands from the
intersection points and envelopes the object (Fig.1b). This acts as a reinforcing visual cue to the
user that the object is indeed captured by the cursor.
Hints: you need to implement the algorithm in the function in area_cursor.py: def
determine selected object(self,x,y):
Distance between cursor Task 2 - Understand and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!