1 // Copyright 2007 David Hilvert <dhilvert@auricle.dyndns.org>,
2 // <dhilvert@ugcs.caltech.edu>
4 /* This file is part of the Anti-Lamenessing Engine.
6 The Anti-Lamenessing Engine is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 The Anti-Lamenessing Engine is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with the Anti-Lamenessing Engine; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 void ui_log::set_offset(d2::trans_single offset
, int marker
) {
26 if (offset
.is_projective()) {
27 printf("Alignment [%s %f %f %f %f %f %f %f %f %f %f]\n",
29 (double) offset
.scaled_width(),
30 (double) offset
.scaled_height(),
31 (double) offset
.gpt_get(0, 1),
32 (double) offset
.gpt_get(0, 0),
33 (double) offset
.gpt_get(1, 1),
34 (double) offset
.gpt_get(1, 0),
35 (double) offset
.gpt_get(2, 1),
36 (double) offset
.gpt_get(2, 0),
37 (double) offset
.gpt_get(3, 1),
38 (double) offset
.gpt_get(3, 0) );
40 printf("Alignment [%s %f %f %f %f %f]\n",
42 (double) offset
.scaled_width(),
43 (double) offset
.scaled_height(),
44 (double) offset
.eu_get(1),
45 (double) offset
.eu_get(0),
46 (double) offset
.eu_get(2) );
50 void ui_log::set_offset(d2::trans_single offset
) {
51 set_offset(offset
, 0);
54 void ui_log::set_offset(d2::transformation offset
) {
55 set_offset(offset
.get_element(offset
.get_current_index()), 0);
58 void ui_log::start_multi_alignment_element(d2::trans_multi
&tm
) {
59 printf("Starting multi-alignment element %d.", tm
.get_current_index());