VisuGlExtPlanes

VisuGlExtPlanes — Draw a list of VisuPlane.

Synopsis

#define             VISU_GL_EXT_PLANES_ID
struct              VisuGlExtPlanes;
struct              VisuGlExtPlanesClass;
gboolean            visu_gl_ext_planes_add              (VisuGlExtPlanes *planes,
                                                         VisuPlane *plane);
void                visu_gl_ext_planes_draw             (VisuGlExtPlanes *planes);
VisuGlExtPlanes *   visu_gl_ext_planes_getDefault       ();
VisuGlExtPlanes *   visu_gl_ext_planes_new              (const gchar *name);
gboolean            visu_gl_ext_planes_remove           (VisuGlExtPlanes *planes,
                                                         VisuPlane *plane);

Object Hierarchy

  GObject
   +----VisuGlExt
         +----VisuGlExtPlanes

Description

This extension draws a list of VisuPlane. Planes are outlined with a black line and also the intersections of planes.

Details

VISU_GL_EXT_PLANES_ID

#define VISU_GL_EXT_PLANES_ID "Planes"

The id used to identify this extension, see visu_gl_ext_rebuild() for instance.


struct VisuGlExtPlanes

struct VisuGlExtPlanes;

An opaque structure.

Since 3.7


struct VisuGlExtPlanesClass

struct VisuGlExtPlanesClass {
  VisuGlExtFrameClass parent;
};

A short way to identify _VisuGlExtPlanesClass structure.

VisuGlExtFrameClass parent;

the parent class;

Since 3.7


visu_gl_ext_planes_add ()

gboolean            visu_gl_ext_planes_add              (VisuGlExtPlanes *planes,
                                                         VisuPlane *plane);

Adds a plane to the list of drawn planes.

planes :

a VisuGlExtPlanes object.

plane :

a VisuPlane object. [transfer full]

Returns :

FALSE if plane was already registered.

Since 3.7


visu_gl_ext_planes_draw ()

void                visu_gl_ext_planes_draw             (VisuGlExtPlanes *planes);

Compile the OpenGL list representing planes.

planes :

a VisuGlExtPlanes object.

Since 3.7


visu_gl_ext_planes_getDefault ()

VisuGlExtPlanes *   visu_gl_ext_planes_getDefault       ();

V_Sim is using a default planes object.

Returns :

a VisuGlExtPlanes object used by default. [transfer none]

Since 3.7


visu_gl_ext_planes_new ()

VisuGlExtPlanes *   visu_gl_ext_planes_new              (const gchar *name);

Creates a new VisuGlExt to draw a list of planes.

name :

the name to give to the extension (default is VISU_GL_EXT_PLANES_ID). [allow-none]

Returns :

a pointer to the VisuGlExt it created or NULL otherwise.

Since 3.7


visu_gl_ext_planes_remove ()

gboolean            visu_gl_ext_planes_remove           (VisuGlExtPlanes *planes,
                                                         VisuPlane *plane);

Remove plane from the list of drawn planes.

planes :

a VisuGlExtPlanes object.

plane :

a VisuPlane object.

Returns :

TRUE if visu_gl_ext_planes_draw() should be called.

Since 3.7