Changeset 19942
- Timestamp:
- 04/11/07 18:38:48 (2 years ago)
- Files:
-
- PyJuggler/trunk/ChangeLog (modified) (1 diff)
- PyJuggler/trunk/configure.ac (modified) (1 diff)
- PyJuggler/trunk/dist/__init__.py (modified) (1 diff)
- PyJuggler/trunk/src/gadget/_Event.cpp (modified) (2 diffs)
- PyJuggler/trunk/src/gadget/_KeyEvent.cpp (modified) (6 diffs)
- PyJuggler/trunk/src/gadget/_MouseEvent.cpp (modified) (9 diffs)
- PyJuggler/trunk/src/vrj/_Display.cpp (modified) (3 diffs)
- PyJuggler/trunk/src/vrj/_SimViewport.cpp (modified) (1 diff)
- PyJuggler/trunk/src/vrj/_Viewport.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
PyJuggler/trunk/ChangeLog
r19693 r19942 1 1 DATE AUTHOR CHANGE 2 2 ----------- ----------- ------------------------------------------------------- 3 Apr-11-2007 patrick Updated for Gadgeteer 1.1.24. 4 NEW VERSION: 1.1.14 3 5 Dec-18-2006 patrick Exposed vrj::D3dApp (Windows only). This requires 4 6 VR Juggler 2.1.16 or newer. PyJuggler/trunk/configure.ac
r19761 r19942 414 414 [AC_MSG_ERROR([*** JCCL is required for PyJuggler ***])]) 415 415 SNX_PATH([0.5.0], , [AC_MSG_ERROR([*** Sonix is required for PyJuggler ***])]) 416 GADGETEER_PATH([1.1.2 0], ,416 GADGETEER_PATH([1.1.24], , 417 417 [AC_MSG_ERROR([*** Gadgeteer is required for PyJuggler ***])]) 418 VRJUGGLER_PATH([2.1. 12], ,418 VRJUGGLER_PATH([2.1.21], , 419 419 [AC_MSG_ERROR([*** VR Juggler is required for PyJuggler ***])]) 420 420 PyJuggler/trunk/dist/__init__.py
r19730 r19942 6 6 __all__ = ["vrj", "cluster", "gadget", "snx", "jccl", "vpr"] 7 7 __build__ = 1 8 __version__ = '1.1.1 3.%d' % __build__8 __version__ = '1.1.14.%d' % __build__ 9 9 __date__ = string.join(string.split('$Date$')[1:3], ' ') 10 10 __author__ = 'Patrick Hartling <patrick@infiscape.com>' PyJuggler/trunk/src/gadget/_Event.cpp
r19730 r19942 113 113 ) 114 114 .def("type", &gadget::Event::type, 115 return_value_policy<copy_const_reference>(),116 115 "type() -> gadget.EventType object\n" 117 116 "Returns the type of this event. This can be used for dynamic\n" … … 128 127 ) 129 128 .def("time", &gadget::Event::time, 130 return_value_policy<copy_const_reference>(),131 129 "time() -> int\n" 132 130 "Returns the time at which the event occurred." PyJuggler/trunk/src/gadget/_KeyEvent.cpp
r19730 r19942 27 27 } 28 28 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) 31 31 : gadget::KeyEvent(p0, p1, p2, p3) 32 32 { … … 34 34 } 35 35 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) 38 39 : 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) 39 48 { 40 49 /* Do nothing. */ ; … … 126 135 "Initializes data members.\n" 127 136 "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." 143 155 ) 144 156 ) 145 157 .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> >()) 148 163 .def("writeObject", &gadget::KeyEvent::writeObject, 149 164 &pyj::gadget_KeyEvent_Wrapper::default_writeObject, … … 157 172 ) 158 173 .def("getKey", &gadget::KeyEvent::getKey, 159 return_value_policy<copy_const_reference>(),160 174 "getKey() -> gadget.Key object\n" 161 175 "Gets the key that was pressed while generating this event." 162 176 ) 163 177 .def("getModifierMask", &gadget::KeyEvent::getModifierMask, 164 return_value_policy<copy_const_reference>(),165 178 "getModifierMask() -> int\n" 166 179 "Returns the modifier mask for this event. This tells which\n" … … 170 183 ) 171 184 .def("getKeyChar", &gadget::KeyEvent::getKeyChar, 172 return_value_policy<copy_const_reference>(),173 185 "getKeyChar() -> character\n" 174 186 "Returns the ASCII character corresponding to the key that was\n" 175 187 "pressed." 176 188 ) 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 ) 177 194 .def("type", &gadget::Event::type, 178 return_value_policy<copy_const_reference>(),179 195 "type() -> gadget.EventType object\n" 180 196 "Returns the type of this event. This can be used for dynamic\n" … … 191 207 ) 192 208 .def("time", &gadget::Event::time, 193 return_value_policy<copy_const_reference>(),194 209 "time() -> int\n" 195 210 "Returns the time at which the event occurred." PyJuggler/trunk/src/gadget/_MouseEvent.cpp
r19730 r19942 29 29 } 30 30 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) 35 35 : gadget::MouseEvent(p0, p1, p2, p3, p4, p5, p6, p7) 36 36 { … … 147 147 ) 148 148 .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>()) 152 152 .def("writeObject", &gadget::MouseEvent::writeObject, 153 153 &pyj::gadget_MouseEvent_Wrapper::default_writeObject, … … 161 161 ) 162 162 .def("getButton", &gadget::MouseEvent::getButton, 163 return_value_policy<copy_const_reference>(),164 163 "getButton() -- gadget.Keys value\n" 165 164 ) 166 165 .def("getX", &gadget::MouseEvent::getX, 167 return_value_policy<copy_const_reference>(),168 166 "getX() -> int\n" 169 167 "Returns the X coordinate of the mouse pointer relative to the\n" … … 171 169 ) 172 170 .def("getY", &gadget::MouseEvent::getY, 173 return_value_policy<copy_const_reference>(),174 171 "getY() -> int\n" 175 172 "Returns the Y coordinate of the mouse pointer relative to the\n" … … 177 174 ) 178 175 .def("getGlobalX", &gadget::MouseEvent::getGlobalX, 179 return_value_policy<copy_const_reference>(),180 176 "getGlobalX() -> int\n" 181 177 "Returns the X coordinate of the mouse pointer relative to the\n" … … 183 179 ) 184 180 .def("getGlobalY", &gadget::MouseEvent::getGlobalY, 185 return_value_policy<copy_const_reference>(),186 181 "getGlobalY() -> int\n" 187 182 "Returns the Y coordinate of the mouse pointer relative to the\n" … … 189 184 ) 190 185 .def("getState", &gadget::MouseEvent::getState, 191 return_value_policy<copy_const_reference>(),192 186 "getState() -> int\n" 193 187 "Returns the state of the mouse buttons and keyboard modifier\n" … … 195 189 ) 196 190 .def("type", &gadget::Event::type, 197 return_value_policy<copy_const_reference>(),198 191 "type() -> gadget.EventType object\n" 199 192 "Returns the type of this event. This can be used for dynamic\n" … … 210 203 ) 211 204 .def("time", &gadget::Event::time, 212 return_value_policy<copy_const_reference>(),213 205 "time() -> int\n" 214 206 "Returns the time at which the event occurred." PyJuggler/trunk/src/vrj/_Display.cpp
r19730 r19942 20 20 struct vrj_Display_Wrapper : vrj::Display, wrapper<vrj::Display> 21 21 { 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 34 22 virtual ~vrj_Display_Wrapper() 35 23 { … … 51 39 void _Export_Display() 52 40 { 53 class_<pyj::vrj_Display_Wrapper>("Display", 41 class_<pyj::vrj_Display_Wrapper, vrj::DisplayPtr, boost::noncopyable>( 42 "Display", 54 43 "Container class for viewports and window information. This stores\n" 55 44 "the size and location of the window and the viewports contained\n" 56 45 "within." 57 46 , 58 init<>()47 no_init 59 48 ) 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 ) 61 53 .def("isActive", &vrj::Display::isActive, 62 54 "isActive() -> Boolean\n" … … 94 86 ) 95 87 // .def(self_ns::str(self)) 88 .staticmethod("create") 96 89 ; 97 90 } PyJuggler/trunk/src/vrj/_SimViewport.cpp
r19730 r19942 89 89 " units." 90 90 ) 91 .def("getDrawSimInterface", &vrj::SimViewport::getDrawSimInterface, 92 return_internal_reference<1>()) 91 .def("getDrawSimInterface", &vrj::SimViewport::getDrawSimInterface) 93 92 ; 94 93 } PyJuggler/trunk/src/vrj/_Viewport.cpp
r19730 r19942 123 123 ) 124 124 .def("getDisplay", &vrj::Viewport::getDisplay, 125 return_internal_reference<1>(),126 125 "getDisplay() -> vrj.Display object\n" 127 126 "Gets the display contaning this viewprot."
