#ifndef SEEN_SP_SPIRAL_H
#define SEEN_SP_SPIRAL_H
/*
* Authors:
* Mitsuru Oka <oka326@parkcity.ne.jp>
* Lauris Kaplinski <lauris@kaplinski.com>
*
* Copyright (C) 1999-2002 Lauris Kaplinski
* Copyright (C) 2000-2001 Ximian, Inc.
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "sp-shape.h"
#define noSPIRAL_VERBOSE
/**
* A spiral Shape.
*
* The Spiral shape is defined as:
* \verbatim
x(t) = rad * t^exp cos(2 * Pi * revo*t + arg) + cx
y(t) = rad * t^exp sin(2 * Pi * revo*t + arg) + cy \endverbatim
* where spiral curve is drawn for {t | t0 <= t <= 1}. The rad and arg
* parameters can also be represented by transformation.
*
* \todo Should I remove these attributes?
*/
SPSpiral();
float t0;
/* Lowlevel interface */
bool isInvalid() const;
virtual Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags);
virtual void snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const;
virtual const char* displayName() const;
virtual char* description() const;
void fitAndDraw(SPCurve* c, double dstep, Geom::Point darray[], Geom::Point const& hat1, Geom::Point& hat2, double* t) const;
};
#endif // SEEN_SP_SPIRAL_H