pen-tool.h revision baaf66e2658cf2ae9c9a2413f3e7dcd20d2363dc
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick * PenTool: a context for pen tool events.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#define SP_PEN_CONTEXT(obj) (dynamic_cast<Inkscape::UI::Tools::PenTool*>((Inkscape::UI::Tools::ToolBase*)obj))
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick#define SP_IS_PEN_CONTEXT(obj) (dynamic_cast<const Inkscape::UI::Tools::PenTool*>((const Inkscape::UI::Tools::ToolBase*)obj) != NULL)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick * PenTool: a context for pen tool events.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick PenTool(gchar const *const *cursor_shape, gint hot_x, gint hot_y);
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick /** \invar npoints in {0, 2, 5}. */
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick // npoints somehow determines the type of the node (what does it mean, exactly? the number of Bezier handles?)
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: propiedad que guarda si el modo Spiro está activo o no
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick unsigned int expecting_clicks_for_LPE; // if positive, finish the path after this many clicks
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick Inkscape::LivePathEffect::Effect *waiting_LPE; // if NULL, waiting_LPE_type in SPDrawContext is taken into account
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick int nextParaxialDirection(Geom::Point const &pt, Geom::Point const &origin, guint state) const;
05445c57397b3e794e8d49df2f80af94d294da78JazzyNico void waitForLPEMouseClicks(Inkscape::LivePathEffect::EffectType effect_type, unsigned int num_clicks, bool use_polylines = true);
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick virtual void set(const Inkscape::Preferences::Entry& val);
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick virtual bool item_handler(SPItem* item, GdkEvent* event);
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick gint _handleMotionNotify(GdkEventMotion const &mevent);
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick gint _handleButtonRelease(GdkEventButton const &revent);
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick gint _handle2ButtonPress(GdkEventButton const &bevent);
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: añade los modos spiro y bspline
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: esta función cambia los colores rojo,verde y azul haciendolos transparentes o no en función de si se usa spiro
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: crea un nodo en modo bspline o spiro
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: crea un nodo de modo spiro o bspline
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: crea un nodo de tipo CUSP
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: continua una curva existente en modo bspline o spiro
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: continua una curva exsitente con el nodo de union en modo bspline o spiro
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: continua una curva existente con el nodo de union en modo CUSP
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: modifica la "red_curve" cuando se detecta movimiento
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: cierra la curva con el último nodo en modo bspline o spiro
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: cierra la curva con el último nodo en modo CUSP
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //spanish: unimos todas las curvas en juego y llamamos a la función doEffect.
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //function bspline cloned from lpe-bspline.cpp
7765ee8964c8ffd7faee9baa0412abeb1ef5b0a4Nick //function spiro cloned from lpe-spiro.cpp
void _resetColors();
void _disableEvents();
void _enableEvents();
void _setAngleDistanceStatusMessage(Geom::Point const p, int pc_point_to_compare, gchar const *message);
void _lastpointToLine();
void _lastpointToCurve();
void _redrawAll();
void _cancel();