v_sim.GlExtLegend¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.GlExtLegend(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque structure.
New in version 3.7.
- classmethod new(name)¶
- Parameters:
name (
strorNone) – the name to give to the extension (default isv_sim.GL_EXT_LEGEND_ID).- Returns:
a pointer to the
v_sim.GlExtit created orNoneotherwise.- Return type:
Creates a new
v_sim.GlExtto draw a legend.New in version 3.7.
- getNodes()¶
- Returns:
the
v_sim.NodeArrayRendererthis legend is based on.- Return type:
self is displaying a label showing the element of a
v_sim.NodeArrayusing the rendering properties of av_sim.NodeArrayRenderer.New in version 3.8.
- setNodes(nodes)¶
- Parameters:
nodes (
v_sim.NodeArrayRenderer) – the nodes to get the population of.- Returns:
Trueif model has been changed.- Return type:
Attach an
v_sim.GlViewto render to and setup the legend to get the node population also.New in version 3.7.