| V_Sim API - Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#define VISU_GL_EXT_MAPS_ID struct VisuGlExtMaps; struct VisuGlExtMapsClass; gboolean visu_gl_ext_maps_add (VisuGlExtMaps *maps,VisuMap *map,float prec,ToolShade *shade,ToolColor *color,gboolean alpha); void visu_gl_ext_maps_draw (VisuGlExtMaps *maps); VisuGlExtMaps * visu_gl_ext_maps_new (const gchar *name); gboolean visu_gl_ext_maps_remove (VisuGlExtMaps *maps,VisuMap *map); gboolean visu_gl_ext_maps_setDirty (VisuGlExtMaps *maps,VisuMap *map); gboolean visu_gl_ext_maps_setGlView (VisuGlExtMaps *maps,VisuGlView *view); gboolean visu_gl_ext_maps_setLineColor (VisuGlExtMaps *maps,VisuMap *map,ToolColor *color); gboolean visu_gl_ext_maps_setPrecision (VisuGlExtMaps *maps,VisuMap *map,float prec); gboolean visu_gl_ext_maps_setShade (VisuGlExtMaps *maps,VisuMap *map,ToolShade *shade); gboolean visu_gl_ext_maps_setTransparent (VisuGlExtMaps *maps,VisuMap *map,gboolean alpha);
#define VISU_GL_EXT_MAPS_ID "Maps"
The id used to identify this extension, see
visu_gl_ext_rebuild() for instance.
struct VisuGlExtMapsClass {
VisuGlExtFrameClass parent;
};
A short way to identify _VisuGlExtMapsClass structure.
VisuGlExtFrameClass |
the parent class; |
Since 3.7
gboolean visu_gl_ext_maps_add (VisuGlExtMaps *maps,VisuMap *map,float prec,ToolShade *shade,ToolColor *color,gboolean alpha);
Add a new map to the list of drawn maps. If color is NULL, then
iso-lines will be drawn in inverse color.
|
a VisuGlExtMaps object. |
|
a VisuMaps object. [transfer full] |
|
rendering adaptivity level (default is 100). |
|
a ToolShade object. [transfer full] |
|
a ToolColor object. [transfer full][allow-none] |
|
a boolean. |
Returns : |
FALSE if surf was already reguistered. |
Since 3.7
void visu_gl_ext_maps_draw (VisuGlExtMaps *maps);
Render the OpenGL list of maps.
|
a VisuGlExtMaps object. |
Since 3.7
VisuGlExtMaps * visu_gl_ext_maps_new (const gchar *name);
Creates a new VisuGlExt to draw maps.
|
the name to give to the extension (default is VISU_GL_EXT_MAPS_ID). [allow-none] |
Returns : |
a pointer to the VisuGlExt it created or NULL otherwise. |
Since 3.7
gboolean visu_gl_ext_maps_remove (VisuGlExtMaps *maps,VisuMap *map);
Removes map from the list of drawn maps.
|
a VisuGlExtMaps object. |
|
a VisuMaps object. |
Returns : |
TRUE if visu_gl_ext_maps_draw(à should be called. |
Since 3.7
gboolean visu_gl_ext_maps_setDirty (VisuGlExtMaps *maps,VisuMap *map);
Currently, VisuMap are not objects, so maps cannot react to a
change on them. Callers have to set by hand that maps should be
redrawn with this routine.
|
a VisuGlExtMaps object. |
|
a VisuMap object. |
Returns : |
TRUE is map is a drawn VisuMap of maps. |
Since 3.7
gboolean visu_gl_ext_maps_setGlView (VisuGlExtMaps *maps,VisuGlView *view);
Attach maps to view, so it can be rendered there. See visu_gl_ext_maps_draw().
|
the VisuGlExtMaps object to attached to rendering view. |
|
a VisuGlView object. [transfer full][allow-none] |
Returns : |
TRUE if visu_gl_ext_maps_draw() should be called and then 'OpenGLAskForReDraw'
signal be emitted. |
Since 3.7
gboolean visu_gl_ext_maps_setLineColor (VisuGlExtMaps *maps,VisuMap *map,ToolColor *color);
Changes the rendered isoline color of map to color. If color is
NULL, then the isolines will be color inversed to the ToolShade
of map (see visu_gl_ext_maps_setShade()).
|
a VisuGlExtMaps object. |
|
a VisuMap object. |
|
a ToolColor object. [allow-none][transfer full] |
Returns : |
TRUE if color of map is changed. |
Since 3.7
gboolean visu_gl_ext_maps_setPrecision (VisuGlExtMaps *maps,VisuMap *map,float prec);
Changes the adaptative mesh of map. At a value of 200, there is no
adaptivity and all triangles are rendered. At a level of 100, a
variation of less than 3% on neighbouring triangles make them merged.
|
a VisuGlExtMaps object. |
|
a VisuMap object. |
|
a floating point value (default is 100). |
Returns : |
TRUE if prec of map is changed. |
Since 3.7
gboolean visu_gl_ext_maps_setShade (VisuGlExtMaps *maps,VisuMap *map,ToolShade *shade);
Changes the ToolShade used to render data variation on the map.
|
a VisuGlExtMaps object. |
|
a VisuMap object. |
|
a ToolShade object. [allow-none][transfer full] |
Returns : |
TRUE if shade of map is changed. |
Since 3.7
gboolean visu_gl_ext_maps_setTransparent (VisuGlExtMaps *maps,VisuMap *map,gboolean alpha);
Sets if map is rendered with transparency or not. If alpha is
TRUE, the lower the rendered value is, the more transparent the
colour will be.
|
a VisuGlExtMaps object. |
|
a VisuMap object. |
|
a boolean. |
Returns : |
TRUE if transparency of map is changed. |
Since 3.7