changing points in enterPath after every point

Discussion in 'Cadence' started by SS, Apr 6, 2006.

  1. SS

    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
     
    SS, Apr 6, 2006
    #1
  2. The way to do this is to use changeEnterFun() in the addPointProc.

    Andrew.
     
    Andrew Beckett, Apr 12, 2006
    #2
  3. SS

    SS Guest

    Thanks Andrew,
    Got it working.
    Sriram
     
    SS, Apr 15, 2006
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.