![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
VisuGlExtPlanesVisuGlExtPlanes — Draw a list of VisuPlane. |
#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
);
This extension draws a list of VisuPlane. Planes are outlined with a black line and also the intersections of planes.
#define VISU_GL_EXT_PLANES_ID "Planes"
The id used to identify this extension, see
visu_gl_ext_rebuild()
for instance.
struct VisuGlExtPlanesClass { VisuGlExtFrameClass parent; };
A short way to identify _VisuGlExtPlanesClass structure.
VisuGlExtFrameClass |
the parent class; |
Since 3.7
gboolean visu_gl_ext_planes_add (VisuGlExtPlanes *planes
,VisuPlane *plane
);
Adds a plane
to the list of drawn planes.
|
a VisuGlExtPlanes object. |
|
a VisuPlane object. [transfer full] |
Returns : |
FALSE if plane was already registered. |
Since 3.7
void visu_gl_ext_planes_draw (VisuGlExtPlanes *planes
);
Compile the OpenGL list representing planes.
|
a VisuGlExtPlanes object. |
Since 3.7
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
VisuGlExtPlanes * visu_gl_ext_planes_new (const gchar *name
);
Creates a new VisuGlExt to draw a list of planes.
|
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
gboolean visu_gl_ext_planes_remove (VisuGlExtPlanes *planes
,VisuPlane *plane
);
Remove plane
from the list of drawn planes.
|
a VisuGlExtPlanes object. |
|
a VisuPlane object. |
Returns : |
TRUE if visu_gl_ext_planes_draw() should be called. |
Since 3.7