Ignore:
Timestamp:
05/14/10 11:31:00 (2 years ago)
Author:
tholt
Message:
  • copyright header cleanup
  • whitepsace cleanup
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 
    124import avango.display #FIXME remove cyclic dependency 
    225 
     
    932from math import * 
    1033 
    11 #The avango.daemon module is currently not available under windows  
     34#The avango.daemon module is currently not available under windows 
    1235if sys.platform != 'win32': 
    1336   import avango.daemon 
     
    2548        self._merge_viewer = ViewMerger() 
    2649        self._composite_viewer.Views.connect_from(self._merge_viewer.ViewsOut) 
    27          
     50 
    2851        #the device service will be created as soon as it is used. 
    2952        self._device_service = None 
    30          
     53 
    3154        self._bool_dict={'false':False, 'true':True} 
    32          
     55 
    3356        self._users = [] 
    3457        self._windows = [] 
     
    4770    def make_view(self, subdisplay): 
    4871        display_view = avango.display.nodes.View() 
    49          
     72 
    5073        for window, transform, current_user in self._windows: 
    5174            eye_offset = 0. 
     
    5679                display_view, eye_offset, transform, window) 
    5780            camera.EyeTransform.connect_from(self._users[current_user].Matrix) 
    58              
     81 
    5982            user_selector = ViewUserSelector(UserMatch=current_user+1) 
    6083            user_selector.ViewIn.value = view 
     
    6386 
    6487            self.connect_view_field(user_selector.ViewOut) 
    65              
     88 
    6689            self.view_created(camera,view) 
    6790 
     
    180203    def add_user(self, user): 
    181204        self._users.append(user) 
    182          
     205 
    183206    def view_created(self,camera,view): 
    184207        ''' 
Note: See TracChangeset for help on using the changeset viewer.