Changeset 6113
- Timestamp:
- Jan 5, 2009, 2:42:37 PM (16 years ago)
- Location:
- anuga_core/source/anuga/visualiser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/visualiser/realtime.py
r4897 r6113 142 142 self.sync_unpaused.wait() 143 143 144 144 return self.running 145 145 146 146 def evolveFinished(self): -
anuga_core/source/anuga/visualiser/visualiser.py
r4267 r6113 20 20 self.height_offset = {} 21 21 self.height_opacity = {} 22 self.height_wireframe = {} 22 23 23 24 # Structures for colouring quantities … … 114 115 pass 115 116 116 def render_quantity_height(self, quantityName, zScale=1.0, offset=0.0, opacity=1.0, dynamic=True ):117 def render_quantity_height(self, quantityName, zScale=1.0, offset=0.0, opacity=1.0, dynamic=True, wireframe=False): 117 118 """Instruct the visualiser to render a quantity using the 118 119 value at a point as its height. The value at each point is … … 126 127 self.height_dynamic[quantityName] = dynamic 127 128 self.height_opacity[quantityName] = opacity 129 self.height_wireframe[quantityName] = wireframe 128 130 129 131 def update_height_quantity(self, quantityName, dynamic=True): … … 156 158 actor = self.vtk_actors[quantityName] = vtkActor() 157 159 actor.GetProperty().SetOpacity(self.height_opacity[quantityName]) 160 if self.height_wireframe[quantityName]: 161 actor.GetProperty().SetRepresentationToWireframe() 158 162 actor.SetMapper(mapper) 159 163 self.vtk_renderer.AddActor(actor)
Note: See TracChangeset
for help on using the changeset viewer.