changing points in enterPath after every point

S

SS

Guest
I would like to know how to change a point in enterPath after entering
a point. I want to do this after each point is entered. In the
addPointProc call back each point should changed based on some
conditions.

Currently I enter all the points and then ? doneProc callback changes
the points in the points list.
and creates a path with modified points. However if I do it this way
the rubberband does not get the updated path points.

I would like to modify my code in such a way that if I enter the points
with left mouse key the points are modified(by some rule) but if I
enter the points with right mouse key the points remain the same.

Is is possible to set bindkeys for triggerring addpointProc callback

thanks,
Sriram
 
On 6 Apr 2006 11:53:50 -0700, "SS" <ssriramiyer@gmail.com> wrote:

I would like to know how to change a point in enterPath after entering
a point. I want to do this after each point is entered. In the
addPointProc call back each point should changed based on some
conditions.

Currently I enter all the points and then ? doneProc callback changes
the points in the points list.
and creates a path with modified points. However if I do it this way
the rubberband does not get the updated path points.

I would like to modify my code in such a way that if I enter the points
with left mouse key the points are modified(by some rule) but if I
enter the points with right mouse key the points remain the same.

Is is possible to set bindkeys for triggerring addpointProc callback

thanks,
Sriram
The way to do this is to use changeEnterFun() in the addPointProc.

Andrew.
 
Thanks Andrew,
Got it working.
Sriram
Andrew Beckett wrote:
On 6 Apr 2006 11:53:50 -0700, "SS" <ssriramiyer@gmail.com> wrote:

I would like to know how to change a point in enterPath after entering
a point. I want to do this after each point is entered. In the
addPointProc call back each point should changed based on some
conditions.

Currently I enter all the points and then ? doneProc callback changes
the points in the points list.
and creates a path with modified points. However if I do it this way
the rubberband does not get the updated path points.

I would like to modify my code in such a way that if I enter the points
with left mouse key the points are modified(by some rule) but if I
enter the points with right mouse key the points remain the same.

Is is possible to set bindkeys for triggerring addpointProc callback

thanks,
Sriram

The way to do this is to use changeEnterFun() in the addPointProc.

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top