Searched defs:axis (Results 1 - 20 of 20) sorted by relevance

/inkscape/src/
H A Dperspective-line.cpp17 PerspectiveLine::PerspectiveLine (Geom::Point const &pt, Proj::Axis const axis, Persp3D *persp) : argument
18 Line (pt, persp3d_get_VP(persp, axis).affine(), true)
22 if (!persp3d_get_VP(persp, axis).is_finite()) {
23 Proj::Pt2 vp(persp3d_get_VP(persp, axis));
26 this->vp_dir = axis;
H A Daxis-manip.cpp13 #include "axis-manip.h"
29 get_remaining_axes (Axis axis) { argument
30 if (!is_single_axis_direction (axis)) return std::make_pair (NONE, NONE);
31 Axis plane = orth_plane_or_axis (axis);
35 char * string_from_axes (Box3D::Axis axis) { argument
37 if (axis & Box3D::X) g_string_append_printf (pstring, "X");
38 if (axis & Box3D::Y) g_string_append_printf (pstring, "Y");
39 if (axis & Box3D::Z) g_string_append_printf (pstring, "Z");
H A Dtransf_mat_3x4.h16 #include "axis-manip.h"
25 Pt2 column (Proj::Axis axis) const;
28 void set_image_pt (Proj::Axis axis, Proj::Pt2 const &pt);
29 void toggle_finite (Proj::Axis axis);
30 double get_infinite_angle (Proj::Axis axis) { argument
31 if (has_finite_image(axis)) {
34 Pt2 vp(column(axis));
37 void set_infinite_direction (Proj::Axis axis, double angle) { // angle is in degrees argument
38 if (tmat[2][axis] != 0) return; // don't set directions for finite VPs
41 Geom::Point pt(tmat[0][axis], tma
45 has_finite_image(Proj::Axis axis) argument
60 set_column(Proj::Axis axis, Proj::Pt2 pt) argument
[all...]
H A Dpersp3d.h80 inline Proj::Pt2 persp3d_get_VP (Persp3D *persp, Proj::Axis axis) { argument
81 return persp->perspective_impl->tmat.column(axis);
83 Geom::Point persp3d_get_PL_dir_from_pt (Persp3D *persp, Geom::Point const &pt, Proj::Axis axis); // convenience wrapper around the following two
84 Geom::Point persp3d_get_finite_dir (Persp3D *persp, Geom::Point const &pt, Proj::Axis axis);
85 Geom::Point persp3d_get_infinite_dir (Persp3D *persp, Proj::Axis axis);
86 double persp3d_get_infinite_angle (Persp3D *persp, Proj::Axis axis);
87 bool persp3d_VP_is_finite (Persp3DImpl *persp_impl, Proj::Axis axis);
88 void persp3d_toggle_VP (Persp3D *persp, Proj::Axis axis, bool set_undo = true);
89 void persp3d_toggle_VPs (std::list<Persp3D *>, Proj::Axis axis);
90 void persp3d_set_VP_state (Persp3D *persp, Proj::Axis axis, Pro
[all...]
H A Dtransf_mat_3x4.cpp50 TransfMat3x4::column (Proj::Axis axis) const {
51 return Proj::Pt2 (tmat[0][axis], tmat[1][axis], tmat[2][axis]);
64 TransfMat3x4::preimage (Geom::Point const &pt, double coord, Proj::Axis axis) { argument
68 int index = (int) axis;
83 TransfMat3x4::set_image_pt (Proj::Axis axis, Proj::Pt2 const &pt) { argument
86 tmat[i][axis] = pt[i];
91 TransfMat3x4::toggle_finite (Proj::Axis axis) { argument
92 g_return_if_fail (axis !
108 pt_to_str(Proj::Axis axis) argument
176 normalize_column(Proj::Axis axis) argument
[all...]
H A Daxis-manip.h26 // The X-/Y-/Z-axis corresponds to the first/second/third digit
39 string_from_axis(Proj::Axis axis) { argument
40 switch (axis) {
56 // The X-/Y-/Z-axis corresponds to the first/second/third digit
77 inline int axis_to_int(Box3D::Axis axis) { argument
78 switch (axis) {
93 inline Proj::Axis toProj(Box3D::Axis axis) { argument
94 switch (axis) {
117 inline Box3D::Axis toAffine(Proj::Axis axis) { argument
118 switch (axis) {
189 number_of_axis_directions(Box3D::Axis axis) argument
229 orth_plane_or_axis(Box3D::Axis axis) argument
[all...]
H A Dvanishing-point.h43 VanishingPoint(Persp3D *persp, Proj::Axis axis) : my_counter(VanishingPoint::global_counter++), _persp(persp), _axis(axis) {} argument
61 inline void set(Persp3D *persp, Proj::Axis axis) { argument
63 _axis = axis;
189 void drawLinesForFace (const SPBox3D *box, Proj::Axis axis); //, guint corner1, guint corner2, guint corner3, guint corner4);
H A Ddevice-manager.cpp307 virtual void addAxis(Glib::ustring const & id, gint axis);
352 g_message("device: name[%s] source[0x%x] mode[0x%x] cursor[%s] axis count[%d] key count[%d]", dev->name, dev->source, dev->mode,
489 g_warning("Invalid device axis number %d on extended input device [%s]", index, (*it)->getId().c_str());
530 void DeviceManagerImpl::addAxis(Glib::ustring const & id, gint axis) argument
532 if ( axis >= 0 && axis < static_cast<gint>(bitVals.size()) ) {
535 gint mask = bitVals[axis];
539 // Only signal if a new axis was added
H A Dpersp3d.cpp279 Geom::Point persp3d_get_PL_dir_from_pt (Persp3D *persp, Geom::Point const &pt, Proj::Axis axis) { argument
280 if (persp3d_VP_is_finite(persp->perspective_impl, axis)) {
281 return persp3d_get_finite_dir(persp, pt, axis);
283 return persp3d_get_infinite_dir(persp, axis);
288 persp3d_get_finite_dir (Persp3D *persp, Geom::Point const &pt, Proj::Axis axis) { argument
289 Box3D::PerspectiveLine pl(pt, axis, persp);
294 persp3d_get_infinite_dir (Persp3D *persp, Proj::Axis axis) { argument
295 Proj::Pt2 vp(persp3d_get_VP(persp, axis));
304 persp3d_get_infinite_angle (Persp3D *persp, Proj::Axis axis) { argument
305 return persp->perspective_impl->tmat.get_infinite_angle(axis);
309 persp3d_VP_is_finite(Persp3DImpl *persp_impl, Proj::Axis axis) argument
314 persp3d_toggle_VP(Persp3D *persp, Proj::Axis axis, bool set_undo) argument
329 persp3d_toggle_VPs(std::list<Persp3D *> p, Proj::Axis axis) argument
338 persp3d_set_VP_state(Persp3D *persp, Proj::Axis axis, Proj::VPState state) argument
345 persp3d_rotate_VP(Persp3D *persp, Proj::Axis axis, double angle, bool alt_pressed) argument
[all...]
H A Dvanishing-point.cpp670 void VPDrag::drawLinesForFace(const SPBox3D *box, Proj::Axis axis) //, guint corner1, guint corner2, guint corner3, guint corner4) argument
673 switch (axis) {
689 box3d_corners_for_PLs (box, axis, corner1, corner2, corner3, corner4);
692 Proj::Pt2 vp = persp3d_get_VP (box3d_get_perspective(box), axis);
711 Box3D::PerspectiveLine pl (corner1, axis, persp);
714 pl = Box3D::PerspectiveLine (corner2, axis, persp);
717 pl = Box3D::PerspectiveLine (corner3, axis, persp);
720 pl = Box3D::PerspectiveLine (corner4, axis, persp);
H A Dseltrans.cpp286 // (The special points are the handles, center, rotation axis, font baseline, ends of spiral, etc.)
969 Geom::Dim2 axis, perp; local
973 axis = Geom::Y;
978 axis = Geom::X;
999 if (fabs(default_scale[axis]) > 1) {
1000 default_scale[axis] = round(default_scale[axis]);
1001 } else if (default_scale[axis] != 0) {
1002 default_scale[axis] = 1/round(1/(MIN(default_scale[axis], 1
[all...]
H A Dbox3d.cpp554 * from which the perspective lines in the direction of 'axis' emerge
556 void box3d_corners_for_PLs (const SPBox3D * box, Proj::Axis axis, argument
564 double coord = (box->orig_corner0[axis] > box->orig_corner7[axis]) ?
565 box->orig_corner0[axis] :
566 box->orig_corner7[axis];
570 switch (axis) {
895 box3d_swap_sides(int z_orders[6], Box3D::Axis axis) { argument
900 if (!(Box3D::int_to_face(z_orders[i]) & axis)) {
944 // determine the "central" axis (i
1117 box3d_pt_lies_in_PL_sector(SPBox3D const *box, Geom::Point const &pt, int id1, int id2, Box3D::Axis axis) argument
1149 box3d_VP_lies_in_PL_sector(SPBox3D const *box, Proj::Axis vpdir, int id1, int id2, Box3D::Axis axis) argument
1161 box3d_swap_coords(SPBox3D *box, Proj::Axis axis, bool smaller = true) argument
1181 box3d_check_for_swapped_coords(SPBox3D *box, Proj::Axis axis, bool smaller) argument
[all...]
H A Dmain.cpp197 static void do_query_dimension (SPDocument *doc, bool extent, Geom::Dim2 const axis, const gchar *id);
1393 do_query_dimension (SPDocument *doc, bool extent, Geom::Dim2 const axis, const gchar *id) argument
1421 os << area->dimensions()[axis];
1423 os << area->min()[axis];
/inkscape/src/ui/widget/
H A Drotateable.h22 * Widget adjustable by dragging it to rotate away from a zero-change axis.
36 double axis; member in class:Inkscape::UI::Widget::Rotateable
/inkscape/src/widgets/
H A Dbox3d-toolbar.cpp70 Proj::Axis axis,
78 bool is_infinite = !persp3d_VP_is_finite(persp->perspective_impl, axis);
84 double angle = persp3d_get_infinite_angle(persp, axis);
208 static void box3d_angle_value_changed(GtkAdjustment *adj, GObject *dataKludge, Proj::Axis axis) argument
228 persp->perspective_impl->tmat.set_infinite_direction (axis,
232 // TODO: use the correct axis here, too
233 DocumentUndo::maybeDone(document, "perspangle", SP_VERB_CONTEXT_3DBOX, _("3D Box: Change perspective (angle of infinite axis)"));
255 static void box3d_vp_state_changed( GtkToggleAction *act, GtkAction * /*box3d_angle*/, Proj::Axis axis )
266 persp3d_set_VP_state (persp, axis, set_infinite ? Proj::VP_INFINITE : Proj::VP_FINITE);
69 box3d_set_button_and_adjustment(Persp3D *persp, Proj::Axis axis, GtkAdjustment *adj, GtkAction *act, GtkToggleAction *tact) argument
H A Dtext-toolbar.cpp388 // and move in the corresponding axis
389 Geom::Dim2 axis; local
391 axis = Geom::X;
393 axis = Geom::Y;
399 double width = bbox->dimensions()[axis];
445 if (axis == Geom::X) {
/inkscape/src/2geom/
H A Dsvg-path-parser.cpp1162 Coord SVGPathParser::_pop_coord(Dim2 axis) argument
1167 return _pop() + _current[axis];
H A Dellipse.cpp126 LineSegment Ellipse::axis(Dim2 d) const function in class:Geom::Ellipse
376 return asin(Line(axis(X)).timeAt(p));
378 return acos(Line(axis(Y)).timeAt(p));
/inkscape/src/display/
H A Dnr-filter-turbulence.cpp341 void FilterTurbulence::set_baseFrequency(int axis, double freq){ argument
342 if (axis==0) XbaseFrequency=freq;
343 if (axis==1) YbaseFrequency=freq;
/inkscape/src/ui/tool/
H A Dcontrol-point-selection.cpp223 /** Align control points on the specified axis. */
224 void ControlPointSelection::align(Geom::Dim2 axis) argument
228 Geom::Dim2 d = static_cast<Geom::Dim2>((axis + 1) % 2);

Completed in 64 milliseconds