2#ifndef SEEN_SNAP_CANDIDATE_H
3#define SEEN_SNAP_CANDIDATE_H
Cartesian point / 2D vector and related operations.
3x3 matrix representing an affine transformation.
Axis-aligned rectangle that can be empty.
Two-dimensional point that doubles as a vector.
~SnapCandidateItem()=default
SnapCandidateItem(SPItem *item, bool clip_or_mask, Geom::Affine additional_affine)
Geom::Affine additional_affine
Geom::PathVector path_vector
bool currently_being_edited
Geom::OptRect target_bbox
SnapCandidatePath(Geom::PathVector path, SnapTargetType target, Geom::OptRect bbox, bool edited=false)
SnapTargetType target_type
Class to store data for points which are snap candidates, either as a source or as a target.
Inkscape::SnapTargetType _target_type
Geom::OptRect const getTargetBBox() const
SnapCandidatePoint()=default
std::vector< std::pair< Geom::Point, bool > > const & getOriginsAndVectors() const
Inkscape::SnapSourceType getSourceType() const
Geom::Point const & getPoint() const
Inkscape::SnapSourceType _source_type
Inkscape::SnapTargetType getTargetType() const
bool isSingleHandle() const
SnapCandidatePoint(Geom::Point const &point, Inkscape::SnapSourceType const source, long const source_num, Inkscape::SnapTargetType const target, Geom::OptRect bbox)
void addOrigin(Geom::Point pt)
void setSourceNum(long num)
bool considerForAlignment() const
long getSourceNum() const
Geom::OptRect _target_bbox
void addVector(Geom::Point v)
void setPoint(const Geom::Point &pt)
SnapCandidatePoint(Geom::Point const &point, Inkscape::SnapSourceType const source, Inkscape::SnapTargetType const target)
SnapCandidatePoint(Geom::Point const &point, Inkscape::SnapSourceType const source)
bool operator<(const SnapCandidatePoint &other) const
void setDistance(Geom::Coord dist)
std::vector< std::pair< Geom::Point, bool > > _origins_and_vectors
void movePoint(const Geom::Point &pt)
Geom::Coord getDistance()
Base class for visual SVG elements.
double Coord
Floating point type used to store coordinates.
Various utility functions.
Helper class to stream background task notifications as a series of messages.
SnapSourceType
enumerations of snap source types and snap target types.
@ SNAPSOURCE_OTHER_HANDLE
PathVector - a sequence of subpaths.