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