PaStiX Handbook  6.3.2

Functions

void pastixSymbolDrawColor (const pastix_int_t labl, float color[])
 Return one of 16 predefined, visually distinct distinct colors. More...
 
int pastixSymbolDrawFunc (const symbol_matrix_t *const symbptr, int(*diagfunc)(const symbol_matrix_t *const, const symbol_blok_t *const, void *const, float *const), int(*offdfunc)(const symbol_matrix_t *const, const symbol_blok_t *const, void *const, float *const), void *const dataptr, FILE *const stream)
 Export the symbol structure in a PostScript format. More...
 

Variables

static float symbolDrawColorTab [16][3]
 Predefined set of colors. More...
 

PostScript parameter

PostScript (tm) output definitions.

#define SYMBOL_PSDPI   72
 PostScript dots-per-inch.
 
#define SYMBOL_PSPICTSIZE   6.6
 PostScript picture size (in inches)
 

Detailed Description

Function Documentation

◆ pastixSymbolDrawColor()

void pastixSymbolDrawColor ( const pastix_int_t  labl,
float  color[] 
)

Return one of 16 predefined, visually distinct distinct colors.

Parameters
[in]lablThe label of the color
[in,out]colorThe color array in which is returned the selected color.

Definition at line 82 of file symbol_draw.c.

References symbolDrawColorTab.

◆ pastixSymbolDrawFunc()

int pastixSymbolDrawFunc ( const symbol_matrix_t *const  symbptr,
int(*)(const symbol_matrix_t *const, const symbol_blok_t *const, void *const, float *const)  diagfunc,
int(*)(const symbol_matrix_t *const, const symbol_blok_t *const, void *const, float *const)  offdfunc,
void *const  dataptr,
FILE *const  stream 
)

Export the symbol structure in a PostScript format.

This routine writes to the given stream a PostScript (tm) picture of the symbolic block matrix.

Parameters
[in]symbptrThe pointer to the symbolic structure to draw.
[in]diagfuncPersonal function to draw the diagonal block. NULL by default
[in]offdfuncPersonal function to draw the off-diagonal blocks. NULL by default
[in]dataptrData structure for block coloring
[in,out]streamThe stream where to write the output.
Return values
0on success
-1on error

Definition at line 122 of file symbol_draw.c.

References symbol_matrix_s::baseval, symbol_matrix_s::bloknbr, symbol_cblk_s::bloknum, symbol_matrix_s::bloktab, symbol_matrix_s::cblknbr, symbol_matrix_s::cblktab, symbol_cblk_s::fcolnum, symbol_blok_s::frownum, symbol_cblk_s::lcolnum, symbol_blok_s::lrownum, symbol_matrix_s::nodenbr, pastix_int_t, SYMBOL_PSDPI, and SYMBOL_PSPICTSIZE.

Referenced by pastixSymbolDraw().

Variable Documentation

◆ symbolDrawColorTab

float symbolDrawColorTab[16][3]
static
Initial value:
= {
{ 1.00, 0.00, 0.00 },
{ 0.00, 1.00, 0.00 },
{ 1.00, 1.00, 0.00 },
{ 0.00, 0.00, 1.00 },
{ 1.00, 0.00, 1.00 },
{ 0.00, 1.00, 1.00 },
{ 1.00, 0.50, 0.20 },
{ 0.30, 0.55, 0.00 },
{ 0.72, 0.47, 0.47 },
{ 0.33, 0.33, 0.81 },
{ 1.00, 0.63, 0.63 },
{ 0.62, 0.44, 0.65 },
{ 0.60, 0.80, 0.70 },
{ 0.47, 0.20, 0.00 },
{ 0.00, 0.68, 0.68 },
{ 0.81, 0.00, 0.40 } }

Predefined set of colors.

Definition at line 49 of file symbol_draw.c.

Referenced by pastixSymbolDrawColor().