forked from therion/therion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thdb2dpt.cxx
61 lines (53 loc) · 1.64 KB
/
thdb2dpt.cxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* @file thdb2dpt.cxx
*/
/* Copyright (C) 2000 Stacho Mudrak
*
* $Date: $
* $RCSfile: $
* $Revision: $
*
* --------------------------------------------------------------------
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* --------------------------------------------------------------------
*/
#include "thdb2dpt.h"
#include "thexpmap.h"
thdb2dpt::thdb2dpt() {
this->x = 0.0;
this->y = 0.0;
this->xt = 0.0;
this->yt = 0.0;
this->zt = 0.0;
this->at = 0.0;
this->dbgx0 = 0.0;
this->dbgy0 = 0.0;
this->dbgx1 = 0.0;
this->dbgy1 = 0.0;
this->pscrap = NULL;
this->join_item = NULL;
}
void thdb2dpt::export_mp(class thexpmapmpxs * out, int dbglevel) {
switch (dbglevel) {
case 1:
fprintf(out->file,"(%.2f,%.2f)", thxmmxst(out, this->dbgx1, this->dbgy1));
break;
case 0:
fprintf(out->file,"(%.2f,%.2f)", thxmmxst(out, this->dbgx0, this->dbgy0));
break;
default:
fprintf(out->file,"(%.2f,%.2f)", thxmmxst(out, this->xt, this->yt));
}
}