Inkscape
Vector Graphics Editor
|
Scaling from the origin. More...
#include <transforms.h>
Public Member Functions | |
Scale ()=default | |
Create a scaling that doesn't do anything. | |
Scale (Point const &p) | |
Create a scaling from two scaling factors given as coordinates of a point. | |
Scale (Coord x, Coord y) | |
Create a scaling from two scaling factors. | |
Scale (Coord s) | |
Create an uniform scaling from a single scaling factor. | |
operator Affine () const | |
Coord | operator[] (Dim2 d) const |
Coord | operator[] (unsigned d) const |
Coord & | operator[] (Dim2 d) |
Coord & | operator[] (unsigned d) |
Scale & | operator*= (Scale const &b) |
bool | operator== (Scale const &o) const |
Point | vector () const |
Scale | inverse () const |
![]() | |
Affine | operator* (T2 const &t) const |
Static Public Member Functions | |
static Scale | identity () |
Private Attributes | |
Point | vec = { 1, 1 } |
Friends | |
class | Point |
Related Symbols | |
(Note that these are not member symbols.) | |
template<> | |
Scale | pow (Scale const &s, int n) |
Specialization of exponentiation for Scale. | |
Scaling from the origin.
During scaling, the point (0,0) will not move. To obtain a scale with a different invariant point, combine with translation to the origin and back.
Definition at line 148 of file transforms.h.
|
default |
Create a scaling that doesn't do anything.
Referenced by inverse().
|
inlineexplicit |
Create a scaling from two scaling factors given as coordinates of a point.
Definition at line 156 of file transforms.h.
Create a scaling from two scaling factors.
Definition at line 158 of file transforms.h.
|
inlineexplicit |
Create an uniform scaling from a single scaling factor.
Definition at line 160 of file transforms.h.
|
inlinestatic |
Definition at line 173 of file transforms.h.
Referenced by Geom::check_transforms(), and Inkscape::DrawingSurface::createRawContext().
|
inline |
Definition at line 172 of file transforms.h.
Referenced by Inkscape::UI::Tools::PencilTool::_addFreehandPoint(), SPGrid::_checkOldGrid(), Inkscape::Extension::Internal::SvgBuilder::_flushText(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::Extension::Internal::Grid::effect(), file_import_pages(), insert_bounding_boxes(), Inkscape::PageManager::newDocumentPage(), SPGroup::scaleChildItemsRec(), Inkscape::UI::Dialog::DocumentProperties::set_content_scale(), SPGradient::set_gs2d_matrix(), SPPage::setDocumentRect(), Inkscape::UI::Tools::MeasureTool::setLabelText(), Inkscape::UI::Tools::MeasureTool::setPoint(), SPGrid::setPrefValues(), Inkscape::ObjectSet::setScaleAbsolute(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Widget::Stores::snapshot_combine(), and wrap_transforms().
|
inline |
Definition at line 161 of file transforms.h.
Definition at line 168 of file transforms.h.
|
inline |
Definition at line 169 of file transforms.h.
References vec.
Definition at line 166 of file transforms.h.
References vec.
Definition at line 163 of file transforms.h.
References vec.
|
inline |
Definition at line 167 of file transforms.h.
References vec.
|
inline |
Definition at line 164 of file transforms.h.
References vec.
|
inline |
Definition at line 171 of file transforms.h.
References vec.
Referenced by Inkscape::DrawingImage::_renderItem(), Inkscape::DrawingSurface::createRawContext(), Inkscape::DrawingSurface::dimensions(), and Inkscape::PureScale::storeTransform().
|
friend |
Definition at line 175 of file transforms.h.
Specialization of exponentiation for Scale.
Definition at line 336 of file transforms.h.
|
private |
Definition at line 151 of file transforms.h.
Referenced by inverse(), operator Affine(), operator*=(), Geom::Point::operator*=(), operator==(), operator[](), operator[](), operator[](), operator[](), and vector().