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/__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 
    124import avango # Trigger type registration 
    225import avango.nodefactory 
     
    5881                print "WARNING: Ignoring ill-formated option: '%s'" % arg 
    5982        else: 
    60             if arg:  
    61                 args.insert(0, arg)                 
     83            if arg: 
     84                args.insert(0, arg) 
    6285            args.insert(0, opt) 
    63          
     86 
    6487 
    6588    if notify_level > -1: 
     
    86109def make_user(user=0, interface="", subdisplay=""): 
    87110    """Create a field container that represents the user position. 
    88      
     111 
    89112      - *user* selects the n-th *active* user of the display. 
    90113 
     
    116139    """Create a field container that represents the device held in the dominant 
    117140    hand of the active user 
    118      
     141 
    119142      - *user* selects the n-th *active* user of the display. 
    120143 
     
    155178def make_view(subdisplay=""): 
    156179    """Create a field container that represents a viewport into a scene. 
    157      
     180 
    158181      - *subdisplay* is used, if the display has multiple disjoint subdisplays 
    159182        and the viewport on a specific display has to be selected. 
     
    175198 
    176199      - *Near* is the near clipping plane. 
    177        
     200 
    178201      - *Far* is the near clipping plane. 
    179202 
     
    207230def make_device(device, interface=""): 
    208231    """Create a field container that represents a generic device. 
    209      
     232 
    210233      - *device* is the name of the device. A display maps this name to a 
    211234        specific device and returns a field container representing it. 
     
    219242    this interface is rather limited, one typically provides a specific 
    220243    interface: 
    221          
     244 
    222245      - *Active* is a boolean that is true if the device is recognized by the 
    223246        system (e.g. because the tracking cameras see the corresponding target) 
     
    254277    module_path = [os.path.join(os.path.split(__file__)[0], 'setups')] 
    255278    env_path = os.environ.get('AVANGO_DISPLAY_PATH', "").split(':') 
    256      
     279 
    257280    display_filename = display_type+'.py' 
    258281    for path in itertools.chain(env_path, _search_path, module_path): 
Note: See TracChangeset for help on using the changeset viewer.