Changeset 448 for trunk/avango-display/python/avango/display/_display.py
- Timestamp:
- 05/14/10 11:31:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 '''
Note: See TracChangeset
for help on using the changeset viewer.
