Top | ![]() |
![]() |
![]() |
![]() |
VisuGlExtMaps *
visu_gl_ext_maps_new (const gchar *name
);
Creates a new VisuGlExt to draw maps.
Since: 3.7
gboolean visu_gl_ext_maps_add (VisuGlExtMaps *maps
,VisuMap *map
,float prec
,ToolShade *shade
,const 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. If alpha
is TRUE, the
map will be rendered with alpha blending when values go to zero.
maps |
a VisuGlExtMaps object. |
|
map |
a VisuMaps object. |
[transfer full] |
prec |
rendering adaptivity level (default is 100). |
|
shade |
a ToolShade object. |
[transfer full] |
color |
a ToolColor object. |
[transfer full][allow-none] |
alpha |
a boolean. |
Since: 3.7
gboolean visu_gl_ext_maps_remove (VisuGlExtMaps *maps
,VisuMap *map
);
Removes map
from the list of drawn maps.
Since: 3.7
void
visu_gl_ext_maps_removeAll (VisuGlExtMaps *maps
);
Removes all the VisuMap stored in maps
.
Since: 3.8
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.
maps |
a VisuGlExtMaps object. |
|
map |
a VisuMap object. |
|
prec |
a floating point value (default is 100). |
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
.
maps |
a VisuGlExtMaps object. |
|
map |
a VisuMap object. |
|
shade |
a ToolShade object. |
[allow-none][transfer full] |
Since: 3.7
gboolean visu_gl_ext_maps_setLineColor (VisuGlExtMaps *maps
,VisuMap *map
,const 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()
).
maps |
a VisuGlExtMaps object. |
|
map |
a VisuMap object. |
|
color |
a ToolColor object. |
[allow-none][transfer full] |
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.
Since: 3.7
void visu_gl_ext_maps_iter_new (VisuGlExtMaps *maps
,VisuGlExtMapsIter *iter
);
Generate a new iterator to run over VisuMap objects stored in maps
.
maps |
a VisuGlExtMaps object. |
|
iter |
a location to VisuGlExtMapsIter. |
[out caller-allocates] |
Since: 3.8
void
visu_gl_ext_maps_iter_next (VisuGlExtMapsIter *iter
);
Go to the next VisuMap in iter
.
Since: 3.8
#define VISU_GL_EXT_MAPS_ID "Maps"
The id used to identify this extension, see
visu_gl_ext_rebuild()
for instance.
struct VisuGlExtMapsIter { VisuGlExtMaps *maps; gboolean valid; VisuMap *map; };
Structure to iterate over VisuMap objects stored in a VisuGlExtMaps object.
VisuGlExtMaps * |
the VisuGlExtMaps object the iterator iters on. |
|
gboolean |
if the iterator is in a valid state. |
|
VisuMap * |
the current VisuMap object the iterator is on. |
Since: 3.8
“added”
signalvoid user_function (VisuGlExtMaps *maps, VisuMap *map, gpointer user_data)
This signal is emitted when map
is added to maps
.
maps |
the object emitting the signal. |
|
map |
the added VisuMap. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.8
“removed”
signalvoid user_function (VisuGlExtMaps *maps, VisuMap *map, gpointer user_data)
This signal is emitted when map
is removed to maps
.
maps |
the object emitting the signal. |
|
map |
the removed VisuMap. |
|
user_data |
user data set when the signal handler was connected. |
Flags: No Hooks
Since: 3.8