v_sim.GlExtNodes

g GObject.GInterface GObject.GInterface v_sim.NodeArrayRenderer v_sim.NodeArrayRenderer GObject.GInterface->v_sim.NodeArrayRenderer GObject.Object GObject.Object v_sim.GlExt v_sim.GlExt GObject.Object->v_sim.GlExt v_sim.GlExtNodes v_sim.GlExtNodes v_sim.GlExt->v_sim.GlExtNodes v_sim.NodeArrayRenderer->v_sim.GlExtNodes

Subclasses:

None

Methods

Inherited:

v_sim.GlExt (16), GObject.Object (37), v_sim.NodeArrayRenderer (8)

Structs:

GObject.ObjectClass (5)

class

new ()

getSelection (x, y)

getSelectionByRegion (x1, y1, x2, y2)

setMaterialEffect (effect)

Virtual Methods

Inherited:

v_sim.GlExt (3), GObject.Object (7), v_sim.NodeArrayRenderer (6)

Properties

Inherited:

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

Signals

Inherited:

GObject.Object (1), v_sim.NodeArrayRenderer (3)

Fields

Inherited:

GObject.Object (1), v_sim.NodeArrayRenderer (3)

Name

Type

Access

Description

parent

v_sim.GlExt

r

Class Details

class v_sim.GlExtNodes(**kwargs)
Bases:

v_sim.GlExt, v_sim.NodeArrayRenderer

Abstract:

No

Structure:

v_sim.GlExtNodesClass

An opaque structure.

New in version 3.7.

classmethod new()
Returns:

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

Return type:

v_sim.GlExtNodes

Creates a new v_sim.GlExt to draw a set of nodes. It can be used also for picking, see v_sim.GlExtNodes.getSelection().

New in version 3.7.

getSelection(x, y)
Parameters:
  • x (int) – a window coordinate;

  • y (int) – a window coordinate.

Returns:

-1 if no node found, or its id.

Return type:

int

Get the id of a v_sim.Node on top of the z-buffer.

New in version 3.7.

getSelectionByRegion(x1, y1, x2, y2)
Parameters:
  • x1 (int) – a window coordinate;

  • y1 (int) – a window coordinate;

  • x2 (int) – a window coordinate;

  • y2 (int) – a window coordinate.

Returns:

an empty list if no node found, or a newly created list of ids if any.

Return type:

[int]

Get the v_sim.Node ids in the picked region defined by (x1, y1) - (x2, y2).

New in version 3.7.

setMaterialEffect(effect)
Parameters:

effect (v_sim.ElementRendererEffects) – a v_sim.ElementRendererEffects id.

Returns:

True if the effect has been changed.

Return type:

bool

Changes the effect applied on the color used to render v_sim.Element.

New in version 3.7.