projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r329: *** empty log message ***
[ctsim.git]
/
libctsim
/
projections.cpp
diff --git
a/libctsim/projections.cpp
b/libctsim/projections.cpp
index d2ab2b69e189409ce08fb007b8116c0e6da7c3c9..4c31b3808748681a62e7ae33ad1c25a69ad17307 100644
(file)
--- a/
libctsim/projections.cpp
+++ b/
libctsim/projections.cpp
@@
-8,7
+8,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: projections.cpp,v 1.3
3 2000/12/17 22:30:09
kevin Exp $
+** $Id: projections.cpp,v 1.3
4 2001/01/02 06:29:23
kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-71,6
+71,15
@@
Projections::init (const int nView, const int nDet)
m_nView = nView;
m_nDet = nDet;
newProjData ();
m_nView = nView;
m_nDet = nDet;
newProjData ();
+
\r
+ time_t t = time (NULL);
\r
+ tm* lt = localtime (&t);
\r
+ m_year = lt->tm_year;
\r
+ m_month = lt->tm_mon;
\r
+ m_day = lt->tm_mday;
\r
+ m_hour = lt->tm_hour;
\r
+ m_minute = lt->tm_min;
\r
+ m_second = lt->tm_sec;
\r
}
void
}
void
@@
-442,17
+451,6
@@
Projections::write (const char* filename)
return false;
}
return false;
}
-#ifdef HAVE_TIME
- time_t t = time(NULL);
- tm* lt = localtime(&t);
- m_year = lt->tm_year;
- m_month = lt->tm_mon;
- m_day = lt->tm_mday;
- m_hour = lt->tm_hour;
- m_minute = lt->tm_min;
- m_second = lt->tm_sec;
-#endif
-
if (! headerWrite (fs))
return false;
if (! headerWrite (fs))
return false;