Changeset 19942

Show
Ignore:
Timestamp:
04/11/07 18:38:48 (2 years ago)
Author:
patrick
Message:

Updated for Gadgeteer 1.1.24 and VR Juggler 2.1.21. Bumped PyJuggler? version
to 1.1.14.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • PyJuggler/trunk/ChangeLog

    r19693 r19942  
    11DATE        AUTHOR      CHANGE 
    22----------- ----------- ------------------------------------------------------- 
     3Apr-11-2007 patrick     Updated for Gadgeteer 1.1.24. 
     4                        NEW VERSION: 1.1.14 
    35Dec-18-2006 patrick     Exposed vrj::D3dApp (Windows only). This requires 
    46                        VR Juggler 2.1.16 or newer. 
  • PyJuggler/trunk/configure.ac

    r19761 r19942  
    414414              [AC_MSG_ERROR([*** JCCL is required for PyJuggler ***])]) 
    415415SNX_PATH([0.5.0], , [AC_MSG_ERROR([*** Sonix is required for PyJuggler ***])]) 
    416 GADGETEER_PATH([1.1.20], , 
     416GADGETEER_PATH([1.1.24], , 
    417417               [AC_MSG_ERROR([*** Gadgeteer is required for PyJuggler ***])]) 
    418 VRJUGGLER_PATH([2.1.12], , 
     418VRJUGGLER_PATH([2.1.21], , 
    419419               [AC_MSG_ERROR([*** VR Juggler is required for PyJuggler ***])]) 
    420420 
  • PyJuggler/trunk/dist/__init__.py

    r19730 r19942  
    66__all__     = ["vrj", "cluster", "gadget", "snx", "jccl", "vpr"] 
    77__build__   = 1 
    8 __version__ = '1.1.13.%d' % __build__ 
     8__version__ = '1.1.14.%d' % __build__ 
    99__date__    = string.join(string.split('$Date$')[1:3], ' ') 
    1010__author__  = 'Patrick Hartling <patrick@infiscape.com>' 
  • PyJuggler/trunk/src/gadget/_Event.cpp

    r19730 r19942  
    113113      ) 
    114114      .def("type", &gadget::Event::type, 
    115            return_value_policy<copy_const_reference>(), 
    116115           "type() -> gadget.EventType object\n" 
    117116           "Returns the type of this event.  This can be used for dynamic\n" 
     
    128127      ) 
    129128      .def("time", &gadget::Event::time, 
    130            return_value_policy<copy_const_reference>(), 
    131129           "time() -> int\n" 
    132130           "Returns the time at which the event occurred." 
  • PyJuggler/trunk/src/gadget/_KeyEvent.cpp

    r19730 r19942  
    2727   } 
    2828 
    29    gadget_KeyEvent_Wrapper(const gadget::EventType& p0, const gadget::Keys& p1, 
    30                            const int& p2, const long unsigned int& p3) 
     29   gadget_KeyEvent_Wrapper(const gadget::EventType p0, const gadget::Keys p1, 
     30                           const int p2, const long unsigned int p3) 
    3131      : gadget::KeyEvent(p0, p1, p2, p3) 
    3232   { 
     
    3434   } 
    3535 
    36    gadget_KeyEvent_Wrapper(const gadget::EventType& p0, const gadget::Keys& p1, 
    37                            const int& p2, const long unsigned int& p3, char p4) 
     36   gadget_KeyEvent_Wrapper(const gadget::EventType p0, const gadget::Keys p1, 
     37                           const int p2, const long unsigned int p3, 
     38                           const char p4) 
    3839      : gadget::KeyEvent(p0, p1, p2, p3, p4) 
     40   { 
     41      /* Do nothing. */ ; 
     42   } 
     43 
     44   gadget_KeyEvent_Wrapper(const gadget::EventType p0, const gadget::Keys p1, 
     45                           const int p2, const long unsigned int p3, 
     46                           const char p4, const wchar_t p5) 
     47      : gadget::KeyEvent(p0, p1, p2, p3, p4, p5) 
    3948   { 
    4049      /* Do nothing. */ ; 
     
    126135          "Initializes data members.\n" 
    127136          "Arguments:\n" 
    128           "type     -- The type of this event (either key press or key\n" 
    129           "            release).\n" 
    130           "key      -- The platform-specific value of the key that was\n" 
    131           "            pressed or released.\n" 
    132           "mask     -- The mask of modifiers pressed in addition to key.\n" 
    133           "            This should be constructed using the bitwise OR of\n" 
    134           "            gadget.ModifierMask values.\n" 
    135           "time     -- The time at which this event occurred.  This should\n" 
    136           "            be as accurate as possible, preferrably acquired\n" 
    137           "            from the operating system or windowing event system\n" 
    138           "            event data structure.  The time at which the event\n" 
    139           "            was processed is not an acceptable value.\n" 
    140           "asciiKey -- The ASCII value of the key associated with this\n" 
    141           "            event.  This paramter is optional, and it defaults\n" 
    142           "            to 0 if not specified." 
     137          "type       -- The type of this event (either key press or key\n" 
     138          "              release).\n" 
     139          "key        -- The platform-specific value of the key that was\n" 
     140          "              pressed or released.\n" 
     141          "mask       -- The mask of modifiers pressed in addition to key.\n" 
     142          "              This should be constructed using the bitwise OR of\n" 
     143          "              gadget.ModifierMask values.\n" 
     144          "time       -- The time at which this event occurred.  This should\n" 
     145          "              be as accurate as possible, preferrably acquired\n" 
     146          "              from the operating system or windowing event system\n" 
     147          "              event data structure.  The time at which the event\n" 
     148          "              was processed is not an acceptable value.\n" 
     149          "asciiKey   -- The ASCII value of the key associated with this\n" 
     150          "              event.  This paramter is optional, and it defaults\n" 
     151          "              to 0 if not specified.\n" 
     152          "unicodeKey -- The Unicode value of the key associated with this\n" 
     153          "              event.  This parameter is optional, and it defaults\n" 
     154          "              to 0 if not specified." 
    143155       ) 
    144156      ) 
    145157      .def(init<const gadget::KeyEvent&>()) 
    146       .def(init<const gadget::EventType&, const gadget::Keys&, const int&, 
    147                 const long unsigned int&, optional<char> >()) 
     158      .def(init<const gadget::EventType, const gadget::Keys, const int, 
     159                const long unsigned int, optional<const char> >()) 
     160      .def(init<const gadget::EventType, const gadget::Keys, const int, 
     161                const long unsigned int, const char, 
     162                optional<const wchar_t> >()) 
    148163      .def("writeObject", &gadget::KeyEvent::writeObject, 
    149164           &pyj::gadget_KeyEvent_Wrapper::default_writeObject, 
     
    157172      ) 
    158173      .def("getKey", &gadget::KeyEvent::getKey, 
    159            return_value_policy<copy_const_reference>(), 
    160174           "getKey() -> gadget.Key object\n" 
    161175           "Gets the key that was pressed while generating this event." 
    162176      ) 
    163177      .def("getModifierMask", &gadget::KeyEvent::getModifierMask, 
    164            return_value_policy<copy_const_reference>(), 
    165178           "getModifierMask() -> int\n" 
    166179           "Returns the modifier mask for this event.  This tells which\n" 
     
    170183      ) 
    171184      .def("getKeyChar", &gadget::KeyEvent::getKeyChar, 
    172            return_value_policy<copy_const_reference>(), 
    173185           "getKeyChar() -> character\n" 
    174186           "Returns the ASCII character corresponding to the key that was\n" 
    175187           "pressed." 
    176188      ) 
     189      .def("getKeyUnicode", &gadget::KeyEvent::getKeyUnicode, 
     190           "getKeyUnicode() -> Unicode character\n" 
     191           "Returns the Unicode character corresponding to the key that was\n" 
     192           "pressed." 
     193      ) 
    177194      .def("type", &gadget::Event::type, 
    178            return_value_policy<copy_const_reference>(), 
    179195           "type() -> gadget.EventType object\n" 
    180196           "Returns the type of this event.  This can be used for dynamic\n" 
     
    191207      ) 
    192208      .def("time", &gadget::Event::time, 
    193            return_value_policy<copy_const_reference>(), 
    194209           "time() -> int\n" 
    195210           "Returns the time at which the event occurred." 
  • PyJuggler/trunk/src/gadget/_MouseEvent.cpp

    r19730 r19942  
    2929   } 
    3030 
    31    gadget_MouseEvent_Wrapper(const gadget::EventType& p0, 
    32                              const gadget::Keys& p1, const int& p2, 
    33                              const int& p3, const int& p4, const int& p5, 
    34                              const int& p6, const long unsigned int& p7) 
     31   gadget_MouseEvent_Wrapper(const gadget::EventType p0, 
     32                             const gadget::Keys p1, const int p2, 
     33                             const int p3, const int p4, const int p5, 
     34                             const int p6, const long unsigned int p7) 
    3535      : gadget::MouseEvent(p0, p1, p2, p3, p4, p5, p6, p7) 
    3636   { 
     
    147147      ) 
    148148      .def(init<const gadget::MouseEvent&>()) 
    149       .def(init<const gadget::EventType&, const gadget::Keys&, const int&
    150                 const int&, const int&, const int&, const int&
    151                 const long unsigned int&>()) 
     149      .def(init<const gadget::EventType, const gadget::Keys, const int
     150                const int, const int, const int, const int
     151                const long unsigned int>()) 
    152152      .def("writeObject", &gadget::MouseEvent::writeObject, 
    153153           &pyj::gadget_MouseEvent_Wrapper::default_writeObject, 
     
    161161      ) 
    162162      .def("getButton", &gadget::MouseEvent::getButton, 
    163            return_value_policy<copy_const_reference>(), 
    164163           "getButton() -- gadget.Keys value\n" 
    165164      ) 
    166165      .def("getX", &gadget::MouseEvent::getX, 
    167            return_value_policy<copy_const_reference>(), 
    168166           "getX() -> int\n" 
    169167           "Returns the X coordinate of the mouse pointer relative to the\n" 
     
    171169      ) 
    172170      .def("getY", &gadget::MouseEvent::getY, 
    173            return_value_policy<copy_const_reference>(), 
    174171           "getY() -> int\n" 
    175172           "Returns the Y coordinate of the mouse pointer relative to the\n" 
     
    177174      ) 
    178175      .def("getGlobalX", &gadget::MouseEvent::getGlobalX, 
    179            return_value_policy<copy_const_reference>(), 
    180176           "getGlobalX() -> int\n" 
    181177           "Returns the X coordinate of the mouse pointer relative to the\n" 
     
    183179      ) 
    184180      .def("getGlobalY", &gadget::MouseEvent::getGlobalY, 
    185            return_value_policy<copy_const_reference>(), 
    186181           "getGlobalY() -> int\n" 
    187182           "Returns the Y coordinate of the mouse pointer relative to the\n" 
     
    189184      ) 
    190185      .def("getState", &gadget::MouseEvent::getState, 
    191            return_value_policy<copy_const_reference>(), 
    192186           "getState() -> int\n" 
    193187           "Returns the state of the mouse buttons and keyboard modifier\n" 
     
    195189      ) 
    196190      .def("type", &gadget::Event::type, 
    197            return_value_policy<copy_const_reference>(), 
    198191           "type() -> gadget.EventType object\n" 
    199192           "Returns the type of this event.  This can be used for dynamic\n" 
     
    210203      ) 
    211204      .def("time", &gadget::Event::time, 
    212            return_value_policy<copy_const_reference>(), 
    213205           "time() -> int\n" 
    214206           "Returns the time at which the event occurred." 
  • PyJuggler/trunk/src/vrj/_Display.cpp

    r19730 r19942  
    2020struct vrj_Display_Wrapper : vrj::Display, wrapper<vrj::Display> 
    2121{ 
    22    vrj_Display_Wrapper(const vrj::Display& p0) 
    23       : vrj::Display(p0) 
    24    { 
    25       /* Do nothing. */ ; 
    26    } 
    27  
    28    vrj_Display_Wrapper() 
    29       : vrj::Display() 
    30    { 
    31       /* Do nothing. */ ; 
    32    } 
    33  
    3422   virtual ~vrj_Display_Wrapper() 
    3523   { 
     
    5139void _Export_Display() 
    5240{ 
    53    class_<pyj::vrj_Display_Wrapper>("Display", 
     41   class_<pyj::vrj_Display_Wrapper, vrj::DisplayPtr, boost::noncopyable>( 
     42       "Display", 
    5443       "Container class for viewports and window information.  This stores\n" 
    5544       "the size and location of the window and the viewports contained\n" 
    5645       "within." 
    5746       , 
    58        init<>() 
     47       no_init 
    5948      ) 
    60       .def(init<const vrj::Display&>()) 
     49      .def("create", &vrj::Display::create, 
     50           "vrj.Display.create() -> vrj.DisplayPtr\n" 
     51           "Creates a new vrj::Display object and wraps in a vrj::DisplayPtr." 
     52      ) 
    6153      .def("isActive", &vrj::Display::isActive, 
    6254           "isActive() -> Boolean\n" 
     
    9486      ) 
    9587//      .def(self_ns::str(self)) 
     88      .staticmethod("create") 
    9689   ; 
    9790} 
  • PyJuggler/trunk/src/vrj/_SimViewport.cpp

    r19730 r19942  
    8989           "                 units." 
    9090      ) 
    91       .def("getDrawSimInterface", &vrj::SimViewport::getDrawSimInterface, 
    92            return_internal_reference<1>()) 
     91      .def("getDrawSimInterface", &vrj::SimViewport::getDrawSimInterface) 
    9392   ; 
    9493} 
  • PyJuggler/trunk/src/vrj/_Viewport.cpp

    r19730 r19942  
    123123      ) 
    124124      .def("getDisplay", &vrj::Viewport::getDisplay, 
    125            return_internal_reference<1>(), 
    126125           "getDisplay() -> vrj.Display object\n" 
    127126           "Gets the display contaning this viewprot."