* Copyright 2006-2007, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Stephan Aßmus <superstippi@gmx.de>
*/
#include "Transformer.h"
_USING_ICON_NAMESPACE
VertexSource::VertexSource()
{
}
VertexSource::~VertexSource()
{
}
Transformer::Transformer(VertexSource& source, const char* name)
#ifdef ICON_O_MATIC
: IconObject(name),
#else
:
#endif
fSource(source)
{
}
Transformer::Transformer(VertexSource& source,
BMessage* archive)
#ifdef ICON_O_MATIC
: IconObject(archive),
#else
:
#endif
fSource(source)
{
}
Transformer::~Transformer()
{
}
void
Transformer::rewind(unsigned path_id)
{
fSource.rewind(path_id);
}
unsigned
Transformer::vertex(double* x, double* y)
{
return fSource.vertex(x, y);
}
void
Transformer::SetSource(VertexSource& source)
{
fSource = source;
}
bool
Transformer::WantsOpenPaths() const
{
return fSource.WantsOpenPaths();
}
double
Transformer::ApproximationScale() const
{
return fSource.ApproximationScale();
}