PYME.LMVis.layers.quiver module¶
- class PYME.LMVis.layers.quiver.QuiverEngine¶
Bases:
BaseEngine
- render(gl_canvas, layer)¶
- class PYME.LMVis.layers.quiver.QuiverRenderLayer(pipeline, method='quiver', dsname='', **kwargs)¶
Bases:
EngineLayer
Layer for viewing 3D vectors (e.g. search directions).
- property bbox¶
Bounding box in form [x0,y0,z0, x1,y1,z1] (or none if a bounding box does not make sense for this layer) over-ride in derived classes
- property colour_map¶
- property datasource¶
Return the datasource we are connected to (does not go through the pipeline for triangles_mesh).
- default_traits_view()¶
- property default_view¶
- dsname = <PYME.misc.mock_traits.CStr object>¶
- get_vecs()¶
- get_vertices()¶
Provides the engine with a way of obtaining vertex data. Should be over-ridden in derived class
- Returns
- a numpy array of vertices suitable for passing to glVertexPointerf()
- method = <PYME.misc.mock_traits.CStr object>¶
- scaling = <PYME.misc.mock_traits.Float object>¶
- update(*args, **kwargs)¶
- update_from_datasource(ds)¶
Pulls vertices/normals from a binary STL file. See PYME.IO.FileUtils.stl for more info. Calls update_data on the input.
- Parameters
- ds
PYME.experimental.triangular_mesh.TriangularMesh object
- Returns
- None
- vector_property = <PYME.misc.mock_traits.CStr object>¶