- Timestamp:
- 08/17/10 16:31:51 (21 months ago)
- Location:
- trunk/avango-display
- Files:
-
- 1 added
- 2 edited
-
SConscript (modified) (1 diff)
-
python/avango/display/setups/Monitor.py (modified) (3 diffs)
-
python/avango/display/setups/__init__.py (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/avango-display/SConscript
r448 r512 37 37 """) 38 38 av_display_setups_files = Split(""" 39 python/avango/display/setups/__init__.py 39 40 python/avango/display/setups/AutoStereoDisplay.py 40 41 python/avango/display/setups/FakeTwoView.py 41 42 python/avango/display/setups/iCone.py 42 python/avango/display/setups/Monitor.py43 43 python/avango/display/setups/Monitor.py 44 44 python/avango/display/setups/TwoView.py -
trunk/avango-display/python/avango/display/setups/Monitor.py
r484 r512 31 31 class Monitor(avango.display.Display): 32 32 33 def __init__(self, inspector, options ):33 def __init__(self, inspector, options, generate_window=True, window_translation = avango.osg.make_trans_mat(0, 1.7, -0.6), user_translation = avango.osg.make_trans_mat(avango.osg.Vec3(0., 1.7, 0.))): 34 34 super(Monitor, self).__init__("Monitor", inspector) 35 35 … … 44 44 if options.has_key(trackball_token) and self._bool_dict.has_key(options[trackball_token].lower()): 45 45 self._enable_trackball=self._bool_dict[options[trackball_token].lower()] 46 47 window = self.make_window(0, 0, 1024, 768, 0.4, 0.3, False, self._screen_identifier, 2) 48 window.Name.value = "AVANGO" 49 window.Decoration.value = True 50 window.AutoHeight.value = True 51 window.ShowCursor.value = True 52 self.add_window(window, avango.osg.make_trans_mat(0, 1.7, -0.6), 0) 53 self._subdisplay_window[""]=window 46 47 if generate_window: 48 window = self.make_window(0, 0, 1024, 768, 0.4, 0.3, False, self._screen_identifier, 2) 49 window.Name.value = "AVANGO" 50 window.Decoration.value = True 51 window.AutoHeight.value = True 52 window.ShowCursor.value = True 53 54 self.add_window(window, window_translation, 0) 55 self._subdisplay_window[""]=window 54 56 55 57 user = avango.display.nodes.User() 56 user.Matrix.value = avango.osg.make_trans_mat(avango.osg.Vec3(0., 1.7, 0.))58 user.Matrix.value = user_translation 57 59 self.add_user(user) 58 60 … … 167 169 168 170 def make_device(self, device, interface): 169 170 171 if device == "SpaceMouse" or interface == "Relative6DOF": 171 172
Note: See TracChangeset
for help on using the changeset viewer.
