PYME.LMVis.layers.labels module¶
A layer which draws text labels at the positions of the points in a tabular datasource.
- class PYME.LMVis.layers.labels.LabelLayer(pipeline, **kwargs)¶
Bases:
SimpleLayerA layer which draws text labels at the positions of the points in a tabular datasource.
- 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
- clim = None¶
- cmap = <PYME.misc.mock_traits.CStr object>¶
- property colour_map¶
- property datasource¶
Return the datasource we are connected to (through our dsname property).
- default_traits_view()¶
- property default_view¶
- dsname = <PYME.misc.mock_traits.CStr object>¶
- font_size = <PYME.misc.mock_traits.Float object>¶
- format_string = <PYME.misc.mock_traits.CStr object>¶
- render(gl_canvas)¶
Abstract render method to be over-ridden in derived classes. Should check self.visible before drawing anything.
- Parameters
- gl_canvasthe canvas to draw to - an instance of PYME.LMVis.gl_render3D_shaders.LMGLShaderCanvas
- textColour = <PYME.misc.mock_traits.CStr object>¶
- update(*args, **kwargs)¶
- update_data(x=None, y=None, z=None, colors=None, cmap=None, clim=None, labels=None, alpha=1.0)¶
- update_from_datasource(ds)¶