plan for introducing new curve widget
Cyrille Berger
cberger at cberger.net
Mon Aug 30 21:59:38 CEST 2010
On Monday 30 August 2010, Adam C. wrote:
> I've investigated KisCurve a little bit more and I found out, that
> KisCurve needs operator= and a copy ctor.
>
> this is impossible on a pure virtual class afaik, so i thought of doing
> the following:
> create a class with copy ctor and operator = KisCurve
> create a pure virtual base class KisCurveBase and corresponding derived
> classes.
>
> KisCurve holds instances of every derived class, so that it can copy and
> assign.
> it also holds KisCurveBase* currentCurve, which would be used to provide
> the correct transfer function and friends.
>
> i am not sure, if this is a good design and i am open for improvements :)
or simply add a clone function to KisCurve :)
--
Cyrille Berger
More information about the kimageshop
mailing list