X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Farray2dfile.h;h=b49e04a25ed80c89d5d9b90d459d6a0087dde9ca;hp=79ae2f26f74b1ea476f82ea4bb3ab4cddfd50b1d;hb=c00c639073653fac7463a88f2b000f263236550d;hpb=23b7ef994fc5d95fcca6d4ae69abbd5971101262 diff --git a/include/array2dfile.h b/include/array2dfile.h index 79ae2f2..b49e04a 100644 --- a/include/array2dfile.h +++ b/include/array2dfile.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: array2dfile.h,v 1.17 2001/01/02 07:47:36 kevin Exp $ +** $Id: array2dfile.h,v 1.18 2001/01/02 16:02:12 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 @@ -34,11 +34,11 @@ #include #include -#include +#include #include -#include -#include -#include +#include +#include +#include #include #include "ctsupport.h" #include "fnetorderstream.h" @@ -89,8 +89,8 @@ public: const std::string& getDateString () const; void print (std::ostream& os) const; - void printBrief (std::ostream& os) const; - void printBrief (std::ostringstream& os) const; + void printBrief (std::ostream& os) const; + void printBrief (std::ostringstream& os) const; Array2dFileLabel (const Array2dFileLabel& rhs); @@ -127,12 +127,12 @@ public: PIXEL_FLOAT32 = 7, PIXEL_FLOAT64 = 8, }; - - enum { - DATA_TYPE_INVALID = 0, - DATA_TYPE_REAL, - DATA_TYPE_COMPLEX, - }; + + enum { + DATA_TYPE_INVALID = 0, + DATA_TYPE_REAL, + DATA_TYPE_COMPLEX, + }; Array2dFile (int nx, int ny, int pixelSize, int pixelFormat = PIXEL_INVALID, int dataType = DATA_TYPE_REAL); Array2dFile (void); @@ -166,26 +166,26 @@ public: kuint32 ny (void) const { return m_ny; } - - bool isComplex() const - { return m_dataType == DATA_TYPE_COMPLEX; } - - bool isReal() const - { return m_dataType == DATA_TYPE_REAL; } - - int dataType () const - { return static_cast(m_dataType); } - - void setDataType (int dataType) - { m_dataType = dataType; } + + bool isComplex() const + { return m_dataType == DATA_TYPE_COMPLEX; } + + bool isReal() const + { return m_dataType == DATA_TYPE_REAL; } + + int dataType () const + { return static_cast(m_dataType); } + + void setDataType (int dataType) + { m_dataType = dataType; } void setAxisIncrement (double axisIncX, double axisIncY); - bool reallocRealToComplex (); - - bool reallocComplexToReal (); + bool reallocRealToComplex (); + + bool reallocComplexToReal (); - void getPixelValueRange (double& pvmin, double& pvmax) const; + void getPixelValueRange (double& pvmin, double& pvmax) const; void setAxisExtent (double minX, double maxX, double minY, double maxY); void doPixelOffsetScale (double offset, double scale); @@ -203,12 +203,12 @@ public: const std::string& getFilename (void) const { return m_filename; } - void printLabels (std::ostream& os) const; - void printLabelsBrief (std::ostream& os) const; - void printLabelsBrief (std::ostringstream& os) const; - - unsigned int nLabels() const - { return m_labels.size(); } + void printLabels (std::ostream& os) const; + void printLabelsBrief (std::ostream& os) const; + void printLabelsBrief (std::ostringstream& os) const; + + unsigned int nLabels() const + { return m_labels.size(); } typedef std::vector::iterator labelIterator; typedef std::vector::const_iterator constLabelIterator; @@ -231,10 +231,10 @@ public: kuint32 m_ny; kuint32 m_arraySize; labelContainer m_labels; - kuint16 m_numFileLabels; + kuint16 m_numFileLabels; kuint16 m_dataType; unsigned char** m_arrayData; - unsigned char** m_imaginaryArrayData; + unsigned char** m_imaginaryArrayData; private: void init (void); @@ -255,9 +255,9 @@ private: void allocArrays (); void freeArrays (); - - void allocArray (unsigned char**& rppData); - void freeArray (unsigned char**& rppData); + + void allocArray (unsigned char**& rppData); + void freeArray (unsigned char**& rppData); Array2dFile (const Array2dFile& rhs); // copy constructor Array2dFile& operator= (const Array2dFile&); // assignment operator