Inkscape
Vector Graphics Editor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages Concepts
Inkscape::PureStretchConstrained Class Reference

#include <pure-transform.h>

Inheritance diagram for Inkscape::PureStretchConstrained:
Inkscape::PureTransform

Public Member Functions

 ~PureStretchConstrained () override=default
 
 PureStretchConstrained (Geom::Coord magnitude, Geom::Point origin, Geom::Dim2 direction, bool uniform)
 
Geom::Scale getStretchSnapped ()
 
Geom::Coord getMagnitude ()
 
Geom::Coord getMagnitudeSnapped ()
 
- Public Member Functions inherited from Inkscape::PureTransform
virtual ~PureTransform ()=default
 
void snap (::SnapManager *sm, std::vector< Inkscape::SnapCandidatePoint > const &points, Geom::Point const &pointer)
 

Protected Member Functions

SnappedPoint snap (::SnapManager *sm, SnapCandidatePoint const &p, Geom::Point pt_orig, Geom::OptRect const &bbox_to_snap) const override
 
Geom::Point getTransformedPoint (SnapCandidatePoint const &p) const override
 
void storeTransform (SnapCandidatePoint const &original_point, SnappedPoint &snapped_point) override
 

Protected Attributes

Geom::Coord _magnitude
 
Geom::Scale _stretch_snapped
 
Geom::Point _origin
 
Geom::Dim2 _direction
 
bool _uniform
 

Additional Inherited Members

- Public Attributes inherited from Inkscape::PureTransform
SnappedPoint best_snapped_point
 

Detailed Description

Definition at line 128 of file pure-transform.h.

Constructor & Destructor Documentation

◆ ~PureStretchConstrained()

Inkscape::PureStretchConstrained::~PureStretchConstrained ( )
overridedefault

◆ PureStretchConstrained()

Inkscape::PureStretchConstrained::PureStretchConstrained ( Geom::Coord  magnitude,
Geom::Point  origin,
Geom::Dim2  direction,
bool  uniform 
)
inline

Definition at line 144 of file pure-transform.h.

References _stretch_snapped, and uniform().

Member Function Documentation

◆ getMagnitude()

Geom::Coord Inkscape::PureStretchConstrained::getMagnitude ( )
inline

Definition at line 157 of file pure-transform.h.

References _magnitude.

Referenced by Inkscape::SelTrans::stretchRequest().

◆ getMagnitudeSnapped()

Geom::Coord Inkscape::PureStretchConstrained::getMagnitudeSnapped ( )
inline

Definition at line 158 of file pure-transform.h.

References _direction, and _stretch_snapped.

◆ getStretchSnapped()

Geom::Scale Inkscape::PureStretchConstrained::getStretchSnapped ( )
inline

Definition at line 156 of file pure-transform.h.

References _stretch_snapped.

Referenced by Inkscape::SelTrans::stretchRequest().

◆ getTransformedPoint()

Geom::Point Inkscape::PureStretchConstrained::getTransformedPoint ( SnapCandidatePoint const &  p) const
overrideprotectedvirtual

◆ snap()

SnappedPoint Inkscape::PureStretchConstrained::snap ( ::SnapManager sm,
SnapCandidatePoint const &  p,
Geom::Point  pt_orig,
Geom::OptRect const &  bbox_to_snap 
) const
overrideprotectedvirtual

Implements Inkscape::PureTransform.

Definition at line 255 of file pure-transform.cpp.

References _direction, _origin, _uniform, and SnapManager::constrainedSnap().

◆ storeTransform()

void Inkscape::PureStretchConstrained::storeTransform ( SnapCandidatePoint const &  original_point,
SnappedPoint snapped_point 
)
overrideprotectedvirtual

Member Data Documentation

◆ _direction

Geom::Dim2 Inkscape::PureStretchConstrained::_direction
protected

Definition at line 135 of file pure-transform.h.

Referenced by getMagnitudeSnapped(), getTransformedPoint(), snap(), and storeTransform().

◆ _magnitude

Geom::Coord Inkscape::PureStretchConstrained::_magnitude
protected

Definition at line 132 of file pure-transform.h.

Referenced by getMagnitude(), getTransformedPoint(), and storeTransform().

◆ _origin

Geom::Point Inkscape::PureStretchConstrained::_origin
protected

Definition at line 134 of file pure-transform.h.

Referenced by getTransformedPoint(), snap(), and storeTransform().

◆ _stretch_snapped

Geom::Scale Inkscape::PureStretchConstrained::_stretch_snapped
protected

◆ _uniform

bool Inkscape::PureStretchConstrained::_uniform
protected

Definition at line 136 of file pure-transform.h.

Referenced by getTransformedPoint(), snap(), and storeTransform().


The documentation for this class was generated from the following files: