#125 Callback for draw objects

closed
5
2007-11-12
2007-07-09
Anonymous
No

I would very much like a callback function for draw objects (lines, planes, etc) that returned the object ID (and maybe other parameters). This would allow programmatic response when a specific draw object is selected. Thanks.
S. Spilatro
spilatrs@marietta.edu

Discussion

  • Bob Hanson

    Bob Hanson - 2007-07-25

    Logged In: YES
    user_id=1082841
    Originator: NO

    This can be done using hidden atoms to make "hot spots" wherever you want them. But it's still a good idea....

     
  • Bob Hanson

    Bob Hanson - 2007-11-09

    Logged In: YES
    user_id=1082841
    Originator: NO

    included in 11.3.43:

    # new feature: set drawPicking TRUE
    # then reports picking of draw objects as a JavaScript array:
    # [ "draw","[drawID]",[modelIndex],[vertexIndex],[x],[y],[z] ]
    # this goes to the pickCallback function as the second parameter,
    # with the first parameter (normally the atomIndex) being -2.

     
  • Bob Hanson

    Bob Hanson - 2007-11-09
    • labels: --> Interface Improvements
    • assigned_to: nobody --> hansonr
     
  • Bob Hanson

    Bob Hanson - 2007-11-10

    Logged In: YES
    user_id=1082841
    Originator: NO

    I'm wrong about that. All you need is:

    set drawPicking true

     
  • Bob Hanson

    Bob Hanson - 2007-11-12
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks