Inkscape
Vector Graphics Editor
|
#include <pure-transform.h>
Public Member Functions | |
virtual | ~PureTransform ()=default |
void | snap (::SnapManager *sm, std::vector< Inkscape::SnapCandidatePoint > const &points, Geom::Point const &pointer) |
Public Attributes | |
SnappedPoint | best_snapped_point |
Protected Member Functions | |
virtual SnappedPoint | snap (::SnapManager *sm, SnapCandidatePoint const &p, Geom::Point pt_orig, Geom::OptRect const &bbox_to_snap) const =0 |
virtual Geom::Point | getTransformedPoint (SnapCandidatePoint const &p) const =0 |
virtual void | storeTransform (SnapCandidatePoint const &original_point, SnappedPoint &snapped_point)=0 |
Definition at line 25 of file pure-transform.h.
|
virtualdefault |
|
protectedpure virtual |
Implemented in Inkscape::PureTranslate, Inkscape::PureScale, Inkscape::PureStretchConstrained, Inkscape::PureSkewConstrained, and Inkscape::PureRotateConstrained.
Referenced by snap().
|
protectedpure virtual |
void Inkscape::PureTransform::snap | ( | ::SnapManager * | sm, |
std::vector< Inkscape::SnapCandidatePoint > const & | points, | ||
Geom::Point const & | pointer | ||
) |
Definition at line 20 of file pure-transform.cpp.
References best_snapped_point, Geom::GenericRect< C >::expandTo(), Inkscape::SnappedPoint::getAlwaysSnap(), Inkscape::SnappedPoint::getAtIntersection(), Inkscape::SnappedPoint::getSnapDistance(), Inkscape::SnappedPoint::getSnapped(), getTransformedPoint(), Geom::infinity(), Inkscape::SnappedPoint::isOtherSnapBetter(), Geom::L2(), Inkscape::SnappedPoint::setPointerDistance(), Inkscape::SnappedPoint::setSnapDistance(), snap(), Inkscape::SNAPTARGET_UNDEFINED, and storeTransform().
|
protectedpure virtual |
Implemented in Inkscape::PureTranslate, Inkscape::PureScale, Inkscape::PureStretchConstrained, Inkscape::PureSkewConstrained, and Inkscape::PureRotateConstrained.
Referenced by snap().
SnappedPoint Inkscape::PureTransform::best_snapped_point |
Definition at line 38 of file pure-transform.h.
Referenced by Inkscape::SelTrans::moveTo(), Inkscape::UI::Tools::PagesTool::moveTo(), Inkscape::SelTrans::rotateRequest(), Inkscape::SelTrans::scaleRequest(), Inkscape::SelTrans::skewRequest(), snap(), SnapManager::snapTransformed(), and Inkscape::SelTrans::stretchRequest().