#include <SVGHelper.hpp>
|
double | calculateCircleRadius (double evaluationDuration, double minEvaluationDuration, double maxEvaluationDuration) |
|
void | calculatePositions (std::vector< OptimizationRun > &optimizationRuns, std::vector< std::vector< int >> &seperatorLinePositions, unsigned int &imgWidth, unsigned int &imgHeight) |
|
std::vector< int > | calculateXValues (unsigned int numTopologies, unsigned int imageWidth) |
|
std::vector< ptree > | createSVG (std::vector< OptimizationRun > optimizationRuns) |
|
ptree | createXML (const std::string &patternName) |
|
ptree | genCircleSVG (double radius, int x, int y, const std::string &circleColor, bool highlight, const std::string &highlightColor) |
|
ptree | genEvaluationRoundXML (unsigned int roundNumber, unsigned int chosenIndex) |
|
ptree | genPolylineSVG (std::vector< std::string > linePoints) |
|
ptree | genRectSVG (int x, int y, unsigned int width, unsigned int height, const std::string &colorString) |
|
std::string | genRGBString (double cost, double minCost, double maxCost) |
|
ptree | genSeparatorLineSVG (int y, int x1, int x2) |
|
ptree | genTextSVG (const std::string &lineOne, const std::string &lineTwo, const std::string &lineThree, int x, int y) |
|
ptree | genTopologyContainerXML (TopologyContainer tc) |
|
Definition at line 39 of file SVGHelper.hpp.
ISM::SVGHelper::SVGHelper |
( |
path |
outputPath | ) |
|
|
inline |
double ISM::SVGHelper::calculateCircleRadius |
( |
double |
evaluationDuration, |
|
|
double |
minEvaluationDuration, |
|
|
double |
maxEvaluationDuration |
|
) |
| |
|
private |
void ISM::SVGHelper::calculatePositions |
( |
std::vector< OptimizationRun > & |
optimizationRuns, |
|
|
std::vector< std::vector< int >> & |
seperatorLinePositions, |
|
|
unsigned int & |
imgWidth, |
|
|
unsigned int & |
imgHeight |
|
) |
| |
|
private |
std::vector< int > ISM::SVGHelper::calculateXValues |
( |
unsigned int |
numTopologies, |
|
|
unsigned int |
imageWidth |
|
) |
| |
|
private |
std::vector< ptree > ISM::SVGHelper::createSVG |
( |
std::vector< OptimizationRun > |
optimizationRuns | ) |
|
|
private |
ptree ISM::SVGHelper::createXML |
( |
const std::string & |
patternName | ) |
|
|
private |
ptree ISM::SVGHelper::genCircleSVG |
( |
double |
radius, |
|
|
int |
x, |
|
|
int |
y, |
|
|
const std::string & |
circleColor, |
|
|
bool |
highlight, |
|
|
const std::string & |
highlightColor |
|
) |
| |
|
private |
ptree ISM::SVGHelper::genEvaluationRoundXML |
( |
unsigned int |
roundNumber, |
|
|
unsigned int |
chosenIndex |
|
) |
| |
|
private |
ptree ISM::SVGHelper::genPolylineSVG |
( |
std::vector< std::string > |
linePoints | ) |
|
|
private |
ptree ISM::SVGHelper::genRectSVG |
( |
int |
x, |
|
|
int |
y, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
const std::string & |
colorString |
|
) |
| |
|
private |
std::string ISM::SVGHelper::genRGBString |
( |
double |
cost, |
|
|
double |
minCost, |
|
|
double |
maxCost |
|
) |
| |
|
private |
ptree ISM::SVGHelper::genSeparatorLineSVG |
( |
int |
y, |
|
|
int |
x1, |
|
|
int |
x2 |
|
) |
| |
|
private |
ptree ISM::SVGHelper::genTextSVG |
( |
const std::string & |
lineOne, |
|
|
const std::string & |
lineTwo, |
|
|
const std::string & |
lineThree, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
|
private |
void ISM::SVGHelper::processHistory |
( |
std::vector< std::vector< std::pair< TopologyPtr, unsigned int >>> & |
history, |
|
|
CostFunctionPtr< TopologyPtr > |
globalCostFunction, |
|
|
const std::string & |
patternName |
|
) |
| |
void ISM::SVGHelper::writeResult |
( |
| ) |
|
const std::string ISM::SVGHelper::ATR_CHOSEN_INDEX = "chosen_index" |
|
private |
const std::string ISM::SVGHelper::ATR_EVALUATION_RESULT = "evaluation_result" |
|
private |
const std::string ISM::SVGHelper::ATR_PATTERN_NAME = "pattern_name" |
|
private |
const std::string ISM::SVGHelper::ATR_RELATION_IDS = "relation_ids" |
|
private |
const std::string ISM::SVGHelper::ATR_ROUND_NUMBER = "round_number" |
|
private |
const std::string ISM::SVGHelper::COLOR_BEST = "purple" |
|
private |
const std::string ISM::SVGHelper::COLOR_FIRST_HIGHLIGHT = "aqua" |
|
private |
const std::string ISM::SVGHelper::COLOR_HIGHLIGHT = "cornflowerblue" |
|
private |
const std::string ISM::SVGHelper::COLOR_LAST_HIGHLIGHT = "blue" |
|
private |
const std::string ISM::SVGHelper::COLOR_RANDOM_RESTART_HIGHLIGHT = "black" |
|
private |
const std::string ISM::SVGHelper::COLOR_RANDOM_WALK_HIGHLIGHT = "black" |
|
private |
const unsigned int ISM::SVGHelper::FONT_SIZE = 30 |
|
private |
const unsigned int ISM::SVGHelper::HIGHLIGHT_WIDTH = 7 |
|
private |
const unsigned int ISM::SVGHelper::LINE_WIDTH = 6 |
|
private |
const unsigned int ISM::SVGHelper::MAX_CIRCLE_RADIUS = 160 |
|
private |
const unsigned int ISM::SVGHelper::MAX_TOPOLOGIES_PER_LINE = 12 |
|
private |
std::string ISM::SVGHelper::mCurrentPatternName |
|
private |
const unsigned int ISM::SVGHelper::MIN_CIRCLE_RADIUS = 100 |
|
private |
path ISM::SVGHelper::mOutputPath |
|
private |
std::map<std::string, std::vector<OptimizationRun> > ISM::SVGHelper::mPatternNameToOptimizationRuns |
|
private |
const std::string ISM::SVGHelper::NAME_OPTIMIZATION_RUN = "optimization-run" |
|
private |
const std::string ISM::SVGHelper::NAME_ROUND = "round" |
|
private |
const std::string ISM::SVGHelper::NAME_TOPOLOGY = "topology" |
|
private |
const unsigned int ISM::SVGHelper::PADDING = 20 |
|
private |
The documentation for this class was generated from the following files:
asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:41