/* * Copyright 2006-2007, Haiku. * Distributed under the terms of the MIT License. * * Authors: * Stephan Aßmus */ #ifndef CONTOUR_TRANSFORMER_H #define CONTOUR_TRANSFORMER_H #include "Transformer.h" #include namespace BPrivate { namespace Icon { typedef agg::conv_contour Contour; class ContourTransformer : public Transformer, public Contour { public: enum { archive_code = 'cntr', }; ContourTransformer( VertexSource& source); #ifdef ICON_O_MATIC ContourTransformer( VertexSource& source, BMessage* archive); #endif virtual ~ContourTransformer(); virtual Transformer* Clone(VertexSource& source) const; virtual void rewind(unsigned path_id); virtual unsigned vertex(double* x, double* y); virtual void SetSource(VertexSource& source); virtual double ApproximationScale() const; #ifdef ICON_O_MATIC // IconObject interface virtual status_t Archive(BMessage* into, bool deep = true) const; virtual PropertyObject* MakePropertyObject() const; virtual bool SetToPropertyObject( const PropertyObject* object); #endif }; } // namespace Icon } // namespace BPrivate #endif // CONTOUR_TRANSFORMER_H