PaStiX Handbook
6.4.0
|
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 | |
#define | SYMBOL_PSDPI 72 |
PostScript dots-per-inch. | |
#define | SYMBOL_PSPICTSIZE 6.6 |
PostScript picture size (in inches) | |
void pastixSymbolDrawColor | ( | const pastix_int_t | labl, |
float | color[] | ||
) |
Return one of 16 predefined, visually distinct distinct colors.
[in] | labl | The label of the color |
[in,out] | color | The color array in which is returned the selected color. |
Definition at line 82 of file symbol_draw.c.
References symbolDrawColorTab.
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.
[in] | symbptr | The pointer to the symbolic structure to draw. |
[in] | diagfunc | Personal function to draw the diagonal block. NULL by default |
[in] | offdfunc | Personal function to draw the off-diagonal blocks. NULL by default |
[in] | dataptr | Data structure for block coloring |
[in,out] | stream | The stream where to write the output. |
0 | on success |
-1 | on 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().
|
static |
Predefined set of colors.
Definition at line 49 of file symbol_draw.c.
Referenced by pastixSymbolDrawColor().