Top | ![]() |
![]() |
![]() |
![]() |
VisuGlExtMapSetVisuGlExtMapSet — Defines methods to draw maps that share a same VisuScalarField. |
VisuScalarField * | field | Read / Write |
ToolColor * | line-color | Read / Write |
GArray * | manual-range | Read / Write |
gfloat | manual-range-max | Read / Write |
gfloat | manual-range-min | Read / Write |
guint | n-lines | Read / Write |
gfloat | precision | Read / Write |
guint | scale | Read / Write |
ToolShade * | shade | Read / Write |
gboolean | transparent | Read / Write |
gboolean | use-manual-range | Read / Write |
VisuGlExtMapSet *
visu_gl_ext_map_set_new (const gchar *name
);
Creates a new VisuGlExt to draw mapSet.
Since: 3.7
VisuGlExtShade *
visu_gl_ext_map_set_getLegend (VisuGlExtMapSet *mapSet
);
Retrieve the associated VisuGlExtShade object used to draw the legend.
Since: 3.8
void visu_gl_ext_map_set_setField (VisuGlExtMapSet *mapSet
,VisuScalarField *field
);
Associate field
to the mapSet
.
Since: 3.8
VisuMap * visu_gl_ext_map_set_addFromPlane (VisuGlExtMapSet *mapSet
,VisuPlane *plane
);
Add a new map to the list of drawn mapSet. If color
is NULL
, then
iso-lines will be drawn in inverse color.
Since: 3.8
void visu_gl_ext_map_set_setPlane (VisuGlExtMapSet *mapSet
,VisuMap *map
,VisuPlane *plane
);
Change the plane where map
is projected on to plane
.
Since: 3.8
VisuPlane * visu_gl_ext_map_set_getPlane (VisuGlExtMapSet *mapSet
,VisuMap *map
);
Retrieve the VisuPlane map
was build from (if any).
Since: 3.8
gboolean visu_gl_ext_map_set_setPrecision (VisuGlExtMapSet *mapSet
,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.
Since: 3.8
gboolean visu_gl_ext_map_set_setShade (VisuGlExtMapSet *mapSet
,ToolShade *shade
);
Changes the ToolShade used to render data variation on the map
.
Since: 3.8
gboolean visu_gl_ext_map_set_setLineColor (VisuGlExtMapSet *mapSet
,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_map_set_setShade()
).
Since: 3.8
gboolean visu_gl_ext_map_set_setTransparent (VisuGlExtMapSet *mapSet
,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.8
float
visu_gl_ext_map_set_getPrecision (const VisuGlExtMapSet *mapSet
);
Return the rendering adaptability of map
, or the general
adaptability value if map
is NULL
.
Since: 3.8
gboolean
visu_gl_ext_map_set_getTransparent (const VisuGlExtMapSet *mapSet
);
Return if field values are also used for alpha channel for map
, or the general
setting if map
is NULL
.
Since: 3.8
gboolean visu_gl_ext_map_set_setLines (VisuGlExtMapSet *mapSet
,guint nLines
);
Set the number of iso-lines that are computed for each VisuMap in
mapSet
. Contrary to visu_map_setLines()
, this routine set the same
number of lines for every VisuMap and use the same bounds for all.
Since: 3.8
gboolean visu_gl_ext_map_set_setScaling (VisuGlExtMapSet *mapSet
,ToolMatrixScalingFlag scale
);
Set globally the scaling method for all VisuMap in mapSet
.
Since: 3.8
gboolean visu_gl_ext_map_set_setScalingRange (VisuGlExtMapSet *mapSet
,const float minMax[2]
);
Set globally the scaling range for all VisuMap in mapSet
.
Since: 3.8
gboolean visu_gl_ext_map_set_export (VisuGlExtMapSet *mapSet
,VisuMap *map
,const gchar *filename
,VisuMapExportFormat format
,GError **error
);
Runs visu_map_export()
on map
with mapSet
shade and colour.
mapSet |
a VisuGlExtMapSet object. |
|
map |
a given VisuMap object. |
|
filename |
a filename. |
|
format |
a format. |
|
error |
an error location. |
Since: 3.8
“line-color”
property“line-color” ToolColor *
colour used to draw isolines.
Flags: Read / Write
“manual-range-max”
property“manual-range-max” gfloat
manual range maximum value.
Flags: Read / Write
Default value: -3.40282e+38
“manual-range-min”
property“manual-range-min” gfloat
manual range minimum value.
Flags: Read / Write
Default value: -3.40282e+38
“n-lines”
property“n-lines” guint
number of lines is the full range.
Flags: Read / Write
Default value: 0
“precision”
property“precision” gfloat
map degree of adaptability.
Flags: Read / Write
Allowed values: [10,200]
Default value: 100
“scale”
property“scale” guint
scaling method.
Flags: Read / Write
Allowed values: <= 2
Default value: 0
“transparent”
property“transparent” gboolean
use alpha channel according to field values.
Flags: Read / Write
Default value: FALSE
“use-manual-range”
property“use-manual-range” gboolean
use manual range.
Flags: Read / Write
Default value: FALSE