diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2008-02-11 01:48:14 +0000 |
|---|---|---|
| committer | JucaBlues <JucaBlues@users.sourceforge.net> | 2008-02-11 01:48:14 +0000 |
| commit | 38fcf14ef7489c2d8cd366cf02443891225e41af (patch) | |
| tree | 5b8574a4d07aa990289d44e43cb885c92acc9f6f /src/helper-fns.h | |
| parent | Update scriptfu from siod to tinyscheme (diff) | |
| download | inkscape-38fcf14ef7489c2d8cd366cf02443891225e41af.tar.gz inkscape-38fcf14ef7489c2d8cd366cf02443891225e41af.zip | |
Offline work done during weekend:
* handle fefuncR, fefuncG, fefuncB and fefuncA nodes
* implement fecomponenttransfer renderer
** identity and gamma modes render perfectly
** linear and table modes are rendering with very slight imperfections
This commit still mantains feComponentTransfer out of UI (still not implemented)
(bzr r4704)
Diffstat (limited to 'src/helper-fns.h')
| -rw-r--r-- | src/helper-fns.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/helper-fns.h b/src/helper-fns.h index b1a1e37f0..635aefd79 100644 --- a/src/helper-fns.h +++ b/src/helper-fns.h @@ -61,6 +61,16 @@ inline std::vector<gdouble> helperfns_read_vector(const gchar* value, int size){ return v; } +inline std::vector<gdouble> helperfns_read_vector(const gchar* value){ + std::vector<gdouble> v; + std::istringstream is(value); + gdouble d; + while (is >> d){ + v.push_back(d); + } + return v; +} + #endif /* !SEEN_HELPER_FNS_H */ /* |
