|
Questions about KstMatrix: msg#00236kde.kst
I started to write the bindings for KstMatrix and I've found somethings that I think are a bit unusual. KstMatrix still doesn't really look like a "matrix". It seems to be vector with different accessors, but conceptually we think of it as a matrix. For instance: // for resizing the internal array _z only virtual bool resize(int sz, bool reinit = true); This is a public method that talks about internals. I think this should go, and we should have something more like: virtual bool resize(int xsz, int ysz, bool reinit = true); An internal method could resize the array directly if there is a reason for it. Also the talk of "Z" everywhere is a bit confusing. Maybe we can come up with some better terminology? I think even minValue() and maxValue() are fine. The value functions work differently than the KstVector ones: bool value(double x, double y, double& z); vs: double value(int i); I think value() should look more like: double value(double x, double y, bool *ok = 0L); Are there any particular reasons why these were implemented the way they are? -- George Staikos KDE Developer http://www.kde.org/ Staikos Computing Services Inc. http://www.staikos.net/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | extragear/graphics/kst/kst: 00236, Rick Chern |
|---|---|
| Next by Date: | extragear/graphics/kst/kst: 00236, George Staikos |
| Previous by Thread: | BANNED: IN UNA E-MAIL DA LEI INVIATAi: 00236, Content-filter at perseus.trampi.mpi.it |
| Next by Thread: | extragear/graphics/kst/kst/extensions: 00236, George Staikos |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |