panelMap

panelMap — The widget to create coloured map.

Synopsis

VisuUiPanel *       visu_ui_panel_map_init              ();
VisuMap *           visu_ui_panel_map_setData           (guint planeId,
                                                         guint scalarFieldId,
                                                         guint shadeId);
void                visu_ui_panel_map_setIsolinesColor  (float *color);
void                visu_ui_panel_map_setMinMax         (float *minMax);
void                visu_ui_panel_map_setNIsolines      (guint nIsoLines);
void                visu_ui_panel_map_setPrecision      (guint prec);
void                visu_ui_panel_map_setScale          (ToolMatrixScalingFlag scale);
void                visu_ui_panel_map_update            (VisuMap *map);

Description

This is the user interface for the coloured maps. For a plane, a scalar field and a shade, it is possible to draw one coloured plane. The available planes are taken from the panelVisuPlane subpanel and the scalar field for the panelSurfaces.

Details

visu_ui_panel_map_init ()

VisuUiPanel *       visu_ui_panel_map_init              ();

Should be used in the list declared in externalModules.h to be loaded by V_Sim on start-up. This routine will create the VisuUiPanel where the coloured map stuff can be done, such as choosing a plane, associating a scalar field...

Returns :

a newly created VisuUiPanel object.

visu_ui_panel_map_setData ()

VisuMap *           visu_ui_panel_map_setData           (guint planeId,
                                                         guint scalarFieldId,
                                                         guint shadeId);

Change the values of the three combobox of this panel.

planeId :

a entry for the plane combobox ;

scalarFieldId :

a entry for the scalar field combobox ;

shadeId :

a entry for the shade combobox.

Returns :

the associated VisuMap. [transfer none]

Since 3.4


visu_ui_panel_map_setIsolinesColor ()

void                visu_ui_panel_map_setIsolinesColor  (float *color);

Change the colour of drawn isolines. If color is NULL, then the specific colour is unchecked and inversed colours are used.

color :

an RGB value (can be NULL).

Since 3.5


visu_ui_panel_map_setMinMax ()

void                visu_ui_panel_map_setMinMax         (float *minMax);

Set-up the minimum and maximum scaling values. In case minMax is NULL, then the automatic normalisation is chosen.

minMax :

two floats containing min and max values. Can be NULL.

Since 3.6


visu_ui_panel_map_setNIsolines ()

void                visu_ui_panel_map_setNIsolines      (guint nIsoLines);

Change the number of drawn isolines.

nIsoLines :

a value.

Since 3.4


visu_ui_panel_map_setPrecision ()

void                visu_ui_panel_map_setPrecision      (guint prec);

Set the precision used to render the maps. At 200, there is no adaptive mesh.

prec :

a pourcentage.

Since 3.6


visu_ui_panel_map_setScale ()

void                visu_ui_panel_map_setScale          (ToolMatrixScalingFlag scale);

Set the scaling method.

scale :

the status.

Since 3.4


visu_ui_panel_map_update ()

void                visu_ui_panel_map_update            (VisuMap *map);

Rebuild map depending on parameters selected in the interface. If map is NULL, rebuild all maps.

map :

a VisuMap to update (parameters may have changed). [allow-none]

Since 3.7