Inkscape
Vector Graphics Editor
|
Parent for classes that can snap points to something. More...
#include <snapper.h>
Classes | |
class | SnapConstraint |
Public Member Functions | |
Snapper (SnapManager *sm, ::Geom::Coord const t) | |
Construct new Snapper for named view. | |
virtual | ~Snapper ()=default |
virtual Geom::Coord | getSnapperTolerance () const =0 |
virtual bool | getSnapperAlwaysSnap (SnapSourceType const &source) const =0 |
virtual bool | ThisSnapperMightSnap () const |
void | setEnabled (bool s) |
void | setSnapVisibleOnly (bool s) |
bool | getEnabled () const |
bool | getSnapVisibleOnly () const |
virtual void | freeSnap (IntermSnapResults &, Inkscape::SnapCandidatePoint const &, Geom::OptRect const &, std::vector< SPObject const * > const *, std::vector< SnapCandidatePoint > *) const |
virtual void | constrainedSnap (IntermSnapResults &, Inkscape::SnapCandidatePoint const &, Geom::OptRect const &, SnapConstraint const &, std::vector< SPObject const * > const *, std::vector< SnapCandidatePoint > *) const |
Protected Attributes | |
SnapManager * | _snapmanager |
bool | _snap_enabled |
true if this snapper is enabled, otherwise false | |
bool | _snap_visible_only |
Inkscape::Snapper::Snapper | ( | SnapManager * | sm, |
::Geom::Coord const | t | ||
) |
Construct new Snapper for named view.
nv | Named view. |
d | Snap tolerance. |
Definition at line 22 of file snapper.cpp.
References _snapmanager.
|
virtualdefault |
|
inlinevirtual |
Reimplemented in Inkscape::AlignmentSnapper, Inkscape::DistributionSnapper, Inkscape::LineSnapper, and Inkscape::ObjectSnapper.
|
inlinevirtual |
Reimplemented in Inkscape::LineSnapper, Inkscape::AlignmentSnapper, Inkscape::DistributionSnapper, and Inkscape::ObjectSnapper.
Definition at line 59 of file snapper.h.
Referenced by SnapManager::multipleOfGridPitch().
|
inline |
Definition at line 56 of file snapper.h.
References _snap_enabled.
|
pure virtual |
|
pure virtual |
|
inline |
Definition at line 57 of file snapper.h.
References _snap_visible_only.
Referenced by Inkscape::GridSnapper::get_snap_lines(), and Inkscape::GridSnapper::getSnapLinesAxonom().
void Inkscape::Snapper::setEnabled | ( | bool | s | ) |
s | true to enable this snapper, otherwise false. |
Definition at line 34 of file snapper.cpp.
void Inkscape::Snapper::setSnapVisibleOnly | ( | bool | s | ) |
Definition at line 39 of file snapper.cpp.
|
inlinevirtual |
Reimplemented in Inkscape::AlignmentSnapper, Inkscape::DistributionSnapper, Inkscape::GridSnapper, Inkscape::GuideSnapper, and Inkscape::ObjectSnapper.
Definition at line 51 of file snapper.h.
References _snap_enabled.
Referenced by SnapManager::multipleOfGridPitch().
|
protected |
true if this snapper is enabled, otherwise false
Definition at line 149 of file snapper.h.
Referenced by getEnabled(), ThisSnapperMightSnap(), and Inkscape::GridSnapper::ThisSnapperMightSnap().
|
protected |
Definition at line 150 of file snapper.h.
Referenced by getSnapVisibleOnly().
|
protected |
Definition at line 146 of file snapper.h.
Referenced by Inkscape::GridSnapper::_getSnapLines(), Inkscape::GridSnapper::get_snap_lines(), Inkscape::GridSnapper::getSnapLinesAxonom(), Inkscape::GridSnapper::getSnapperTolerance(), Snapper(), and Inkscape::GridSnapper::ThisSnapperMightSnap().