current TeX and Code

This commit is contained in:
2017-05-05 14:33:13 +02:00
parent 1b24977a95
commit e3ba39c5a2
17 changed files with 621 additions and 114 deletions

View File

@@ -63,6 +63,10 @@ public:
gplot.getAxisX().setRange(K::GnuplotAxis::Range(K::GnuplotAxis::Range::AUTO, K::GnuplotAxis::Range::AUTO));
}
const std::vector<Entry>& getEntries() {
return entries;
}
/** set the percentage range to show */
void setYRange(const int fromPercent, const int toPercent, const int increment = 5) {
this->range.fromPercent = fromPercent;

View File

@@ -46,6 +46,18 @@ public:
}
void setColor(const int idx, const std::string& color) {
lineErr[idx].getStroke().getColor().setHexStr(color);
}
void setLabel(const int idx, const std::string& label) {
lineErr[idx].setTitle(label);
}
void setWidth(const int idx, const float w) {
lineErr[idx].getStroke().setWidth(w);
}
K::Gnuplot& getGP() {
return gp;
}

View File

@@ -119,6 +119,7 @@ public:
bool obstacles = true;
bool outline = true;
bool outlineColorCustom = false;
bool skipI1 = false;
K::GnuplotColor outlineColor = K::GnuplotColor::fromRGB(128,128,128);
float minZ = -9999;
float maxZ = +9999;
@@ -501,6 +502,16 @@ public:
if (floor->atHeight < settings.minZ) {continue;}
if (floor->atHeight > settings.maxZ) {continue;}
// for toni
if (settings.skipI1) {
if (floor->atHeight == 4) {
//if (poly->poly.points[2].y < 0) {
if (poly->poly.points[0].x > 70 && poly->poly.points[0].y < 50) {
continue;
}
}
}
const float v = 180 + vo;
K::GnuplotColor color = K::GnuplotColor::fromRGB(v,v,v);