diff options
Diffstat (limited to 'src/sp-offset.h')
| -rw-r--r-- | src/sp-offset.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/src/sp-offset.h b/src/sp-offset.h index 1ccffd0ff..0e1a9d4e5 100644 --- a/src/sp-offset.h +++ b/src/sp-offset.h @@ -4,7 +4,7 @@ /** \file * SPOffset class. * - * Authors: + * Authors: * Mitsuru Oka <oka326@parkcity.ne.jp> * Lauris Kaplinski <lauris@kaplinski.com> * (of the sp-spiral.h upon which this file was created) @@ -31,52 +31,52 @@ class SPUseReference; /** * SPOffset class. * - * An offset is defined by curve and radius. The original curve is kept as - * a path in a sodipodi:original attribute. It's not possible to change + * An offset is defined by curve and radius. The original curve is kept as + * a path in a sodipodi:original attribute. It's not possible to change * the original curve. * * SPOffset is a derivative of SPShape, much like the SPSpiral or SPRect. - * The goal is to have a source shape (= originalPath), an offset (= radius) - * and compute the offset of the source by the radius. To get it to work, - * one needs to know what the source is and what the radius is, and how it's - * stored in the xml representation. The object itself is a "path" element, - * to get lots of shape functionality for free. The source is the easy part: - * it's stored in a "inkscape:original" attribute in the path. In case of + * The goal is to have a source shape (= originalPath), an offset (= radius) + * and compute the offset of the source by the radius. To get it to work, + * one needs to know what the source is and what the radius is, and how it's + * stored in the xml representation. The object itself is a "path" element, + * to get lots of shape functionality for free. The source is the easy part: + * it's stored in a "inkscape:original" attribute in the path. In case of * "linked" offset, as they've been dubbed, there is an additional - * "inkscape:href" that contains the id of an element of the svg. - * When built, the object will attach a listener vector to that object and - * rebuild the "inkscape:original" whenever the href'd object changes. This - * is of course grossly inefficient, and also does not react to changes - * to the href'd during context stuff (like changing the shape of a star by - * dragging control points) unless the path of that object is changed during - * the context (seems to be the case for SPEllipse). The computation of the - * offset is done in sp_offset_set_shape(), a function that is called whenever + * "inkscape:href" that contains the id of an element of the svg. + * When built, the object will attach a listener vector to that object and + * rebuild the "inkscape:original" whenever the href'd object changes. This + * is of course grossly inefficient, and also does not react to changes + * to the href'd during context stuff (like changing the shape of a star by + * dragging control points) unless the path of that object is changed during + * the context (seems to be the case for SPEllipse). The computation of the + * offset is done in sp_offset_set_shape(), a function that is called whenever * a change occurs to the offset (change of source or change of radius). - * just like the sp-star and other, this path derivative can make control - * points, or more precisely one control point, that's enough to define the + * just like the sp-star and other, this path derivative can make control + * points, or more precisely one control point, that's enough to define the * radius (look in object-edit). */ struct SPOffset : public SPShape { - void *originalPath; ///< will be a livarot Path, just don't declare it here to please the gcc linker - char *original; ///< SVG description of the source path - float rad; ///< offset radius - - /// for interactive setting of the radius - bool knotSet; - NR::Point knot; - - bool sourceDirty; - bool isUpdating; - - gchar *sourceHref; - SPUseReference *sourceRef; - Inkscape::XML::Node *sourceRepr; ///< the repr associated with that id - SPObject *sourceObject; - - sigc::connection _modified_connection; - sigc::connection _delete_connection; - sigc::connection _changed_connection; - sigc::connection _transformed_connection; + void *originalPath; ///< will be a livarot Path, just don't declare it here to please the gcc linker + char *original; ///< SVG description of the source path + float rad; ///< offset radius + + /// for interactive setting of the radius + bool knotSet; + NR::Point knot; + + bool sourceDirty; + bool isUpdating; + + gchar *sourceHref; + SPUseReference *sourceRef; + Inkscape::XML::Node *sourceRepr; ///< the repr associated with that id + SPObject *sourceObject; + + sigc::connection _modified_connection; + sigc::connection _delete_connection; + sigc::connection _changed_connection; + sigc::connection _transformed_connection; }; /// The SPOffset vtable. |
