Go to the source code of this file.
Typedefs | |
| typedef enum Colorscheme | VISU_COLORSCHEME |
Enumerations | |
| enum | Colorscheme { COLORSCHEME_DEFAULT = 0 , COLORSCHEME_GREY = 1 , COLORSCHEME_MANUAL = 2 } |
Typedef Documentation
◆ VISU_COLORSCHEME
| typedef enum Colorscheme VISU_COLORSCHEME |
visualization colorscheme type
Definition at line 57 of file params_visu.h.
Enumeration Type Documentation
◆ Colorscheme
| enum Colorscheme |
Colorscheme selection for the visualizations
| Enumerator | |
|---|---|
| COLORSCHEME_DEFAULT | default colors (supposedly eye-friendly) |
| COLORSCHEME_GREY | on a range from black to white |
| COLORSCHEME_MANUAL | take user-defined input |
Definition at line 50 of file params_visu.h.
Function Documentation
◆ GCGcreateParamsVisu()
| GCG_EXPORT SCIP_RETCODE GCGcreateParamsVisu | ( | GCG * | gcg, |
| GCG_PARAMDATA ** | paramdata | ||
| ) |
includes the visualization parameters into GCG
- Returns
- SCIP return code
includes the visualization parameters into GCG & initializes them
- Parameters
-
gcg GCG data structure paramdata input empty paramdata, output new set of param data
Definition at line 720 of file params_visu.c.
References DEFAULT_COLOR_BLOCK, DEFAULT_COLOR_LINE, DEFAULT_COLOR_LINKING, DEFAULT_COLOR_MASTERCONSS, DEFAULT_COLOR_MASTERVARS, DEFAULT_COLOR_NONZERO, DEFAULT_COLOR_OPEN, DEFAULT_COLOR_STAIRLINKING, DEFAULT_PDFREADER, DEFAULT_REPORT_MAXNDECOMPS, DEFAULT_REPORT_SHOWSTATISTICS, DEFAULT_REPORT_SHOWTITLEPAGE, DEFAULT_REPORT_SHOWTOC, DEFAULT_VISU_COLORSCHEME, DEFAULT_VISU_DRAFTMODE, DEFAULT_VISU_RADIUS, DEFAULT_VISU_USEGP, FALSE, GCGgetOrigprob(), GREY_COLOR_BLOCK, GREY_COLOR_LINE, GREY_COLOR_LINKING, GREY_COLOR_MASTERCONS, GREY_COLOR_MASTERVARS, GREY_COLOR_NONZERO, GREY_COLOR_OPEN, GREY_COLOR_STAIRLINKING, NULL, SCIP_CALL, SCIP_MAXSTRLEN, SCIP_OKAY, SCIPaddBoolParam(), SCIPaddIntParam(), SCIPaddStringParam(), SCIPallocBlockMemory, SCIPallocMemoryArray, and SCIPsnprintf().
Referenced by initRelaxdata().
◆ GCGvisuGetDraftmode()
| GCG_EXPORT SCIP_Bool GCGvisuGetDraftmode | ( | GCG * | gcg | ) |
gets whether draftmode is on draftmode lets visualizations omit nonzeros
- Returns
- true if draftmode is on
- Parameters
-
gcg GCG data structure
Definition at line 156 of file params_visu.c.
References GCGgetParamsVisu(), NULL, SCIP_Bool, and GCG_ParamData::visudraftmode.
Referenced by writeGpPartialdec(), and writeTexPartialdec().
◆ GCGvisuSetDraftmode()
| GCG_EXPORT void GCGvisuSetDraftmode | ( | GCG * | gcg, |
| SCIP_Bool | setmode | ||
| ) |
sets draftmode draftmode lets visualizations omit nonzeros
- Parameters
-
gcg GCG data structure setmode true iff draftmode should be on
Definition at line 173 of file params_visu.c.
References GCGgetParamsVisu(), NULL, and GCG_ParamData::visudraftmode.
◆ GCGvisuGetColorscheme()
| GCG_EXPORT VISU_COLORSCHEME GCGvisuGetColorscheme | ( | GCG * | gcg | ) |
gets the colorscheme for visualizations
- Returns
- current colorscheme
- Parameters
-
gcg GCG data structure
Definition at line 188 of file params_visu.c.
References GCGgetParamsVisu(), NULL, and GCG_ParamData::visucolorscheme.
Referenced by GCGvisuGetColorBlock(), GCGvisuGetColorLine(), GCGvisuGetColorLinking(), GCGvisuGetColorMasterconss(), GCGvisuGetColorMastervars(), GCGvisuGetColorNonzero(), GCGvisuGetColorOpen(), and GCGvisuGetColorStairlinking().
◆ GCGvisuSetColorscheme()
| GCG_EXPORT void GCGvisuSetColorscheme | ( | GCG * | gcg, |
| VISU_COLORSCHEME | newscheme | ||
| ) |
sets colorscheme for visualizations
- Parameters
-
gcg GCG data structure newscheme new colorscheme
Definition at line 204 of file params_visu.c.
References GCGgetParamsVisu(), NULL, and GCG_ParamData::visucolorscheme.
◆ GCGvisuSetColorManMasterconss()
| GCG_EXPORT void GCGvisuSetColorManMasterconss | ( | GCG * | gcg, |
| const char * | newcolor | ||
| ) |
sets color for mastercons block in current color scheme
- Parameters
-
gcg GCG data structure newcolor new color
Definition at line 435 of file params_visu.c.
References GCGgetParamsVisu(), GCG_ParamData::mancolormasterconss, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().
◆ GCGvisuSetColorManMastervars()
| GCG_EXPORT void GCGvisuSetColorManMastervars | ( | GCG * | gcg, |
| const char * | newcolor | ||
| ) |
sets manual color for mastervar block in current color scheme
- Parameters
-
gcg GCG data structure newcolor new color
Definition at line 450 of file params_visu.c.
References GCGgetParamsVisu(), GCG_ParamData::mancolormastervars, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().
◆ GCGvisuSetColorManLinking()
| GCG_EXPORT void GCGvisuSetColorManLinking | ( | GCG * | gcg, |
| const char * | newcolor | ||
| ) |
sets manual color for linking blocks in current color scheme
- Parameters
-
gcg GCG data structure newcolor new color
Definition at line 465 of file params_visu.c.
References GCGgetParamsVisu(), GCG_ParamData::mancolorlinking, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().
◆ GCGvisuSetColorManStairlinking()
| GCG_EXPORT void GCGvisuSetColorManStairlinking | ( | GCG * | gcg, |
| const char * | newcolor | ||
| ) |
sets manual color for stairlinking blocks in current color scheme
- Parameters
-
gcg GCG data structure newcolor new color
Definition at line 480 of file params_visu.c.
References GCGgetParamsVisu(), GCG_ParamData::mancolorstairlinking, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().
◆ GCGvisuSetColorManBlock()
| GCG_EXPORT void GCGvisuSetColorManBlock | ( | GCG * | gcg, |
| const char * | newcolor | ||
| ) |
sets manual color for normal decomp blocks in current color scheme
- Parameters
-
gcg GCG data structure newcolor new color
Definition at line 495 of file params_visu.c.
References GCGgetParamsVisu(), GCG_ParamData::mancolorblock, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().
◆ GCGvisuSetColorManOpen()
| GCG_EXPORT void GCGvisuSetColorManOpen | ( | GCG * | gcg, |
| const char * | newcolor | ||
| ) |
sets manual color for open blocks in current color scheme
- Parameters
-
gcg GCG data structure newcolor new color
Definition at line 510 of file params_visu.c.
References GCGgetParamsVisu(), GCG_ParamData::mancoloropen, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().
◆ GCGvisuSetColorManNonzero()
| GCG_EXPORT void GCGvisuSetColorManNonzero | ( | GCG * | gcg, |
| const char * | newcolor | ||
| ) |
sets manual color for non-zero points in current color scheme
- Parameters
-
gcg GCG data structure newcolor new color
Definition at line 524 of file params_visu.c.
References GCGgetParamsVisu(), GCG_ParamData::mancolornonzero, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().
◆ GCGvisuSetColorManLine()
| GCG_EXPORT void GCGvisuSetColorManLine | ( | GCG * | gcg, |
| const char * | newcolor | ||
| ) |
sets manual color for lines in current color scheme
- Parameters
-
gcg GCG data structure newcolor new color
Definition at line 539 of file params_visu.c.
References GCGgetParamsVisu(), GCG_ParamData::mancolorline, NULL, SCIP_MAXSTRLEN, and SCIPsnprintf().
◆ GCGvisuGetColorMasterconss()
| GCG_EXPORT const char * GCGvisuGetColorMasterconss | ( | GCG * | gcg | ) |
gets color for mastercons block in current color scheme
- Returns
- mastercons color
- Parameters
-
gcg GCG data structure
Definition at line 220 of file params_visu.c.
References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_MASTERCONSS, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolormasterconss, GCG_ParamData::mancolormasterconss, and NULL.
Referenced by writeGpPartialdec(), and writeTexHeader().
◆ GCGvisuGetColorMastervars()
| GCG_EXPORT const char * GCGvisuGetColorMastervars | ( | GCG * | gcg | ) |
gets color for mastervar block in current color scheme
- Returns
- mastervar color
- Parameters
-
gcg GCG data structure
Definition at line 247 of file params_visu.c.
References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_MASTERVARS, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolormastervars, GCG_ParamData::mancolormastervars, and NULL.
Referenced by writeTexHeader().
◆ GCGvisuGetColorLinking()
| GCG_EXPORT const char * GCGvisuGetColorLinking | ( | GCG * | gcg | ) |
gets color for linking blocks in current color scheme
- Returns
- linking color
- Parameters
-
gcg GCG data structure
Definition at line 274 of file params_visu.c.
References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_LINKING, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolorlinking, GCG_ParamData::mancolorlinking, and NULL.
Referenced by writeGpPartialdec(), and writeTexHeader().
◆ GCGvisuGetColorStairlinking()
| GCG_EXPORT const char * GCGvisuGetColorStairlinking | ( | GCG * | gcg | ) |
gets color for stairlinking blocks in current color scheme
- Returns
- stairlinking color
- Parameters
-
gcg GCG data structure
Definition at line 301 of file params_visu.c.
References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_STAIRLINKING, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolorstairlinking, GCG_ParamData::mancolorstairlinking, and NULL.
Referenced by writeGpPartialdec(), and writeTexHeader().
◆ GCGvisuGetColorBlock()
| GCG_EXPORT const char * GCGvisuGetColorBlock | ( | GCG * | gcg | ) |
gets color for normal decomp blocks in current color scheme
- Returns
- block color
- Parameters
-
gcg GCG data structure
Definition at line 328 of file params_visu.c.
References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_BLOCK, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolorblock, GCG_ParamData::mancolorblock, and NULL.
Referenced by writeGpPartialdec(), and writeTexHeader().
◆ GCGvisuGetColorOpen()
| GCG_EXPORT const char * GCGvisuGetColorOpen | ( | GCG * | gcg | ) |
gets color for open blocks in current color scheme
- Returns
- open color
- Parameters
-
gcg GCG data structure
Definition at line 355 of file params_visu.c.
References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_OPEN, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycoloropen, GCG_ParamData::mancoloropen, and NULL.
Referenced by writeGpPartialdec(), and writeTexHeader().
◆ GCGvisuGetColorNonzero()
| GCG_EXPORT const char * GCGvisuGetColorNonzero | ( | GCG * | gcg | ) |
gets color for non-zero points in current color scheme
- Returns
- non-zero color
- Parameters
-
gcg GCG data structure
Definition at line 382 of file params_visu.c.
References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_NONZERO, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolornonzero, GCG_ParamData::mancolornonzero, and NULL.
Referenced by writeGpNonzeros(), and writeTexHeader().
◆ GCGvisuGetColorLine()
| GCG_EXPORT const char * GCGvisuGetColorLine | ( | GCG * | gcg | ) |
gets color for lines in current color scheme
- Returns
- line color
- Parameters
-
gcg GCG data structure
Definition at line 409 of file params_visu.c.
References COLORSCHEME_GREY, COLORSCHEME_MANUAL, DEFAULT_COLOR_LINE, GCGgetParamsVisu(), GCGvisuGetColorscheme(), GCG_ParamData::greycolorline, GCG_ParamData::mancolorline, and NULL.
Referenced by drawGpBox(), and writeTexHeader().
◆ GCGvisuGetNonzeroRadius()
| GCG_EXPORT float GCGvisuGetNonzeroRadius | ( | GCG * | gcg, |
| int | maxindx, | ||
| int | maxindy, | ||
| float | scalingfactor | ||
| ) |
gets appropriate radius for nonzeros needs highest indices of both axes for scaling
- Returns
- radius
- Parameters
-
gcg GCG data structure maxindx highest index x-axis maxindy highest index y-axis scalingfactor percentage to scale radius, 1 if no scaling
Definition at line 555 of file params_visu.c.
References GCGgetParamsVisu(), NULL, and GCG_ParamData::visuradius.
Referenced by writeGpPartialdec(), and writeTexPartialdec().
◆ GCGgetUseGp()
| GCG_EXPORT SCIP_Bool GCGgetUseGp | ( | GCG * | gcg | ) |
if true gp reader should be used for sub-visualizations, otherwise tex reader
- Returns
- true if gp reader should be used, false if tex reader should be used
- Parameters
-
gcg GCG data structure
Definition at line 593 of file params_visu.c.
References GCGgetParamsVisu(), NULL, SCIP_Bool, and GCG_ParamData::visuusegp.
Referenced by reportAllDecompositions(), and writeTexHeader().
◆ GCGVisuGetPdfReader()
| GCG_EXPORT const char * GCGVisuGetPdfReader | ( | GCG * | gcg | ) |
gets the name of the pdf reader that should be used
- Returns
- name of pdf reader
- Parameters
-
gcg GCG data structure
Definition at line 610 of file params_visu.c.
References GCGgetParamsVisu(), NULL, and GCG_ParamData::pdfreader.
Referenced by gcg::PARTIALDECOMP::showVisualization().
◆ GCGreportGetMaxNDecomps()
| GCG_EXPORT int GCGreportGetMaxNDecomps | ( | GCG * | gcg | ) |
gets the max number of decomps to be included in reports
- Returns
- max number of decomps
- Parameters
-
gcg GCG data structure
Definition at line 627 of file params_visu.c.
References GCGgetParamsVisu(), max(), NULL, and GCG_ParamData::rep_maxndecomps.
Referenced by GCGwriteTexReport().
◆ GCGreportGetDecompTypeToShow()
| GCG_EXPORT GCG_DECTYPE GCGreportGetDecompTypeToShow | ( | GCG * | gcg | ) |
gets what type of decomps to show in reports (where 0 corresponds to 'show all')
- Returns
- type of decomps
- Parameters
-
gcg GCG data structure
References SCIP_Bool.
◆ GCGreportGetShowTitlepage()
| GCG_EXPORT SCIP_Bool GCGreportGetShowTitlepage | ( | GCG * | gcg | ) |
gets whether a titlepage should be included in reports
- Returns
- true iff title page should be generated
- Parameters
-
gcg GCG data structure
Definition at line 644 of file params_visu.c.
References GCGgetParamsVisu(), NULL, GCG_ParamData::rep_showtitle, and SCIP_Bool.
Referenced by reportAllDecompositions().
◆ GCGreportGetShowToc()
| GCG_EXPORT SCIP_Bool GCGreportGetShowToc | ( | GCG * | gcg | ) |
gets whether a table of contents should be included in reports
- Returns
- true iff table of contents should be generated
- Parameters
-
gcg GCG data structure
Definition at line 661 of file params_visu.c.
References GCGgetParamsVisu(), NULL, GCG_ParamData::rep_showtoc, and SCIP_Bool.
Referenced by reportAllDecompositions().
◆ GCGreportGetShowStatistics()
| GCG_EXPORT SCIP_Bool GCGreportGetShowStatistics | ( | GCG * | gcg | ) |
gets whether statistics should be included for each decomp in reports
- Returns
- true iff statistics for each decomp should be generated
- Parameters
-
gcg GCG data structure
Definition at line 678 of file params_visu.c.
References GCGgetParamsVisu(), NULL, GCG_ParamData::rep_statistics, and SCIP_Bool.
Referenced by reportAllDecompositions().
◆ GCGVisuFreeParams()
| GCG_EXPORT void GCGVisuFreeParams | ( | GCG * | gcg, |
| GCG_PARAMDATA * | paramdata | ||
| ) |
frees all visualization parameters
- Parameters
-
gcg GCG data structure paramdata input empty paramdata, oputput new set of param data
Definition at line 696 of file params_visu.c.
References GCGgetOrigprob(), GCG_ParamData::greycolorblock, GCG_ParamData::greycolorline, GCG_ParamData::greycolorlinking, GCG_ParamData::greycolormasterconss, GCG_ParamData::greycolormastervars, GCG_ParamData::greycolornonzero, GCG_ParamData::greycoloropen, GCG_ParamData::greycolorstairlinking, NULL, SCIPfreeBlockMemory, and SCIPfreeMemory.
Referenced by SCIP_DECL_RELAXFREE().