Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
persp3d.cpp File Reference

Go to the source code of this file.

Functions

static Proj::Pt2 legacy_transform_forward (Proj::Pt2 pt, SPDocument const *doc)
 Apply viewBox and legacy desktop transformation to point loaded from SVG.
 
static Proj::Pt2 legacy_transform_backward (Proj::Pt2 pt, SPDocument const *doc)
 Apply viewBox and legacy desktop transformation to point to be written to SVG.
 
void print_current_persp3d (gchar *func_name, Persp3D *persp)
 

Variables

static int global_counter = 0
 

Function Documentation

◆ legacy_transform_backward()

static Proj::Pt2 legacy_transform_backward ( Proj::Pt2  pt,
SPDocument const *  doc 
)
static

Apply viewBox and legacy desktop transformation to point to be written to SVG.

Definition at line 112 of file persp3d.cpp.

References SPDocument::getHeight(), SPDocument::getRoot(), SPDocument::is_yaxisdown(), root, and Inkscape::Util::Quantity::value().

Referenced by Persp3D::write().

◆ legacy_transform_forward()

static Proj::Pt2 legacy_transform_forward ( Proj::Pt2  pt,
SPDocument const *  doc 
)
static

Apply viewBox and legacy desktop transformation to point loaded from SVG.

Definition at line 90 of file persp3d.cpp.

References SPDocument::getHeight(), SPDocument::getRoot(), SPDocument::is_yaxisdown(), root, and Inkscape::Util::Quantity::value().

Referenced by Persp3D::set().

◆ print_current_persp3d()

void print_current_persp3d ( gchar *  func_name,
Persp3D persp 
)

Definition at line 571 of file persp3d.cpp.

References Inkscape::XML::Node::attribute(), and SPObject::getRepr().

Variable Documentation

◆ global_counter

int global_counter = 0
static

Definition at line 44 of file persp3d.cpp.

Referenced by Persp3DImpl::Persp3DImpl().