Previous Next Up Title Contents Index Functions Index Top Library

3
Isovalue Color
Legend


This chapter gathers all PHIGURE functions to create legends associated with currently defined isovalues. These values are defined by one of the following PHIGURE functions tset_isoval_list, tset_homog_isoval_list or tset_regul_isoval_list. Undefined values can be represented on the legend if tundefined_value is called before with a limited value definition domain.

PHIGURE offers four types of legend representations:

The four types of legend representations can be parameterized through the use of the following PHIGURE functions:

These functions must be called before calling tisoval_legend_1, tisoval_legend_2, tisoval_legend_3, tisoval_legend_4, tisoval_legend_5 or tisoval_legend_linear for the construction of a legend. Additionally, it is possible to retrieve the current values for these parameters for a specified legend structure by calling the following functions:

tinq_legend_label

tinq_legend_value

tinq_legend_margin

tinq_legend_path

tinq_iso_legend_box_spacing

tinq_iso_legend_append_string

tinq_iso_legend_period

tinq_iso_legend_strings

C TYPES USED IN LEGEND FUNCTIONS

/*  alignment type for the legend box with respect to its reference point */
typedef enum {
	TBOX_CENTER,
	TBOX_LEFT_BOTTOM,
	TBOX_MIDDLE_BOTTOM,
	TBOX_RIGHT_BOTTOM,
	TBOX_MIDDLE_RIGHT,
	TBOX_RIGHT_TOP,
	TBOX_MIDDLE_TOP,
	TBOX_LEFT_TOP,
	TBOX_MIDDLE_LEFT,
} Tbox_alignment;

/*  type of positioning for the label with respect to the isovalue colour boxes */
typedef enum {
	TPOS_TOP,
	TPOS_BOTTOM,
	TPOS_LEFT,
	TPOS_RIGHT
} Ttext_pos;

/*  type of margins */
typedef enum{
	TRELATIVE_MARGIN,
	TABSOLUTE_MARGIN
} Tmargin_type;

/*  type of value incrementing */
typedef enum {
	TVERTICAL_INCREMENT,
	THORIZONTAL_INCREMENT
} Tincrement_type;

/* Type of contouring aspect for linear legend */
typedef enum {
	TLISO_LINEAR_TYPE1,
	TLISO_LINEAR_TYPE2,
	TLISO_LINEAR_TYPE3
} Tlegend_linear_type;

tisoval_legend_5

tisoval_legend_linear


Previous Next Up Title Contents Index Functions Index Top Library