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

Go to the source code of this file.

Typedefs

typedef std::complex< AAF > CAAF
 

Functions

void draw_line_in_rect (cairo_t *cr, Rect &r, Point n, double c)
 
OptRect tighten (Rect &r, Point n, Interval lu)
 
AAF ls_sample_based (AAF x, vector< Point > pts)
 
AAF md_sample_based (AAF x, vector< Point > pts)
 
AAF atan_sample_based (AAF x)
 
AAF log_sample_based (AAF x)
 
AAF exp_sample_based (AAF x)
 
AAF pow_sample_based (AAF x, double p)
 
AAF trial_eval (AAF x, AAF y)
 
AAF xaxis (AAF x, AAF y)
 
AAF xaxis2 (AAF x, AAF y)
 
AAF yaxis (AAF x, AAF y)
 
int main (int argc, char **argv)
 

Variables

Point origin
 
double scale =100
 

Typedef Documentation

◆ CAAF

typedef std::complex<AAF> CAAF

Definition at line 22 of file aa.cpp.

Function Documentation

◆ atan_sample_based()

AAF atan_sample_based ( AAF  x)

Definition at line 120 of file aa.cpp.

References md_sample_based(), and Geom::sqrt().

◆ draw_line_in_rect()

void draw_line_in_rect ( cairo_t cr,
Rect r,
Point  n,
double  c 
)

Definition at line 30 of file aa.cpp.

References c, cairo_line_to(), cairo_move_to(), and Geom::rect_line_intersect().

◆ exp_sample_based()

AAF exp_sample_based ( AAF  x)

Definition at line 172 of file aa.cpp.

References Geom::log(), and md_sample_based().

◆ log_sample_based()

AAF log_sample_based ( AAF  x)

Definition at line 141 of file aa.cpp.

References Geom::log(), and md_sample_based().

◆ ls_sample_based()

AAF ls_sample_based ( AAF  x,
vector< Point pts 
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 505 of file aa.cpp.

References init().

◆ md_sample_based()

AAF md_sample_based ( AAF  x,
vector< Point pts 
)

Definition at line 104 of file aa.cpp.

References c, and Geom::dot().

Referenced by atan_sample_based(), exp_sample_based(), log_sample_based(), and pow_sample_based().

◆ pow_sample_based()

AAF pow_sample_based ( AAF  x,
double  p 
)

Definition at line 191 of file aa.cpp.

References md_sample_based(), and Geom::pow().

◆ tighten()

◆ trial_eval()

AAF trial_eval ( AAF  x,
AAF  y 
)

Definition at line 230 of file aa.cpp.

References Geom::log(), origin, Geom::pow(), scale, and Geom::sqrt().

◆ xaxis()

AAF xaxis ( AAF  x,
AAF  y 
)

Definition at line 269 of file aa.cpp.

References origin, and scale.

Referenced by Avoid::vertexSweep().

◆ xaxis2()

AAF xaxis2 ( AAF  x,
AAF  y 
)

Definition at line 275 of file aa.cpp.

References origin, and scale.

◆ yaxis()

AAF yaxis ( AAF  x,
AAF  y 
)

Definition at line 281 of file aa.cpp.

References origin, and scale.

Variable Documentation

◆ origin

Point origin

Definition at line 227 of file aa.cpp.

Referenced by Inkscape::GuideSnapper::_addSnappedLinesOrigin(), Inkscape::UI::Widget::CanvasGrid::_createGuide(), Inkscape::Extension::Internal::CairoRenderer::_doRender(), Inkscape::UI::Tools::PenTool::_endpointSnap(), Inkscape::UI::Tools::PencilTool::_endpointSnap(), Inkscape::UI::Tools::PenTool::_endpointSnapHandle(), Inkscape::UI::Tools::ToolBase::_filterEventForSnapping(), Geom::PlanarGraph< EdgeLabel >::_getPathImpl(), Inkscape::CanvasItemGuideLine::_render(), Inkscape::UI::Tools::PenTool::_setSubsequentPoint(), Inkscape::UI::Tools::PenTool::_setToNearestHorizVert(), Inkscape::calcScaleFactors(), Inkscape::LivePathEffect::LPECloneOriginal::cloneAttributes(), Inkscape::LineSnapper::constrainedSnap(), Geom::xAx::decompose_df(), InkFileExportCmd::do_export_png(), Inkscape::LivePathEffect::LPETiling::doAfterEffect(), Inkscape::LivePathEffect::LPEConstructGrid::doEffect_path(), Inkscape::LivePathEffect::LPELattice::doEffect_pwd2(), Inkscape::LivePathEffect::LPELattice2::doEffect_pwd2(), Inkscape::UI::Tools::GradientTool::drag(), Inkscape::UI::Handle::dragged(), Inkscape::UI::Node::dragged(), Inkscape::DrawingContext::DrawingContext(), Inkscape::LivePathEffect::LPEBool::dupleNode(), Inkscape::UI::Tools::endpt_handler(), Geom::Path::extrema(), Inkscape::UI::PathManipulator::extremeNode(), Inkscape::LineSnapper::freeSnap(), Inkscape::LivePathEffect::LPEOffset::get_default_point(), Inkscape::GridSnapper::get_snap_lines(), SPGrid::getEffectiveOriginAndSpacing(), Inkscape::GridSnapper::getSnapLinesAxonom(), Inkscape::UI::Tools::PagesTool::getSnappedResizePoint(), SnapManager::guideFreeSnap(), item_find_paths(), PatternKnotHolderEntityXY::knot_set(), HatchKnotHolderEntityXY::knot_set(), HatchKnotHolderEntityScale::knot_set(), FilterKnotHolderEntity::knot_set(), Inkscape::UI::Dialog::LivePathEffectEditor::move_list(), SPLPEItem::movePathEffect(), SnapManager::multipleOfGridPitch(), Inkscape::UI::Tools::PenTool::nextParaxialDirection(), Inkscape::UI::Widget::RegisteredVector::on_value_changed(), Geom::reflection(), Inkscape::Filters::Filter::render(), Inkscape::Extension::Internal::CairoRenderer::renderItem(), Inkscape::LivePathEffect::LPERoughHatches::resetDefaults(), Inkscape::UI::Widget::CanvasGrid::rulerMotion(), Inkscape::CanvasItemGuideLine::set_origin(), Inkscape::UI::Tools::MeasureTool::setGuide(), Inkscape::DrawingImage::setOrigin(), Inkscape::UI::Tools::MeasureTool::setPoint(), Inkscape::DrawingContext::setSource(), Inkscape::UI::Widget::RegisteredVector::setValue(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::UI::Tools::ToolBase::snap_delay_handler(), Inkscape::Extension::Internal::sp_anchor_render(), Inkscape::LivePathEffect::sp_calculate_origin(), sp_generate_internal_bitmap(), Inkscape::Extension::Internal::sp_group_render(), Inkscape::Extension::Internal::sp_item_invoke_render(), Inkscape::Extension::Internal::sp_shape_render(), Inkscape::Extension::Internal::sp_symbol_render(), Inkscape::UI::ControlPointSelection::spatialGrow(), TEST(), Inkscape::Colors::to_gamut_css(), Proj::TransfMat3x4::toggle_finite(), Proj::TransfMat3x4::TransfMat3x4(), trial_eval(), SPGrid::update(), xaxis(), xaxis2(), and yaxis().

◆ scale

double scale =100

Definition at line 228 of file aa.cpp.

Referenced by SPGrid::_checkOldGrid(), Inkscape::CanvasItemCtrl::_dump(), Inkscape::UI::Widget::OKWheel::_event2abstract(), Inkscape::UI::ControlPointSelection::_keyboardScale(), Inkscape::UI::Widget::_make_checkerboard(), Inkscape::DrawingShape::_pickItem(), Inkscape::Extension::Internal::Emf::_pix_x_to_point(), Inkscape::Extension::Internal::Wmf::_pix_x_to_point(), Inkscape::Extension::Internal::Emf::_pix_y_to_point(), Inkscape::Extension::Internal::Wmf::_pix_y_to_point(), Inkscape::DrawingText::_renderItem(), Inkscape::UI::Widget::TabsWidget::_setTooltip(), _ungroup_compensate_source_transform(), Inkscape::DrawingPattern::_updateItem(), Inkscape::DrawingGlyphs::_updateItem(), SPDesktop::DesktopAffine::addScale(), Inkscape::UI::Widget::Scalar::addSlider(), Inkscape::Colors::Parser::append_css_value(), Inkscape::Application::Application(), Inkscape::UI::Dialog::CloneTiler::apply(), Inkscape::Text::Layout::bounds(), Inkscape::calcScaleFactors(), Inkscape::UI::Widget::calcScaleLineWidth(), Inkscape::LivePathEffect::LPEInterpolate::calculate_trajectory(), Inkscape::Extension::Internal::calculatePreserveAspectRatio(), Inkscape::UI::Widget::InkSpinButton::change_value(), Inkscape::Trace::Siox::colorSignatureStage2(), Inkscape::UI::Widget::MarkerComboBox::create_marker_image(), Inkscape::DrawingRadialGradient::create_pattern(), Inkscape::UI::Widget::create_pattern_item(), Inkscape::Extension::Internal::PrintEmf::create_pen(), Inkscape::Extension::Internal::PrintWmf::create_pen(), Inkscape::Extension::Internal::Emf::current_matrix(), Inkscape::Extension::Internal::Wmf::current_matrix(), Inkscape::Extension::Internal::Emf::current_scale(), Path::DashPolylineFromStyle(), Inkscape::UI::Widget::draw_color_plate(), Inkscape::UI::Dialog::ColorItem::draw_func(), Inkscape::UI::Widget::ColorSlider::draw_func(), Inkscape::UI::Widget::GradientWithStops::draw_func(), Inkscape::UI::Widget::Ruler::draw_scale(), dumpMatlabProblem(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::Extension::Internal::Grid::effect(), Inkscape::UI::Dialog::ExtensionsGallery::ExtensionsGallery(), SPMeshNodeArray::fill_box(), Inkscape::Filters::Filter::filter_effect_area(), Inkscape::Filters::FilterPrimitive::filter_primitive_area(), Inkscape::UI::Tools::fit_item(), SPFlowtext::fix_overflow_flowregion(), Inkscape::UI::Widget::from_pixel_coordinate(), Inkscape::LivePathEffect::LPERoughHatches::generateLevels(), Inkscape::UI::Widget::get_accel_factor(), Inkscape::UI::Tools::MarkerTool::get_marker_transform(), SPViewBox::get_paintbox(), get_scale_transform_for_uniform_stroke(), get_scale_transform_for_variable_stroke(), Inkscape::CanvasItemRect::get_shadow_size(), Inkscape::UI::Widget::ColorPalette::get_tile_size(), Inkscape::Extension::ParamFloat::get_widget(), Inkscape::Extension::ParamInt::get_widget(), SPPage::getBleedLabel(), Inkscape::LivePathEffect::Effect::getCanvasIndicators(), SPDocument::getDocumentScale(), SPPage::getMarginLabel(), cola::GradientProjection::GradientProjection(), Inkscape::SelTrans::handleNewEvent(), Inkscape::UI::Widget::TemplateList::icon_to_pixbuf(), Inkscape::UI::Dialog::InkscapePreferences::initPageUI(), InkviewApplication::InkviewApplication(), InkviewWindow::InkviewWindow(), insert_bounding_boxes(), item_find_paths(), HatchKnotHolderEntityScale::knot_set(), Inkscape::load_svg_cursor(), Inkscape::UI::Widget::local_to_screen(), Inkscape::LivePathEffect::LPEMeasureSegments::LPEMeasureSegments(), Inkscape::LivePathEffect::LPEPathLength::LPEPathLength(), Inkscape::LivePathEffect::LPETiling::LPETiling(), Inkscape::Display::SnapIndicator::make_alignment_indicator(), Inkscape::Display::SnapIndicator::make_distribution_indicators(), Inkscape::UI::Tools::PagesTool::marginKnotMoved(), Geom::Poly::monicify(), GrDragger::moveMeshHandles(), Inkscape::Trace::CieLab::mul(), PatternKnotHolderEntity::offset_to_cell(), Inkscape::UI::Widget::RegisteredScalarUnit::on_value_changed(), SPDesktop::on_zoom_scale(), Inkscape::Extension::Internal::GdkpixbufInput::open(), Inkscape::Extension::Internal::Svg::open(), Inkscape::UI::Toolbar::PageToolbar::PageToolbar(), Inkscape::Colors::Space::HSV::fromHwbParser::parse(), PdfParser::PdfParser(), Inkscape::Extension::Internal::Bitmap::Crop::postEffect(), print_seg(), Inkscape::PureScale::PureScale(), Inkscape::PureScaleConstrained::PureScaleConstrained(), Inkscape::PureSkewConstrained::PureSkewConstrained(), Inkscape::svg_renderer::render(), Inkscape::Filters::FilterDiffuseLighting::render_cairo(), Inkscape::Filters::FilterSpecularLighting::render_cairo(), Inkscape::UI::Dialog::render_icon(), Inkscape::svg_renderer::render_surface(), Inkscape::Extension::Internal::CairoRenderer::renderPage(), Inkscape::UI::Tools::DropperTool::root_handler(), Inkscape::UI::ThemeContext::saveFontScale(), SPGrid::scale(), SVGLength::scale(), Inkscape::UI::MultiPathManipulator::scale(), SPItem::scale_rel(), Inkscape::PageManager::scalePages(), Inkscape::ObjectSet::scaleRelative(), Inkscape::UI::Widget::screen_to_local(), SPDesktop::scroll_relative_in_svg_coords(), Inkscape::UI::Dialog::DocumentProperties::set_content_scale(), Inkscape::UI::Dialog::DocumentProperties::set_document_scale(), Inkscape::UI::Dialog::set_document_scale_helper(), Inkscape::Display::SnapIndicator::set_new_snaptarget(), Inkscape::svg_renderer::set_scale(), Inkscape::UI::Widget::CairoGraphics::set_scale_factor(), Inkscape::UI::Widget::GLGraphics::set_scale_factor(), SPImage::set_transform(), SPDocument::setDocumentScale(), Inkscape::UI::Tools::MeasureTool::setLabelText(), SPPage::setMarginSide(), Inkscape::UI::Tools::MeasureTool::setPoint(), SPDesktop::DesktopAffine::setScale(), Inkscape::ObjectSet::setScaleAbsolute(), Inkscape::UI::Widget::StrokeStyle::setScaledDash(), SPStar::setSideLength(), Inkscape::UI::Widget::StrokeStyle::setStrokeDash(), Inkscape::Extension::Internal::LaTeXTextRenderer::setupDocument(), Inkscape::Extension::Internal::Metafile::setViewBoxIfMissing(), Inkscape::UI::Tools::MeasureTool::showCanvasItems(), Inkscape::UI::Tools::MeasureTool::showInfoBox(), Inkscape::SelTrans::skewRequest(), smoothSnake(), Inkscape::Extension::Internal::PrintWmf::smuggle_adxky_out(), Inkscape::Extension::Internal::PrintEmf::smuggle_adxkyrtl_out(), sp_file_convert_dpi(), sp_item_gradient_set_coords(), Inkscape::UI::Tools::sp_spray_recursive(), Inkscape::UI::Tools::sp_tweak_dilate_recursive(), Inkscape::UI::Tools::spdc_apply_bend_shape(), Inkscape::UI::Tools::spdc_paste_curve_as_freehand_shape(), Spiro::spiro_seg_to_otherpath(), Inkscape::Extension::Internal::PrintLatex::stroke(), SurfaceSynth::surfaceNormalAt(), Geom::TEST_F(), Inkscape::UI::Widget::to_pixel_coordinate(), Inkscape::UI::Widget::to_pixel_coordinate(), Inkscape::UI::Tools::MeasureTool::toMarkDimension(), transform_grow(), transform_grow_screen(), transform_grow_step(), transform_scale(), Geom::Rect::transformTo(), SPNamedView::translateGrids(), trial_eval(), SVGLength::update(), Inkscape::UI::Widget::ImageProperties::update(), Inkscape::UI::Dialog::DocumentProperties::update_scale_ui(), Inkscape::UI::Widget::Updater::create< Updater::Strategy::FullRedraw >(), Inkscape::UI::Widget::CanvasGrid::updateScrollbars(), xaxis(), xaxis2(), and yaxis().