summaryrefslogtreecommitdiffstats
path: root/src/display/canvas-axonomgrid.h
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-12-14 20:49:00 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-12-14 20:49:00 +0000
commitf643622c05d698103b68a0af90b96fadb021f815 (patch)
tree69f647af0776d8896263ee9c6694d1a64e649f32 /src/display/canvas-axonomgrid.h
parentFilter quality setting revised, seems to not crash when viewing filters.svg (diff)
downloadinkscape-f643622c05d698103b68a0af90b96fadb021f815.tar.gz
inkscape-f643622c05d698103b68a0af90b96fadb021f815.zip
1) snap midpoints of line segments (both as source and as target)
2) snap intersections within a single shape (as source; as target was already implemented) (bzr r7008)
Diffstat (limited to 'src/display/canvas-axonomgrid.h')
-rw-r--r--src/display/canvas-axonomgrid.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/display/canvas-axonomgrid.h b/src/display/canvas-axonomgrid.h
index 1d255d798..0654a9429 100644
--- a/src/display/canvas-axonomgrid.h
+++ b/src/display/canvas-axonomgrid.h
@@ -36,7 +36,7 @@ public:
void Update (Geom::Matrix const &affine, unsigned int flags);
void Render (SPCanvasBuf *buf);
-
+
void readRepr();
void onReprAttrChanged (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive);
@@ -44,15 +44,15 @@ public:
double angle_deg[3]; /**< Angle of each axis (note that angle[2] == 0) */
double angle_rad[3]; /**< Angle of each axis (note that angle[2] == 0) */
double tan_angle[3]; /**< tan(angle[.]) */
-
+
bool scaled; /**< Whether the grid is in scaled mode */
-
+
Geom::Point ow; /**< Transformed origin by the affine for the zoom */
double lyw; /**< Transformed length y by the affine for the zoom */
double lxw_x;
double lxw_z;
double spacing_ylines;
-
+
Geom::Point sw; /**< the scaling factors of the affine transform */
protected:
@@ -61,7 +61,7 @@ protected:
private:
CanvasAxonomGrid(const CanvasAxonomGrid&);
CanvasAxonomGrid& operator=(const CanvasAxonomGrid&);
-
+
void updateWidgets();
};
@@ -70,20 +70,20 @@ private:
class CanvasAxonomGridSnapper : public LineSnapper
{
public:
- CanvasAxonomGridSnapper(CanvasAxonomGrid *grid, SnapManager const *sm, Geom::Coord const d);
+ CanvasAxonomGridSnapper(CanvasAxonomGrid *grid, SnapManager *sm, Geom::Coord const d);
-private:
+private:
LineList _getSnapLines(Geom::Point const &p) const;
void _addSnappedLine(SnappedConstraints &sc, Geom::Point const snapped_point, Geom::Coord const snapped_distance, Geom::Point const normal_to_line, const Geom::Point point_on_line) const;
CanvasAxonomGrid *grid;
-};
+};
}; //namespace Inkscape
-#endif
+#endif