Lines Matching refs:persp
279 Geom::Point persp3d_get_PL_dir_from_pt (Persp3D *persp, Geom::Point const &pt, Proj::Axis axis) {
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) {
289 Box3D::PerspectiveLine pl(pt, axis, persp);
294 persp3d_get_infinite_dir (Persp3D *persp, Proj::Axis axis) {
295 Proj::Pt2 vp(persp3d_get_VP(persp, axis));
304 persp3d_get_infinite_angle (Persp3D *persp, Proj::Axis axis) {
305 return persp->perspective_impl->tmat.get_infinite_angle(axis);
314 persp3d_toggle_VP (Persp3D *persp, Proj::Axis axis, bool set_undo) {
315 persp->perspective_impl->tmat.toggle_finite(axis);
319 persp3d_update_box_reprs (persp);
320 persp->updateRepr(SP_OBJECT_WRITE_EXT);
338 persp3d_set_VP_state (Persp3D *persp, Proj::Axis axis, Proj::VPState state) {
339 if (persp3d_VP_is_finite(persp->perspective_impl, axis) != (state == Proj::VP_FINITE)) {
340 persp3d_toggle_VP(persp, axis);
345 persp3d_rotate_VP (Persp3D *persp, Proj::Axis axis, double angle, bool alt_pressed) { // angle is in degrees
347 if (persp->perspective_impl->tmat.has_finite_image(axis)) {
351 Proj::Pt2 v_dir_proj (persp->perspective_impl->tmat.column(axis));
355 persp->perspective_impl->tmat.set_infinite_direction (axis, a);
357 persp3d_update_box_reprs (persp);
358 persp->updateRepr(SP_OBJECT_WRITE_EXT);
362 persp3d_apply_affine_transformation (Persp3D *persp, Geom::Affine const &xform) {
363 persp->perspective_impl->tmat *= xform;
364 persp3d_update_box_reprs(persp);
365 persp->updateRepr(SP_OBJECT_WRITE_EXT);
369 persp3d_add_box (Persp3D *persp, SPBox3D *box) {
370 Persp3DImpl *persp_impl = persp->perspective_impl;
382 persp3d_remove_box (Persp3D *persp, SPBox3D *box) {
383 Persp3DImpl *persp_impl = persp->perspective_impl;
391 persp3d_has_box (Persp3D *persp, SPBox3D *box) {
392 Persp3DImpl *persp_impl = persp->perspective_impl;
405 persp3d_update_box_displays (Persp3D *persp) {
406 Persp3DImpl *persp_impl = persp->perspective_impl;
416 persp3d_update_box_reprs (Persp3D *persp) {
417 if (!persp) {
421 Persp3DImpl *persp_impl = persp->perspective_impl;
432 persp3d_update_z_orders (Persp3D *persp) {
433 Persp3DImpl *persp_impl = persp->perspective_impl;
446 persp3d_list_of_boxes(Persp3D *persp) {
447 Persp3DImpl *persp_impl = persp->perspective_impl;
490 Persp3D *persp = (Persp3D*) data;
491 persp3d_update_box_displays (persp);
496 persp3d_has_all_boxes_in_selection (Persp3D *persp, Inkscape::Selection *selection) {
497 Persp3DImpl *persp_impl = persp->perspective_impl;
513 persp3d_print_debugging_info (Persp3D *persp) {
514 Persp3DImpl *persp_impl = persp->perspective_impl;
518 cstr = persp3d_get_VP(persp, Proj::axes[i]).coord_string();
522 cstr = persp3d_get_VP(persp, Proj::W).coord_string();
552 Persp3D *persp = SP_PERSP3D(*j);
553 Persp3DImpl *persp_impl = persp->perspective_impl;
554 g_print (" %s (%d): ", persp->getRepr()->attribute("id"), persp->perspective_impl->my_counter);
564 void print_current_persp3d(gchar *func_name, Persp3D *persp) {
567 persp ? persp->getRepr()->attribute("id") : "NULL");