d2::align: Remove histogram and removal data structures and logic.
[Ale.git] / ui / ui_log.cc
blob3ce9e108ef72267069ea42578760a65e566703af
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
21 #include "ui.h"
22 #include "ui_log.h"
23 #include "d2.h"
25 void ui_log::set_offset(d2::transformation offset) {
26 if (offset.is_projective()) {
27 printf("Alignment [P %f %f %f %f %f %f %f %f %f %f]\n",
28 offset.scaled_width(),
29 offset.scaled_height(),
30 offset.gpt_get(0, 1),
31 offset.gpt_get(0, 0),
32 offset.gpt_get(1, 1),
33 offset.gpt_get(1, 0),
34 offset.gpt_get(2, 1),
35 offset.gpt_get(2, 0),
36 offset.gpt_get(3, 1),
37 offset.gpt_get(3, 0) );
38 } else {
39 printf("Alignment [E %f %f %f %f %f]\n",
40 offset.scaled_width(),
41 offset.scaled_height(),
42 offset.eu_get(1),
43 offset.eu_get(0),
44 offset.eu_get(2) );