2 * Copyright 2006-2007, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Stephan Aßmus <superstippi@gmx.de>
13 # include "IconObject.h"
16 # include <SupportDefs.h>
19 #include "IconBuild.h"
28 virtual ~VertexSource();
30 virtual void rewind(unsigned path_id
) = 0;
31 virtual unsigned vertex(double* x
, double* y
) = 0;
33 virtual bool WantsOpenPaths() const = 0;
34 virtual double ApproximationScale() const = 0;
39 class Transformer
: public VertexSource
,
42 class Transformer
: public VertexSource
{
45 Transformer(VertexSource
& source
,
47 Transformer(VertexSource
& source
,
50 virtual ~Transformer();
53 virtual Transformer
* Clone(VertexSource
& source
) const = 0;
55 virtual void rewind(unsigned path_id
);
56 virtual unsigned vertex(double* x
, double* y
);
58 virtual void SetSource(VertexSource
& source
);
60 virtual bool WantsOpenPaths() const;
61 virtual double ApproximationScale() const;
64 VertexSource
& fSource
;
71 #endif // TRANSFORMER_H