5-August-2014

The basic rough algorithm that I think for detecting the points on the drawingArea is to store the drawn points in some container as a stack or list.

Then I can get the current coordinates of the mouse and check with my container to see if it matches any existing point.

If it does then I can select that point and others in a similar manner and then use them for operations like drawing rest of the entities, selecting, transforming, modifying, etc.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s