VisuGlExtNodes

VisuGlExtNodes — Defines methods to draw a set of nodes.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuGlExt
            ╰── VisuGlExtNodes

Implemented Interfaces

VisuGlExtNodes implements VisuNodeArrayRenderer.

Description

Functions

visu_gl_ext_nodes_new ()

VisuGlExtNodes *
visu_gl_ext_nodes_new ();

Creates a new VisuGlExt to draw a set of nodes. It can be used also for picking, see visu_gl_ext_nodes_getSelection().

Returns

a pointer to the VisuGlExt it created or NULL otherwise.

Since: 3.7


visu_gl_ext_nodes_setMaterialEffect ()

gboolean
visu_gl_ext_nodes_setMaterialEffect (VisuGlExtNodes *nodes,
                                     VisuElementRendererEffects effect);

Changes the effect applied on the color used to render VisuElement.

Parameters

nodes

a VisuGlExtNodes object.

 

effect

a VisuGlExtNodesEffects id.

 

Returns

TRUE if the effect has been changed.

Since: 3.7


visu_gl_ext_nodes_getSelectionByRegion ()

GArray *
visu_gl_ext_nodes_getSelectionByRegion
                               (VisuGlExtNodes *ext,
                                int x1,
                                int y1,
                                int x2,
                                int y2);

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

Parameters

ext

a VisuGlExtNodes object;

 

x1

a window coordinate;

 

y1

a window coordinate;

 

x2

a window coordinate;

 

y2

a window coordinate.

 

Returns

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

[transfer full][element-type guint]

Since: 3.7


visu_gl_ext_nodes_getSelection ()

int
visu_gl_ext_nodes_getSelection (VisuGlExtNodes *ext,
                                int x,
                                int y);

Get the id of a VisuNode on top of the z-buffer.

Parameters

ext

a VisuGlExtNodes object;

 

x

a window coordinate;

 

y

a window coordinate.

 

Returns

-1 if no node found, or its id.

Since: 3.7

Types and Values

struct VisuGlExtNodes

struct VisuGlExtNodes;

An opaque structure.

Since: 3.7


struct VisuGlExtNodesClass

struct VisuGlExtNodesClass {
  VisuGlExtClass parent;
};

A short way to identify _VisuGlExtNodesClass structure.

Members

VisuGlExtClass parent;

the parent class;

 

Since: 3.7