ScatterDraw: Different improvements

git-svn-id: svn://ultimatepp.org/upp/trunk@12512 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2018-11-11 17:43:31 +00:00
parent e4e59b63ac
commit 9e5629aebc
7 changed files with 400 additions and 360 deletions

View file

@ -24,6 +24,22 @@ Vector <double> GetLineDash(String dash) {
return d;
}
double GetDashLength(const char *dash) {
double len = 0;
CParser p(dash);
try {
while(!p.IsEof())
if(!p.Char(':')) {
double data = p.ReadDouble();
len += data;
}
}
catch(CParser::Error) {}
if (len == 0)
len = 100000;
return len;
}
Vector <double> &GetDashedArray(String dash) {
static VectorMap <String, Vector <double> > pats;