Show
Ignore:
Timestamp:
07/03/09 21:16:53 (3 years ago)
Author:
robert
Message:

Added Dragger::s/getActivationModKeyMask(..) and Dragger::s/getActivationKeyEvent(...) methods to make it possible to have draggers that only respond when you press a specified modified key or standard key.

Changed the optional dragger in osgvolume to require the shift key to be pressed for the dragger to become active.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgWrappers/osgManipulator/Dragger.cpp

    r10449 r10454  
    216216                  "", 
    217217                  ""); 
    218         I_Method1(void, setDraggerActive, IN, bool, active, 
    219                   Properties::NON_VIRTUAL, 
    220                   __void__setDraggerActive__bool, 
    221                   "", 
    222                   ""); 
    223         I_Method0(bool, getDraggerActive, 
    224                   Properties::NON_VIRTUAL, 
    225                   __bool__getDraggerActive, 
     218        I_Method1(void, setActivationModKeyMask, IN, unsigned int, mask, 
     219                  Properties::NON_VIRTUAL, 
     220                  __void__setActivationModKeyMask__unsigned_int, 
     221                  "", 
     222                  ""); 
     223        I_Method0(unsigned int, getActivationModKeyMask, 
     224                  Properties::NON_VIRTUAL, 
     225                  __unsigned_int__getActivationModKeyMask, 
     226                  "", 
     227                  ""); 
     228        I_Method1(void, setActivationKeyEvent, IN, int, key, 
     229                  Properties::NON_VIRTUAL, 
     230                  __void__setActivationKeyEvent__int, 
     231                  "", 
     232                  ""); 
     233        I_Method0(int, getActivationKeyEvent, 
     234                  Properties::NON_VIRTUAL, 
     235                  __int__getActivationKeyEvent, 
    226236                  "", 
    227237                  ""); 
     
    315325                           "", 
    316326                           ""); 
     327        I_ProtectedMethod1(void, setDraggerActive, IN, bool, active, 
     328                           Properties::NON_VIRTUAL, 
     329                           Properties::NON_CONST, 
     330                           __void__setDraggerActive__bool, 
     331                           "", 
     332                           ""); 
     333        I_ProtectedMethod0(bool, getDraggerActive, 
     334                           Properties::NON_VIRTUAL, 
     335                           Properties::CONST, 
     336                           __bool__getDraggerActive, 
     337                           "", 
     338                           ""); 
     339        I_SimpleProperty(int, ActivationKeyEvent,  
     340                         __int__getActivationKeyEvent,  
     341                         __void__setActivationKeyEvent__int); 
     342        I_SimpleProperty(unsigned int, ActivationModKeyMask,  
     343                         __unsigned_int__getActivationModKeyMask,  
     344                         __void__setActivationModKeyMask__unsigned_int); 
    317345        I_SimpleProperty(osgManipulator::CompositeDragger *, Composite,  
    318346                         __CompositeDragger_P1__getComposite,  
     
    321349                         __Constraints_R1__getConstraints,  
    322350                         0); 
    323         I_SimpleProperty(bool, DraggerActive,  
    324                          __bool__getDraggerActive,  
    325                          __void__setDraggerActive__bool); 
    326351        I_SimpleProperty(osgManipulator::Dragger::DraggerCallbacks &, DraggerCallbacks,  
    327352                         __DraggerCallbacks_R1__getDraggerCallbacks,