Top | ![]() |
![]() |
![]() |
![]() |
This extension draws a frame on top of the rendering area with a color shade. One can setup printed values and draw additional marks inside the shade.
VisuGlExtShade *
visu_gl_ext_shade_new (const gchar *name
);
Creates a new VisuGlExt to draw a shade.
Since: 3.7
gboolean visu_gl_ext_shade_setShade (VisuGlExtShade *ext
,const ToolShade *shade
);
Attach an VisuGlView to render to and setup the shade.
Since: 3.7
gboolean visu_gl_ext_shade_setMinMax (VisuGlExtShade *shade
,float minV
,float maxV
);
Change the minimum and maximum values used on the legend.
Since: 3.7
gboolean visu_gl_ext_shade_setScaling (VisuGlExtShade *shade
,ToolMatrixScalingFlag scaling
);
Change the scaling variation of the shade between the minimum and
the maximum values, see visu_gl_ext_shade_setMinMax()
.
Since: 3.7
gboolean visu_gl_ext_shade_setMarks (VisuGlExtShade *shade
,float *marks
,guint n
);
The legend can draw additional marks in the shade. Setup these marks with this routine. The first and the last marks of the list will be rendered bigger than the next ones.
shade |
the VisuGlExtShade to update. |
|
marks |
a list of float values in [0;1]. |
[array length=n] |
n |
the length of |
Since: 3.7
#define VISU_GL_EXT_SHADE_ID "Shade"
The id used to identify this extension, see
visu_gl_ext_rebuild()
for instance.