v_sim.GlExtLegend

g GObject.Object GObject.Object v_sim.GlExt v_sim.GlExt GObject.Object->v_sim.GlExt v_sim.GlExtFrame v_sim.GlExtFrame v_sim.GlExt->v_sim.GlExtFrame v_sim.GlExtLegend v_sim.GlExtLegend v_sim.GlExtFrame->v_sim.GlExtLegend

Subclasses:

None

Methods

Inherited:

v_sim.GlExtFrame (9), v_sim.GlExt (16), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (name)

getNodes ()

setNodes (nodes)

Virtual Methods

Inherited:

v_sim.GlExtFrame (2), v_sim.GlExt (3), GObject.Object (7)

Properties

Inherited:

v_sim.GlExtFrame (4), v_sim.GlExt (9)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

v_sim.GlExtFrame

r

priv

v_sim.GlExtLegendPrivate

r

Class Details

class v_sim.GlExtLegend(**kwargs)
Bases:

v_sim.GlExtFrame

Abstract:

No

Structure:

v_sim.GlExtLegendClass

An opaque structure.

New in version 3.7.

classmethod new(name)
Parameters:

name (str or None) – the name to give to the extension (default is v_sim.GL_EXT_LEGEND_ID).

Returns:

a pointer to the v_sim.GlExt it created or None otherwise.

Return type:

v_sim.GlExtLegend

Creates a new v_sim.GlExt to draw a legend.

New in version 3.7.

getNodes()
Returns:

the v_sim.NodeArrayRenderer this legend is based on.

Return type:

v_sim.NodeArrayRenderer

self is displaying a label showing the element of a v_sim.NodeArray using the rendering properties of a v_sim.NodeArrayRenderer.

New in version 3.8.

setNodes(nodes)
Parameters:

nodes (v_sim.NodeArrayRenderer) – the nodes to get the population of.

Returns:

True if model has been changed.

Return type:

bool

Attach an v_sim.GlView to render to and setup the legend to get the node population also.

New in version 3.7.