From koffice-devel Thu May 22 07:59:53 2003 From: "Dirk Schönberger" Date: Thu, 22 May 2003 07:59:53 +0000 To: koffice-devel Subject: Re: [Uml-devel] Re: karbon/umbrello X-MARC-Message: https://marc.info/?l=koffice-devel&m=105359039308211 rwlbuis@xs4all.nl schreibt: > > Right, the objects just use those *To() methods to draw themselves... > This works well, though if there are performance problems, caching some > lowlevel path structures could be an option... > > > other > > main differences come from the stroke, pattern, fill, gradient and color > > classes. these should receive alot of attention so we can establish a set > > of > > standard interfaces for KDE. > > Already in the ruby version there is some attempt at this. > I am hesitating with the C++ version because we want to introduce > a more powerful concept, the renderstack or renderlist. Basically its a > rendering pipeline that allows multiple rendering actions on the same > source path data. For instance its possible then to do multiple strokes, > but also part of it could be filter actions like "Gaussian Blur" etc. > Designing this and also adding sharing of styles/gradients/patterns is not > so easy :) Luckily Ilustrator already has this concept, and we can figure > out some detials of how to do it from that implementation. > The renderstack / renderlist thing is interesting. Can you explain it a little more? How is it different from my metafile paint device idea? > > also, i liked dirk's ideas on some of the core painting objects: > > specifically, > > the way he deals with patterns and the like... (from above). > > > > class Fill; > > class SolidFill : public Fill; > > class GradientFill : public Fill; > > class PatternFill : public Fill; > > class BrushFill : public Fill; > > Seems like a lot of classes. Also I assume brush == pattern. > I am still thinking about the design of stuff like this... At least in current KPainter BushFill and PenStroke are used for compatibility with Qt (implementing QBrush and QPen for rendering to KPainter) Regards Dirk _______________________________________________ koffice-devel mailing list koffice-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/koffice-devel