X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Farray2dfile.h;h=11834fe32191f4cf159ea10f826142f9f46fd0fc;hp=f35c592185474c9b4078594d996e1512b2ca46f7;hb=4cdd078f0f198a00e8037e6edec0eb30a6861bae;hpb=134461a6b28beafafdececf7b1f90f4211b56f6b diff --git a/include/array2dfile.h b/include/array2dfile.h index f35c592..11834fe 100644 --- a/include/array2dfile.h +++ b/include/array2dfile.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: array2dfile.h,v 1.20 2001/01/28 19:10:18 kevin Exp $ +** $Id: array2dfile.h,v 1.21 2001/03/07 16:34:47 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 @@ -187,9 +187,15 @@ public: void getPixelValueRange (double& pvmin, double& pvmax) const; void setAxisExtent (double minX, double maxX, double minY, double maxY); - + bool getAxisExtent (double& minX, double& maxX, double& minY, double& maxY) const + { if (! m_axisExtentKnown) return false; minX = m_minX; maxX = m_maxX; minY = m_minY; maxY=m_maxY; + return true; } + void doPixelOffsetScale (double offset, double scale); - + + kfloat64 axisIncrementX() const {return m_axisIncrementKnown ? m_axisIncrementX : 0.;} + kfloat64 axisIncrementY() const {return m_axisIncrementKnown ? m_axisIncrementY : 0.;} + void arrayDataClear (void); bool fileRead (const char* const filename);