projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r239: *** empty log message ***
[ctsim.git]
/
libctsim
/
array2dfile.cpp
diff --git
a/libctsim/array2dfile.cpp
b/libctsim/array2dfile.cpp
index ed04a7c04f3ee149dc6a7266a885eaa4b96be7c7..6517015e7eca657f563937307fd72fb31cb28c81 100644
(file)
--- a/
libctsim/array2dfile.cpp
+++ b/
libctsim/array2dfile.cpp
@@
-9,7
+9,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: array2dfile.cpp,v 1.
6 2000/07/13 07:03:2
1 kevin Exp $
+** $Id: array2dfile.cpp,v 1.
10 2000/12/04 03:11:0
1 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
@@
-31,6
+31,7
@@
using namespace std;
using namespace std;
+const kuint16 Array2dFile::m_signature = ('I'*256+'F');
///////////////////////////////////////////////////////////////////////////
// CLASS IMPLEMENTATION
///////////////////////////////////////////////////////////////////////////
// CLASS IMPLEMENTATION
@@
-170,7
+171,7
@@
Array2dFile::~Array2dFile (void)
{
freeArray ();
for (labelIterator l = m_labels.begin(); l != m_labels.end(); l++)
{
freeArray ();
for (labelIterator l = m_labels.begin(); l != m_labels.end(); l++)
-
delete *l;
+ delete *l;
}
Array2dFile::Array2dFile (void)
}
Array2dFile::Array2dFile (void)
@@
-199,12
+200,9
@@
Array2dFile::init (void)
void
Array2dFile::setArraySize (int x, int y, int pixelSize, int pixelFormat)
{
void
Array2dFile::setArraySize (int x, int y, int pixelSize, int pixelFormat)
{
- m_nx = x;
- m_ny = y;
m_pixelSize = pixelSize;
m_pixelSize = pixelSize;
- m_arraySize = m_nx * m_ny * m_pixelSize;
m_pixelFormat = pixelFormat;
m_pixelFormat = pixelFormat;
-
allocArray (
);
+
setArraySize (x, y
);
}
void
}
void