/**
* SVG <ellipse> and related implementations
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Mitsuru Oka
* Tavmjong Bah
*
* Copyright (C) 1999-2002 Lauris Kaplinski
* Copyright (C) 2000-2001 Ximian, Inc.
* Copyright (C) 2013 Tavmjong Bah
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_SP_ELLIPSE_H
#define SEEN_SP_ELLIPSE_H
#include "svg/svg-length.h"
#include "sp-shape.h"
/* Common parent class */
enum GenericEllipseType {
};
// internally with these variables. (Circle radius is rx).
/**
* If we have a slice, returns whether the shape is closed ("pizza slice") or not (arc only).
*/
bool closed();
virtual Inkscape::XML::Node *write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, unsigned int flags);
virtual const char *displayName() const;
virtual void snappoints(std::vector<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const;
/**
* @brief Makes sure that start and end lie between 0 and 2 * PI.
*/
void normalize();
/**
* @brief Determines whether the shape is a part of an ellipse.
*/
bool _isSlice() const;
bool _closed;
};
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8 :