Changeset 448
- Timestamp:
- 05/14/10 11:31:00 (21 months ago)
- Location:
- trunk
- Files:
-
- 165 edited
-
SConstruct (modified) (2 diffs)
-
avango-build/src/avango/__init__.py (modified) (2 diffs)
-
avango-build/src/avango/build/__init__.py (modified) (5 diffs)
-
avango-build/src/avango/build/config.py (modified) (2 diffs)
-
avango-build/src/avango/build/configstore.py (modified) (3 diffs)
-
avango-build/src/avango/build/defaults.py (modified) (2 diffs)
-
avango-build/src/avango/build/environment.py (modified) (3 diffs)
-
avango-build/src/avango/build/oshelper.py (modified) (2 diffs)
-
avango-build/src/avango/build/recipes.py (modified) (3 diffs)
-
avango-build/src/avango/build/tools/subst.py (modified) (2 diffs)
-
avango-build/src/avango/build/utility.py (modified) (4 diffs)
-
avango-connect/SConscript (modified) (2 diffs)
-
avango-connect/python/avango/connect/_MFInt.py (modified) (2 diffs)
-
avango-connect/python/avango/connect/_MFMatrix.py (modified) (2 diffs)
-
avango-connect/python/avango/connect/_MFString.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_MFVec2.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_MFVec3.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_SFBool.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_SFDouble.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_SFFloat.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_SFInt.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_SFMatrix.py (modified) (2 diffs)
-
avango-connect/python/avango/connect/_SFString.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_SFVec4.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/__init__.py (modified) (2 diffs)
-
avango-connect/python/avango/connect/_io.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_pipe.py (modified) (2 diffs)
-
avango-connect/python/avango/connect/_registry.py (modified) (3 diffs)
-
avango-connect/python/avango/connect/_server.py (modified) (2 diffs)
-
avango-connect/python/tests/TestField.py (modified) (3 diffs)
-
avango-connect/python/tests/TestPipe.py (modified) (2 diffs)
-
avango-connect/python/tests/TestServer.py (modified) (2 diffs)
-
avango-connect/python/tests/runtests.py (modified) (2 diffs)
-
avango-connect/tools/CLI.py (modified) (1 diff)
-
avango-daemon/include/avango/daemon/SConscript (modified) (1 diff)
-
avango-daemon/python/__init__.py (modified) (2 diffs)
-
avango-daemon/src/examples/SConstruct (modified) (1 diff)
-
avango-display/SConscript (modified) (2 diffs)
-
avango-display/include/avango/display/mt/SConscript (modified) (1 diff)
-
avango-display/python/avango-display-daemon.py (modified) (6 diffs)
-
avango-display/python/avango/display/__init__.py (modified) (9 diffs)
-
avango-display/python/avango/display/_device.py (modified) (14 diffs)
-
avango-display/python/avango/display/_display.py (modified) (7 diffs)
-
avango-display/python/avango/display/_screen_descriptor.py (modified) (4 diffs)
-
avango-display/python/avango/display/_view.py (modified) (2 diffs)
-
avango-display/python/avango/display/setups/AutoStereoDisplay.py (modified) (2 diffs)
-
avango-display/python/avango/display/setups/FakeTwoView.py (modified) (2 diffs)
-
avango-display/python/avango/display/setups/Monitor.py (modified) (5 diffs)
-
avango-display/python/avango/display/setups/TwoView.py (modified) (8 diffs)
-
avango-display/python/avango/display/setups/Wall.py (modified) (2 diffs)
-
avango-display/python/avango/display/setups/iCone.py (modified) (9 diffs)
-
avango-display/src/avango/display/mt/SConscript (modified) (1 diff)
-
avango-display/src/avango/display/mt/multitouch/oscpack/SConscript (modified) (2 diffs)
-
avango-display/wrapper/avango/display/mt/SConscript (modified) (1 diff)
-
avango-display/wrapper/avango/display/mt/__init__.py (modified) (2 diffs)
-
avango-doc/epydoc/SConscript (modified) (1 diff)
-
avango-inspector/src/avango/inspector/__init__.py (modified) (3 diffs)
-
avango-menu/python/avango/menu/_PlacementMonitor.py (modified) (2 diffs)
-
avango-menu/python/avango/menu/_Tools.py (modified) (1 diff)
-
avango-menu/python/avango/menu/__init__.py (modified) (2 diffs)
-
avango-menu/python/avango/menu/layout/__init__.py (modified) (2 diffs)
-
avango-menu/python/avango/menu/widget/__init__.py (modified) (2 diffs)
-
avango-moving/python/avango/moving/__init__.py (modified) (2 diffs)
-
avango-openal/python/__init__.py (modified) (2 diffs)
-
avango-osg/python/SConscript (modified) (1 diff)
-
avango-osg/python/avango/osg/__init__.py (modified) (2 diffs)
-
avango-osg/python/avango/osg/particle/__init__.py (modified) (2 diffs)
-
avango-osg/python/avango/osg/simpleviewer/__init__.py (modified) (2 diffs)
-
avango-osg/python/avango/osg/viewer/__init__.py (modified) (2 diffs)
-
avango-osg/python/tests/TestOSG.py (modified) (2 diffs)
-
avango-osg/python/tests/TestOSGFields.py (modified) (2 diffs)
-
avango-osg/python/tests/runtests.py (modified) (2 diffs)
-
avango-python/SConstruct (modified) (1 diff)
-
avango-python/include/avango/python/SConscript (modified) (1 diff)
-
avango-python/include/avango/python/script/SConscript (modified) (1 diff)
-
avango-python/src/avango/_fieldcontainer.py (modified) (2 diffs)
-
avango-python/src/avango/_utility.py (modified) (2 diffs)
-
avango-python/src/avango/nodefactory.py (modified) (2 diffs)
-
avango-python/src/tests/TestFieldContainer.py (modified) (2 diffs)
-
avango-python/src/tests/TestNodefactory.py (modified) (2 diffs)
-
avango-python/src/tests/TestScript.py (modified) (1 diff)
-
avango-python/src/tests/TestUpdate.py (modified) (2 diffs)
-
avango-python/src/tests/apackage/__init__.py (modified) (2 diffs)
-
avango-python/src/tests/apackage/empty.py (modified) (2 diffs)
-
avango-python/src/tests/mock.py (modified) (2 diffs)
-
avango-python/src/tests/runtests.py (modified) (1 diff)
-
avango-shade/core/SConstruct (modified) (1 diff)
-
avango-sound/python/__init__.py (modified) (2 diffs)
-
avango-tools/python/avango/tools/__init__.py (modified) (2 diffs)
-
avango-tools/src/avango/tools/SConscript (modified) (1 diff)
-
avango-unittest/include/avango/UnitTest++/Posix/SConscript (modified) (1 diff)
-
avango-unittest/include/avango/UnitTest++/SConscript (modified) (1 diff)
-
avango-unittest/include/avango/UnitTest++/Win32/SConscript (modified) (1 diff)
-
avango-utils/python/__init__.py (modified) (1 diff)
-
avango-utils/python/_bool_script_merge.py (modified) (3 diffs)
-
avango-utils/python/_bool_scripts.py (modified) (5 diffs)
-
avango-utils/python/_converter.py (modified) (6 diffs)
-
avango-utils/python/_field_dump.py (modified) (1 diff)
-
avango-utils/python/_interconnect.py (modified) (33 diffs)
-
avango-utils/python/_loadfile_scaler.py (modified) (1 diff)
-
avango-utils/python/_normalization.py (modified) (4 diffs)
-
avango-utils/python/_property_modifier.py (modified) (2 diffs)
-
avango-utils/python/_task_scheduler.py (modified) (4 diffs)
-
avango-utils/python/_triggers.py (modified) (3 diffs)
-
avango-utils/tests/TestBoolScripts.py (modified) (5 diffs)
-
avango-utils/tests/TestConverters.py (modified) (4 diffs)
-
avango-utils/tests/TestNormalization.py (modified) (5 diffs)
-
avango-utils/tests/TestTaskScheduler.py (modified) (4 diffs)
-
avango-utils/tests/TestTriggers.py (modified) (4 diffs)
-
avango-utils/tests/__init__.py (modified) (1 diff)
-
examples/3d-menu/basic_tutorial.py (modified) (2 diffs)
-
examples/SConscript (modified) (2 diffs)
-
examples/avango-tools/drag-tool.py (modified) (2 diffs)
-
examples/avango-tools/multi-tools.py (modified) (2 diffs)
-
examples/avango-utils/interconnect_client.py (modified) (2 diffs)
-
examples/avango-utils/interconnect_server.py (modified) (1 diff)
-
examples/billboard/billboard.py (modified) (1 diff)
-
examples/connect/client.py (modified) (2 diffs)
-
examples/connect/server.py (modified) (2 diffs)
-
examples/daemon/SConscript (modified) (1 diff)
-
examples/daemon/dtrack-app.py (modified) (3 diffs)
-
examples/daemon/dtrack-daemon.py (modified) (2 diffs)
-
examples/daemon/mouse-app.py (modified) (3 diffs)
-
examples/daemon/mouse-daemon.py (modified) (2 diffs)
-
examples/daemon/spacemouse-app.py (modified) (4 diffs)
-
examples/daemon/spacemouse-daemon.py (modified) (3 diffs)
-
examples/daemon/vrpn-app.py (modified) (4 diffs)
-
examples/daemon/vrpn-daemon.py (modified) (2 diffs)
-
examples/daemon/wacom-app.py (modified) (3 diffs)
-
examples/daemon/wacom-daemon.py (modified) (2 diffs)
-
examples/daemon/wiimote-app.py (modified) (2 diffs)
-
examples/daemon/wiimote-daemon.py (modified) (2 diffs)
-
examples/desktop-flyer/desktopflyer-test.py (modified) (2 diffs)
-
examples/display/custom-device.py (modified) (3 diffs)
-
examples/display/keyboard_mouse_monitor.py (modified) (4 diffs)
-
examples/display/test_app_1.py (modified) (1 diff)
-
examples/display/test_app_2.py (modified) (1 diff)
-
examples/display/test_app_3.py (modified) (1 diff)
-
examples/display/two_view_wiimote.py (modified) (2 diffs)
-
examples/distribution/simpleviewer-clnt.py (modified) (2 diffs)
-
examples/distribution/simpleviewer-srv.py (modified) (2 diffs)
-
examples/embedded-viewer/embedded.py (modified) (2 diffs)
-
examples/inspector/elasticnodes.py (modified) (12 diffs)
-
examples/inspector/inspector-with-context-menu.py (modified) (12 diffs)
-
examples/inspector/inspector-with-display.py (modified) (1 diff)
-
examples/inspector/inspector.py (modified) (1 diff)
-
examples/inspector/inspector_qt.py (modified) (13 diffs)
-
examples/inspector/wobble.py (modified) (1 diff)
-
examples/layer/layergeode.py (modified) (2 diffs)
-
examples/layer/layergroup.py (modified) (2 diffs)
-
examples/low-level-display-setup/compositeviewer-setup.py (modified) (2 diffs)
-
examples/low-level-display-setup/twoview.py (modified) (2 diffs)
-
examples/low-level-display-setup/viewer-setup.py (modified) (2 diffs)
-
examples/prerender/prerender.py (modified) (3 diffs)
-
examples/shade/plastic-sphere.py (modified) (1 diff)
-
examples/shade/plastic-textured-sphere.py (modified) (1 diff)
-
examples/shade/sphere.py (modified) (1 diff)
-
examples/shade/textured-sphere.py (modified) (1 diff)
-
examples/shade/two-textured-spheres.py (modified) (1 diff)
-
examples/shader/shader.py (modified) (6 diffs)
-
examples/simple/SimpleScene.py (modified) (2 diffs)
-
examples/snowland/snowland.py (modified) (2 diffs)
-
examples/sound/openal/openal-test.py (modified) (2 diffs)
-
examples/video/video.py (modified) (3 diffs)
-
examples/wireframe/wireframe.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r434 r448 103 103 avango.build.TestEnvironment.add_library('avango-unittest') 104 104 105 # List is ordered by dependency of modules 105 # List is ordered by dependency of modules 106 106 avango.build.SConscript('avango-build/SConscript') 107 107 avango.build.SConscript('avango-core/SConscript') … … 114 114 avango.build.SConscript('avango-menu/SConscript') 115 115 if not avango.build.oshelper.os_is_windows() and \ 116 not avango.build.oshelper.os_is_mac(): #FIXME get module running under Windows/MAC116 not avango.build.oshelper.os_is_mac(): #FIXME get module running under Windows/MAC 117 117 avango.build.SConscript('avango-daemon/SConscript') 118 118 if not avango.build.oshelper.os_is_windows() and \ -
trunk/avango-build/src/avango/__init__.py
r1 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2008 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## 23 -
trunk/avango-build/src/avango/build/__init__.py
r323 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #5 # This file is part of AVANGO. # 6 # # 7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 200 198 result.Append(CCFLAGS='-wd177,383,424,810,981,1418,1419,1572') 201 199 result.Append(LINKFLAGS='-static-intel') 202 200 203 201 if oshelper.os_is_windows(): 204 202 if result.get('OPENSCENEGRAPH_DEBUG', None): # FIXME move this elswhere … … 210 208 else: 211 209 result.Append(CCFLAGS='-ansi -Wall') 212 210 213 211 if result['DEBUG']: 214 212 if oshelper.os_is_windows(): … … 221 219 if result['CXX'] == 'g++': 222 220 result.Append(CCFLAGS='-fno-strict-aliasing') 223 221 224 222 if result['TRACE_LOGGING']: 225 223 result.Append(CPPDEFINES='TRACE_LOGGING') 226 224 227 225 if result['BUILD_32']: 228 226 # FIXME does this work in Windows or Mac OS X? 229 227 result.Append(CCFLAGS='-m32') 230 228 result.Append(LINKFLAGS='-m32') 231 229 232 230 result.PrependENVPath('PATH', result['BINARY_PATH']) 233 231 result.Prepend(CPPPATH=result['INCLUDE_PATH'].split(os.pathsep)) -
trunk/avango-build/src/avango/build/config.py
r295 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-build/src/avango/build/configstore.py
r1 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2008 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 45 43 46 44 _config_store = ConfigStore() 47 -
trunk/avango-build/src/avango/build/defaults.py
r295 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-build/src/avango/build/environment.py
r1 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2008 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 172 170 def collect_path(cls): 173 171 return cls._path_manager.merge(Environment._path_manager) 174 -
trunk/avango-build/src/avango/build/oshelper.py
r215 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-build/src/avango/build/recipes.py
r434 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 20 08Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2010 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 72 70 73 71 _config_store.set('python', PythonConfig()) 74 72 75 73 # Dummy packages 76 74 _config_store.set('osgUtil', PlainConfig(libraries = [''])) 77 75 _config_store.set('GL', PlainConfig(libraries = [''])) 78 76 _config_store.set('GLU', PlainConfig(libraries = [''])) 79 77 80 78 if oshelper.os_is_mac(): 81 79 _config_store.set('osg', PlainConfig(libraries = ['osg', 'OpenThreads'])) 82 80 _config_store.set('osgUtil', PlainConfig(libraries = ['osgUtil'])) 83 81 _config_store.set('GL', PlainConfig(libraries = ['GL'])) 84 _config_store.set('GLU', PlainConfig(libraries = ['GLU'])) 82 _config_store.set('GLU', PlainConfig(libraries = ['GLU'])) 85 83 86 84 # Override some libraries for Windows -
trunk/avango-build/src/avango/build/tools/subst.py
r1 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2008 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-build/src/avango/build/utility.py
r1 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2008 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 47 45 sourceList = [] 48 46 prepend_string = '' 49 47 50 48 if env['DEBUG']: 51 49 mode = 'Debug' 52 50 else: 53 51 mode = 'Release' 54 52 55 53 for s in sources: 56 54 sourceList.append('..\\' + s.srcnode().path) … … 63 61 variant_list.append('Check|Win32') 64 62 variant_list.append(mode+'|Win32') 65 63 66 64 project = env.MSVSProject(target = name + env['MSVSPROJECTSUFFIX'], 67 65 auto_build_solution=0, -
trunk/avango-connect/SConscript
r408 r448 33 33 34 34 connect_files = Split(""" 35 python/avango/connect/_MFInt.py35 python/avango/connect/_MFInt.py 36 36 python/avango/connect/_MFMatrix.py 37 37 python/avango/connect/_MFString.py … … 96 96 csharp_env = Environment(tools=['default', 'CLI'], toolpath=['tools']) 97 97 csharp_env.Append(CSCFLAGS='-debug') 98 98 99 99 connect_dll = csharp_env.CLILibrary('csharp/connect/connect.dll', csharp_files) 100 100 -
trunk/avango-connect/python/avango/connect/_MFInt.py
r182 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-connect/python/avango/connect/_MFMatrix.py
r180 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-connect/python/avango/connect/_MFString.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 43 41 44 42 _register_field(avango.MFString, MFStringDescriptor()) 45 -
trunk/avango-connect/python/avango/connect/_MFVec2.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 47 45 48 46 _register_field(avango.osg.MFVec2, MFVec2Descriptor()) 49 -
trunk/avango-connect/python/avango/connect/_MFVec3.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 48 46 49 47 _register_field(avango.osg.MFVec3, MFVec3Descriptor()) 50 -
trunk/avango-connect/python/avango/connect/_SFBool.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 45 43 46 44 _register_field(avango.SFBool, SFBoolDescriptor()) 47 -
trunk/avango-connect/python/avango/connect/_SFDouble.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 42 40 43 41 _register_field(avango.SFDouble, SFDoubleDescriptor()) 44 -
trunk/avango-connect/python/avango/connect/_SFFloat.py
r204 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 42 40 43 41 _register_field(avango.SFFloat, SFFloatDescriptor()) 44 -
trunk/avango-connect/python/avango/connect/_SFInt.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 42 40 43 41 _register_field(avango.SFInt, SFIntDescriptor()) 44 -
trunk/avango-connect/python/avango/connect/_SFMatrix.py
r184 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-connect/python/avango/connect/_SFString.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 42 40 43 41 _register_field(avango.SFString, SFStringDescriptor()) 44 -
trunk/avango-connect/python/avango/connect/_SFVec4.py
r187 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 47 45 for x in zip(line[::4], line[1::4], line[2::4], line[3::4]): 48 46 vec = avango.osg.Vec4(float(x[0]), float(x[1]), float(x[2]), float(x[3])) 49 field.value = vec 47 field.value = vec 50 48 return field 51 49 52 50 _register_field(avango.osg.SFVec4, SFVec4Descriptor()) 53 -
trunk/avango-connect/python/avango/connect/__init__.py
r204 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-connect/python/avango/connect/_io.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 43 41 line = raw_line[:-1].split('\x00') 44 42 return line[0], _registry_from_key[line[1]].read(line[2:]) 45 -
trunk/avango-connect/python/avango/connect/_pipe.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-connect/python/avango/connect/_registry.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 30 28 _registry_from_type[field] = field_descriptor 31 29 _registry_from_key[field_descriptor.key] = field_descriptor 32 -
trunk/avango-connect/python/avango/connect/_server.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-connect/python/tests/TestField.py
r204 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## … … 215 213 0.0\x000.0\x001.0\x000.0\x00 216 214 0.0\x008.0\x0015.0\x001.0""", 217 "\n", 215 "\n", 218 216 hout.getvalue()) 219 217 -
trunk/avango-connect/python/tests/TestPipe.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-connect/python/tests/TestServer.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-connect/python/tests/runtests.py
r56 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #5 # This file is part of AVANGO. # 6 6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-connect/tools/CLI.py
r56 r448 1 # -*- Mode:Python -*- 2 1 3 # 2 4 # C# builder -
trunk/avango-daemon/include/avango/daemon/SConscript
r406 r448 43 43 WiimoteActuator.h 44 44 ''') 45 45 46 46 if avango.build.Environment()['VRPN_SUPPORT']: 47 47 headers += Split(''' -
trunk/avango-daemon/python/__init__.py
r61 r448 3 3 ########################################################################## 4 4 # # 5 # This file is part of A vango. #6 # # 7 # Copyright 1997 - 200 8Fraunhofer-Gesellschaft zur Foerderung der #5 # This file is part of AVANGO. # 6 # # 7 # Copyright 1997 - 2009 Fraunhofer-Gesellschaft zur Foerderung der # 8 8 # angewandten Forschung (FhG), Munich, Germany. # 9 9 # # 10 # A vangois free software: you can redistribute it and/or modify #10 # AVANGO is free software: you can redistribute it and/or modify # 11 11 # it under the terms of the GNU Lesser General Public License as # 12 12 # published by the Free Software Foundation, version 3. # 13 13 # # 14 # A vangois distributed in the hope that it will be useful, #14 # AVANGO is distributed in the hope that it will be useful, # 15 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 18 18 # # 19 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 # Avango is a trademark owned by FhG. # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 23 21 # # 24 22 ########################################################################## -
trunk/avango-daemon/src/examples/SConstruct
r407 r448 22 22 ########################################################################## 23 23 24 25 24 env = Environment() 26 25 env.Append(LIBS=[ 'osg', 'avango', 'avangoOsg', 'avangoDaemon']) 27 26 env.Program('TestDevice.cpp') 28 -
trunk/avango-display/SConscript
r406 r448 72 72 'AVANGO_DISPLAY_MT_VERSION_MAINT': '0', 73 73 } 74 74 75 75 76 76 display_mt_env.Append(CPPDEFINES='AV_DISPLAY_MT_LIBRARY') … … 88 88 'wrapper/avango/display/mt/SConscript' 89 89 ]) 90 -
trunk/avango-display/include/avango/display/mt/SConscript
r408 r448 30 30 31 31 Alias('install-display', Install(avango.build.get_include_path('avango/display/mt'), headers_av)) 32 -
trunk/avango-display/python/avango-display-daemon.py
r387 r448 4 4 ########################################################################## 5 5 # # 6 # This file is part of A vango. #6 # This file is part of AVANGO. # 7 7 # # 8 # Copyright 1997 - 20 08Fraunhofer-Gesellschaft zur Foerderung der #8 # Copyright 1997 - 2010 Fraunhofer-Gesellschaft zur Foerderung der # 9 9 # angewandten Forschung (FhG), Munich, Germany. # 10 10 # # 11 # A vangois free software: you can redistribute it and/or modify #11 # AVANGO is free software: you can redistribute it and/or modify # 12 12 # it under the terms of the GNU Lesser General Public License as # 13 13 # published by the Free Software Foundation, version 3. # 14 14 # # 15 # A vangois distributed in the hope that it will be useful, #15 # AVANGO is distributed in the hope that it will be useful, # 16 16 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 17 17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 19 19 # # 20 20 # You should have received a copy of the GNU Lesser General Public # 21 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 22 # # 23 # Avango is a trademark owned by FhG. # 21 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 24 22 # # 25 23 ########################################################################## … … 45 43 wiimote.buttons[ 9] = "EV_KEY::KEY_BACK" # - 46 44 wiimote.buttons[10] = "EV_KEY::KEY_FORWARD" # + 47 45 48 46 return wiimote 49 50 47 48 51 49 try: 52 50 opts, args = getopt.getopt(sys.argv[1:], "hn:l:d:o:", … … 124 122 spacemouse.buttons[4] = "EV_KEY::BTN_TOP" # 4 125 123 spacemouse.buttons[5] = "EV_KEY::BTN_TOP2" # 5 126 spacemouse.buttons[6] = "EV_KEY::BTN_PINKIE" # 6 124 spacemouse.buttons[6] = "EV_KEY::BTN_PINKIE" # 6 127 125 spacemouse.buttons[7] = "EV_KEY::BTN_BASE" # 7 128 126 spacemouse.buttons[8] = "EV_KEY::BTN_BASE2" # 8 129 127 spacemouse.buttons[9] = "EV_KEY::BTN_0" # Left SpaceNavigator Button 130 128 spacemouse.buttons[10] = "EV_KEY::BTN_1" # Right SpaceNavigator Button 131 129 132 130 elif display_type == "TwoView" or display_type == "iCone": 133 131 #add the DTrack daemon and its known targets … … 150 148 dtrack.stations[14] = avango.daemon.Station("ve-dtrack-head8") 151 149 dtrack.stations[15] = avango.daemon.Station("ve-dtrack-logitech") 152 150 153 151 #add the wiimotes 154 152 devices.append(add_wiimote("/dev/input/ve-wiimote1", "wiimote1")) … … 156 154 devices.append(add_wiimote("/dev/input/ve-wiimote3", "wiimote3")) 157 155 devices.append(add_wiimote("/dev/input/ve-wiimote4", "wiimote4")) 158 156 159 157 160 158 # start daemon (will enter the main loop) -
trunk/avango-display/python/avango/display/__init__.py
r350 r448 1 # -*- Mode:Python -*- 2 3 ########################################################################## 4 # # 5 # This file is part of AVANGO. # 6 # # 7 # Copyright 1997 - 2010 Fraunhofer-Gesellschaft zur Foerderung der # 8 # angewandten Forschung (FhG), Munich, Germany. # 9 # # 10 # AVANGO is free software: you can redistribute it and/or modify # 11 # it under the terms of the GNU Lesser General Public License as # 12 # published by the Free Software Foundation, version 3. # 13 # # 14 # AVANGO is distributed in the hope that it will be useful, # 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # 17 # GNU General Public License for more details. # 18 # # 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 ########################################################################## 23 1 24 import avango # Trigger type registration 2 25 import avango.nodefactory … … 58 81 print "WARNING: Ignoring ill-formated option: '%s'" % arg 59 82 else: 60 if arg: 61 args.insert(0, arg) 83 if arg: 84 args.insert(0, arg) 62 85 args.insert(0, opt) 63 86 64 87 65 88 if notify_level > -1: … … 86 109 def make_user(user=0, interface="", subdisplay=""): 87 110 """Create a field container that represents the user position. 88 111 89 112 - *user* selects the n-th *active* user of the display. 90 113 … … 116 139 """Create a field container that represents the device held in the dominant 117 140 hand of the active user 118 141 119 142 - *user* selects the n-th *active* user of the display. 120 143 … … 155 178 def make_view(subdisplay=""): 156 179 """Create a field container that represents a viewport into a scene. 157 180 158 181 - *subdisplay* is used, if the display has multiple disjoint subdisplays 159 182 and the viewport on a specific display has to be selected. … … 175 198 176 199 - *Near* is the near clipping plane. 177 200 178 201 - *Far* is the near clipping plane. 179 202 … … 207 230 def make_device(device, interface=""): 208 231 """Create a field container that represents a generic device. 209 232 210 233 - *device* is the name of the device. A display maps this name to a 211 234 specific device and returns a field container representing it. … … 219 242 this interface is rather limited, one typically provides a specific 220 243 interface: 221 244 222 245 - *Active* is a boolean that is true if the device is recognized by the 223 246 system (e.g. because the tracking cameras see the corresponding target) … … 254 277 module_path = [os.path.join(os.path.split(__file__)[0], 'setups')] 255 278 env_path = os.environ.get('AVANGO_DISPLAY_PATH', "").split(':') 256 279 257 280 display_filename = display_type+'.py' 258 281 for path in itertools.chain(env_path, _search_path, module_path): -
trunk/avango-display/python/avango/display/_device.py
r430 r448 45 45 self.super(Device).__init__() 46 46 self.Active.value = True 47 48 47 48 49 49 class KeyboardDevice(avango.script.Script): 50 50 51 51 KeysPressed = avango.MFInt() 52 52 … … 81 81 KeyF11 = avango.SFBool() 82 82 KeyF12 = avango.SFBool() 83 83 84 84 Key0 = avango.SFBool() 85 85 Key1 = avango.SFBool() … … 92 92 Key8 = avango.SFBool() 93 93 Key9 = avango.SFBool() 94 94 95 95 KeyX = avango.SFBool() 96 96 KeyZ = avango.SFBool() 97 97 98 98 KeyBackslash = avango.SFBool() 99 99 KeyCloseBracket = avango.SFBool() 100 100 101 101 def __init__(self): 102 102 self.super(KeyboardDevice).__init__() 103 103 104 104 self.__prev_keys_pressed = [] 105 105 106 106 self.__keymap = {} 107 107 108 108 self.__keymap[48] = self.Key1 109 109 self.__keymap[49] = self.Key1 … … 116 116 self.__keymap[56] = self.Key8 117 117 self.__keymap[57] = self.Key9 118 118 119 119 self.__keymap[120] = self.KeyX 120 120 self.__keymap[122] = self.KeyZ 121 121 122 122 self.__keymap[92] = self.KeyBackslash 123 123 self.__keymap[41] = self.KeyCloseBracket 124 124 125 125 def add_key(self,name,id): 126 126 """ 127 127 Add a SFBool, which will be connected to the key press with the given id 128 The naming convention says that you should pass Key<Name> as name parameter. 128 The naming convention says that you should pass Key<Name> as name parameter. 129 129 E.g.: If you want to add the key <1> call add_key("Key1",48) 130 130 """ 131 131 132 132 #if a field with the given name is already known, no new field will be added 133 133 field = self._get_field(name) 134 134 if field: 135 135 return False 136 136 137 137 self.add_and_init_field(avango.SFBool(), name, id) 138 138 self.__keymap[id] = getattr(self, name) 139 139 self.__keymap[id].value = False 140 140 141 141 return True 142 142 143 143 def evaluate(self): 144 144 145 145 pressed_keys = [] 146 146 for k in self.KeysPressed.value: 147 147 pressed_keys.append(k) 148 148 149 149 #pressed keys 150 150 for key in pressed_keys: … … 157 157 if key in self.__keymap: 158 158 self.__keymap[key].value = False 159 159 160 160 self.__prev_keys_pressed = pressed_keys 161 162 161 162 163 163 def connect(self, eventfields): 164 164 165 165 self.KeysPressed.connect_from(eventfields.KeysPressed) 166 166 167 167 self.KeyRight.connect_from(eventfields.KeyRight) 168 168 self.KeyLeft.connect_from(eventfields.KeyLeft) … … 172 172 self.PageDown.connect_from(eventfields.KeyPageDown) 173 173 self.Shift.connect_from(eventfields.KeyShift) 174 self.Ctrl.connect_from(eventfields.KeyCtrl) 174 self.Ctrl.connect_from(eventfields.KeyCtrl) 175 175 self.KeyAlt.connect_from(eventfields.KeyAlt) 176 176 self.Insert.connect_from(eventfields.KeyInsert) … … 194 194 self.KeyF11.connect_from(eventfields.KeyF11) 195 195 self.KeyF12.connect_from(eventfields.KeyF12) 196 196 197 197 198 198 class MouseDevice(avango.script.Script): … … 205 205 MouseButtonMiddle = avango.SFBool() 206 206 MouseScrollUp = avango.SFBool() 207 MouseScrollDown = avango.SFBool() 207 MouseScrollDown = avango.SFBool() 208 208 MouseLeftDoubleClick = avango.SFBool() 209 209 MouseLeftAndRight = avango.SFBool() 210 210 211 211 def __init__(self): 212 212 self.super(MouseDevice).__init__() 213 213 214 214 def connect(self, eventfields, camera, window): 215 215 self.Matrix.connect_from(camera.MouseNearTransform) 216 216 217 217 self.MousePosNorm.connect_from(window.MousePositionNorm) 218 218 self.MousePos.connect_from(window.MousePosition) 219 219 self.MouseMovementNorm.connect_from(window.MouseMovementNorm) 220 220 221 221 self.MouseButtonLeft.connect_from(eventfields.MouseButtonLeft) 222 222 self.MouseButtonRight.connect_from(eventfields.MouseButtonRight) … … 226 226 self.MouseLeftDoubleClick.connect_from(eventfields.MouseButtonLeftDoubleClick) 227 227 self.MouseLeftAndRight.connect_from(eventfields.MouseButtons_LeftAndRight) 228 229 230 def make_wiimote_device(wiimote_station, dtrack_station, device_service, receiver_offset, transmitter_offset): 228 229 230 def make_wiimote_device(wiimote_station, dtrack_station, device_service, receiver_offset, transmitter_offset): 231 231 device = WiimoteDevice() 232 232 device._setup(wiimote_station, dtrack_station, device_service, receiver_offset, transmitter_offset) 233 233 return device 234 234 235 235 236 236 class WiimoteDevice(avango.script.Script): 237 237 238 238 Button0 = avango.SFBool() 239 239 Button1 = avango.SFBool() … … 247 247 Button9 = avango.SFBool() 248 248 Button10 = avango.SFBool() 249 249 250 250 LED0 = avango.SFBool() 251 251 LED1 = avango.SFBool() 252 252 LED2 = avango.SFBool() 253 253 LED3 = avango.SFBool() 254 254 255 255 Matrix = avango.osg.SFMatrix() 256 256 257 257 def __init__(self): 258 258 self.super(WiimoteDevice).__init__() 259 259 260 260 self.Button0.value = False 261 261 self.Button1.value = False … … 269 269 self.Button9.value = False 270 270 self.Button10.value = False 271 271 272 272 self.LED0.value = False 273 273 self.LED1.value = False 274 274 self.LED2.value = False 275 275 self.LED3.value = False 276 276 277 277 #will be initialized by the init function 278 278 self.dtrack_sensor = None … … 280 280 self.wiimote_actuator = None 281 281 self.device_service = None 282 283 282 283 284 284 def _setup(self, wiimote_station, dtrack_station, device_service, receiver_offset, transmitter_offset): 285 285 self.device_service = device_service … … 292 292 self.wiimote_actuator = avango.daemon.nodes.WiimoteActuator(DeviceService = device_service, 293 293 Station = wiimote_station) 294 294 295 295 self.Button0.connect_from(self.wiimote_sensor.Button0) 296 296 self.Button1.connect_from(self.wiimote_sensor.Button1) … … 304 304 self.Button9.connect_from(self.wiimote_sensor.Button9) 305 305 self.Button10.connect_from(self.wiimote_sensor.Button10) 306 306 307 307 self.wiimote_actuator.LED0.connect_from(self.LED0) 308 308 self.wiimote_actuator.LED1.connect_from(self.LED1) 309 309 self.wiimote_actuator.LED2.connect_from(self.LED2) 310 310 self.wiimote_actuator.LED3.connect_from(self.LED3) 311 311 312 312 self.Matrix.connect_from(self.dtrack_sensor.Matrix) 313 -
trunk/avango-display/python/avango/display/_display.py
r390 r448 1 # -*- Mode:Python -*- 2 3 ########################################################################## 4 # # 5 # This file is part of AVANGO. # 6 # # 7 # Copyright 1997 - 2010 Fraunhofer-Gesellschaft zur Foerderung der # 8 # angewandten Forschung (FhG), Munich, Germany. # 9 # # 10 # AVANGO is free software: you can redistribute it and/or modify # 11 # it under the terms of the GNU Lesser General Public License as # 12 # published by the Free Software Foundation, version 3. # 13 # # 14 # AVANGO is distributed in the hope that it will be useful, # 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # 17 # GNU General Public License for more details. # 18 # # 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 ########################################################################## 23 1 24 import avango.display #FIXME remove cyclic dependency 2 25 … … 9 32 from math import * 10 33 11 #The avango.daemon module is currently not available under windows 34 #The avango.daemon module is currently not available under windows 12 35 if sys.platform != 'win32': 13 36 import avango.daemon … … 25 48 self._merge_viewer = ViewMerger() 26 49 self._composite_viewer.Views.connect_from(self._merge_viewer.ViewsOut) 27 50 28 51 #the device service will be created as soon as it is used. 29 52 self._device_service = None 30 53 31 54 self._bool_dict={'false':False, 'true':True} 32 55 33 56 self._users = [] 34 57 self._windows = [] … … 47 70 def make_view(self, subdisplay): 48 71 display_view = avango.display.nodes.View() 49 72 50 73 for window, transform, current_user in self._windows: 51 74 eye_offset = 0. … … 56 79 display_view, eye_offset, transform, window) 57 80 camera.EyeTransform.connect_from(self._users[current_user].Matrix) 58 81 59 82 user_selector = ViewUserSelector(UserMatch=current_user+1) 60 83 user_selector.ViewIn.value = view … … 63 86 64 87 self.connect_view_field(user_selector.ViewOut) 65 88 66 89 self.view_created(camera,view) 67 90 … … 180 203 def add_user(self, user): 181 204 self._users.append(user) 182 205 183 206 def view_created(self,camera,view): 184 207 ''' -
trunk/avango-display/python/avango/display/_screen_descriptor.py
r399 r448 1 # -*- Mode:Python -*- 2 3 ########################################################################## 4 # # 5 # This file is part of AVANGO. # 6 # # 7 # Copyright 1997 - 2010 Fraunhofer-Gesellschaft zur Foerderung der # 8 # angewandten Forschung (FhG), Munich, Germany. # 9 # # 10 # AVANGO is free software: you can redistribute it and/or modify # 11 # it under the terms of the GNU Lesser General Public License as # 12 # published by the Free Software Foundation, version 3. # 13 # # 14 # AVANGO is distributed in the hope that it will be useful, # 15 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # 17 # GNU General Public License for more details. # 18 # # 19 # You should have received a copy of the GNU Lesser General Public # 20 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 21 # # 22 ########################################################################## 23 1 24 import avango 2 25 import avango.osg … … 13 36 self.RealS
