object-snapper.h revision 1813949bb185a61d7a363ec4fd3d0374afca9afd
176N/A#ifndef SEEN_OBJECT_SNAPPER_H
176N/A#define SEEN_OBJECT_SNAPPER_H
176N/A * \file object-snapper.h
176N/A#include "splivarot.h"
3817N/Astruct SPNamedView;
1258N/A ~ObjectSnapper();
2899N/A enum DimensionToSnap {
2899N/A GUIDE_TRANSL_SNAP_X, // For snapping a vertical guide (normal in the X-direction) to objects,
3817N/A GUIDE_TRANSL_SNAP_Y, // For snapping a horizontal guide (normal in the Y-direction) to objects
3817N/A ANGLED_GUIDE_TRANSL_SNAP, // For snapping an angled guide, while translating it accross the desktop
3817N/A ANGLED_GUIDE_ROT_SNAP, // For snapping an angled guide, while rotating it around some pivot point
176N/A void setSnapToItemNode(bool s) {
176N/A _snap_to_itemnode = s;
176N/A bool getSnapToItemNode() const {
176N/A return _snap_to_itemnode;
176N/A void setSnapToItemPath(bool s) {
176N/A _snap_to_itempath = s;
176N/A bool getSnapToItemPath() const {
176N/A return _snap_to_itempath;
176N/A void setSnapToBBoxNode(bool s) {
176N/A _snap_to_bboxnode = s;
176N/A bool getSnapToBBoxNode() const {
176N/A return _snap_to_bboxnode;
176N/A void setSnapToBBoxPath(bool s) {
703N/A _snap_to_bboxpath = s;
703N/A bool getSnapToBBoxPath() const {
176N/A return _snap_to_bboxpath;
176N/A void setIncludeItemCenter(bool s) {
176N/A bool getIncludeItemCenter() const {
2134N/A return _include_item_center;
176N/A bool ThisSnapperMightSnap() const;
176N/A //store some lists of candidates, points and paths, so we don't have to rebuild them for each point we want to snap
176N/A bool const &first_point,
414N/A bool const &first_point,
176N/A ConstraintLine const &c,
414N/A bool const &first_point,
414N/A bool const &first_point) const;
176N/A bool const &first_point) const;
2134N/A bool const &first_point) const;
414N/A bool const &first_point,
414N/A ConstraintLine const &c) const;
176N/A bool const &first_point) const;
176N/A void _clear_paths() const;
414N/A bool _snap_to_itemnode;
176N/A bool _snap_to_itempath;
414N/A bool _snap_to_bboxnode;
414N/A bool _snap_to_bboxpath;
2134N/A bool _strict_snapping;
2134N/A bool _include_item_center;