** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: array2dfile.cpp,v 1.6 2000/07/13 07:03:21 kevin Exp $
+** $Id: array2dfile.cpp,v 1.8 2000/07/29 19:50:08 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
{
freeArray ();
for (labelIterator l = m_labels.begin(); l != m_labels.end(); l++)
- delete *l;
+ delete *l;
}
Array2dFile::Array2dFile (void)
void
Array2dFile::setArraySize (int x, int y, int pixelSize, int pixelFormat)
{
- m_nx = x;
- m_ny = y;
m_pixelSize = pixelSize;
- m_arraySize = m_nx * m_ny * m_pixelSize;
m_pixelFormat = pixelFormat;
- allocArray ();
+ setArraySize (x, y);
}
void