Searched defs:normal (Results 1 - 18 of 18) sorted by relevance

/inkscape/src/
H A Dline-geometry.h40 /* If A is a point in the plane and n is the normal vector of the line then
43 return ((Geom::dot(A, normal) - d0) * (Geom::dot(B, normal) - d0)) > 0;
59 Geom::Point normal; member in class:Box3D::Line
H A Dknot.cpp508 void SPKnot::setFill(guint32 normal, guint32 mouseover, guint32 dragging) { argument
509 fill[SP_KNOT_STATE_NORMAL] = normal;
514 void SPKnot::setStroke(guint32 normal, guint32 mouseover, guint32 dragging) { argument
515 stroke[SP_KNOT_STATE_NORMAL] = normal;
520 void SPKnot::setImage(guchar* normal, guchar* mouseover, guchar* dragging) { argument
521 image[SP_KNOT_STATE_NORMAL] = normal;
526 void SPKnot::setCursor(GdkCursor* normal, GdkCursor* mouseover, GdkCursor* dragging) { argument
535 cursor[SP_KNOT_STATE_NORMAL] = normal;
537 if (normal) {
539 g_object_ref(normal);
[all...]
H A Ddesktop-events.cpp61 void sp_dt_ruler_snap_new_guide(SPDesktop *desktop, SPCanvasItem *guide, Geom::Point &event_dt, Geom::Point &normal);
91 static Geom::Point normal; local
123 // calculate the normal of the guidelines when dragged from the edges of rulers.
133 // guidelines normal to gridlines
144 normal = normal_bl_to_tr;
146 normal = normal_tr_to_bl;
148 normal = Geom::Point(0.,1.);
152 normal = normal_bl_to_tr;
154 normal = normal_tr_to_bl;
156 normal
201 sp_guideline_set_normal(SP_GUIDELINE(guide), normal); local
745 sp_dt_ruler_snap_new_guide(SPDesktop *desktop, SPCanvasItem * , Geom::Point &event_dt, Geom::Point &normal) argument
[all...]
/inkscape/src/ui/dialog/
H A Dguides.cpp95 Geom::Point normal; local
97 normal = Geom::Point(1.,0.);
99 normal = Geom::Point(0.,1.);
102 normal = Geom::rot90(Geom::Point::polar(rad_angle, 1.0));
107 _guide->set_normal(normal, true);
/inkscape/src/display/
H A Dnr-filter-diffuselighting.cpp54 NR::Fvector normal = surfaceNormalAt(x, y, _scale); local
55 double k = _kd * NR::scalar_product(normal, light);
H A Dnr-filter-specularlighting.cpp56 NR::Fvector normal = surfaceNormalAt(x, y, _scale); local
57 double sp = NR::scalar_product(normal, halfway);
H A Dguideline.cpp209 SPCanvasItem *sp_guideline_new(SPCanvasGroup *parent, char* label, Geom::Point point_on_line, Geom::Point normal) argument
214 normal.normalize();
217 gl->normal_to_line = normal;
H A Dcairo-templates.h475 // compute surface normal at given coordinates using 3x3 Sobel gradient filter
480 NR::Fvector normal; local
482 normal[Z_3D] = 1.0;
491 normal[X_3D] =
494 normal[Y_3D] =
503 normal[X_3D] =
506 normal[Y_3D] =
516 normal[X_3D] =
520 normal[Y_3D] =
533 normal[X_3
[all...]
/inkscape/src/live_effects/parameter/
H A Dpowerstrokepointarray.cpp77 Geom::Piecewise<Geom::D2<Geom::SBasis> > normal = rot90(unitVector(derivative(pwd2_in))); local
83 double offset = dot(position - pwd2_in.valueAt(t), normal.valueAt(t));
/inkscape/src/ui/tool/
H A Dcontrol-point.h210 ColorEntry normal; member in struct:Inkscape::UI::ControlPoint::ColorSet
303 * Alters the appearance of the knot to match one of the states: normal, mouseover
/inkscape/src/2geom/
H A Delliptical-arc-from-sbasis.cpp137 // versor and the ellipse normal versor at the sample points
154 * the second one computes the normal versor at a given point of an ellipse
175 Point normal(double x, double y) const function in struct:Geom::detail::ellipse_equation
181 Point normal(Point const& p) const function in struct:Geom::detail::ellipse_equation
183 return normal(p[X], p[Y]);
218 // and the normal versor of the elliptical arc, both evaluate
220 angle_err = std::fabs( dot( dcurve(k/partitions), ee.normal(p[k]) ) );
H A Dline.h104 /// Create a line normal to a vector at a specified distance from origin.
316 /** @brief Get a unit vector normal to the line.
317 * If Y grows upwards, then this is the left normal. If Y grows downwards,
318 * then this is the right normal. */
319 Point normal() const { function in class:Geom::Line
325 Point n = normal();
H A Dbezier-clipping.cpp205 void normal(std::vector<Point> & N, std::vector<Point> const& B) function in namespace:Geom::detail::bezier_clipping
507 // collinear normal
517 normal(F, B);
/inkscape/src/libnrtype/
H A DLayout-TNG-OutIter.cpp322 Geom::Point normal = tangent.cw(); local
323 top_left += span.baseline_shift * normal;
324 bottom_right += span.baseline_shift * normal;
/inkscape/src/live_effects/
H A Dlpe-powerstroke.cpp120 Geom::Point normal = unitTangentAt(curve, t).cw(); local
122 Geom::Point center = curve(t) + radius*normal;
/inkscape/src/widgets/
H A Dege-select-one-action.cpp755 GtkWidget *normal; local
758 normal = gtk_combo_box_new_with_model_and_entry (act->private_data->model);
759 gtk_combo_box_set_entry_text_column (GTK_COMBO_BOX (normal), act->private_data->labelColumn);
761 GtkWidget *child = gtk_bin_get_child( GTK_BIN(normal) );
783 normal = gtk_combo_box_new_with_model( act->private_data->model );
786 gtk_cell_layout_pack_start( GTK_CELL_LAYOUT(normal), renderer, TRUE );
789 gtk_cell_layout_add_attribute( GTK_CELL_LAYOUT(normal), renderer, "stock-id", act->private_data->iconColumn );
793 gtk_cell_layout_pack_start( GTK_CELL_LAYOUT(normal), renderer, TRUE );
794 gtk_cell_layout_add_attribute( GTK_CELL_LAYOUT(normal), renderer, "text", act->private_data->labelColumn );
797 gtk_combo_box_set_active( GTK_COMBO_BOX(normal), ac
804 g_object_set_data( G_OBJECT(holder), "ege-combo-box", normal ); local
805 g_object_set_data( G_OBJECT(act), "ege-combo-box", normal ); local
818 gtk_box_pack_start( GTK_BOX(holder), normal, FALSE, FALSE, 0 ); local
[all...]
/inkscape/src/helper/
H A Dgeom-pathstroke.cpp53 Geom::Point normal = unitTangentAt(curve, t).cw(); local
55 Geom::Point center = curve(t) + radius*normal;
73 Geom::Point normal; local
82 normal = Geom::Point(curve[1] - curve[0]).cw();
83 normal.normalize();
84 // std::cout << "Start k: " << k << " d: " << distance << " normal: " << normal << std::endl;
93 normal = Geom::Point(curve[3] - curve[2]).cw();
94 normal.normalize();
95 // std::cout << "End k: " << k << " d: " << distance << " normal
[all...]
/inkscape/src/ui/tools/
H A Dmeasure-tool.cpp111 void repositionOverlappingLabels(std::vector<LabelPlacement> &placements, SPDesktop *desktop, Geom::Point const &normal, double fontsize, int precision) argument
143 place.end = place.start - desktop->w2d(normal * place.offset);
945 sp_repr_css_set_property (css, "font-style", "normal");
946 sp_repr_css_set_property (css, "font-weight", "normal");
1220 Geom::Point normal = desktop->w2d(windowNormal); local
1246 placement.end = placement.start - (normal * placement.offset);
1275 Geom::Point origin = desktop->doc2dt((intersections[0] + intersections[intersections.size()-1])/2) + normal * dimension_offset;
1320 setMeasureCanvasControlLine(desktop->doc2dt(intersections[0]) + normal * dimension_offset, desktop->doc2dt(intersections[intersections.size() - 1]) + normal * dimension_offset, to_item, to_phantom, CTLINE_PRIMARY , measure_repr);
1322 setMeasureCanvasControlLine(desktop->doc2dt(intersections[0]), desktop->doc2dt(intersections[0]) + normal * dimension_offse
[all...]

Completed in 315 milliseconds