mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-29 22:03:40 -06:00
ScatterDraw: Different improvements
git-svn-id: svn://ultimatepp.org/upp/trunk@12512 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e4e59b63ac
commit
9e5629aebc
7 changed files with 400 additions and 360 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue