X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Farray2dfile.h;h=11834fe32191f4cf159ea10f826142f9f46fd0fc;hb=5a6caa64e880f613b82e516031028d02fd127257;hp=a63b45d036e52c4a3f42b074eb7db4a52f0f50ed;hpb=7f8f356151b0c8db0dbbf1c1896cc22630d6c774;p=ctsim.git diff --git a/include/array2dfile.h b/include/array2dfile.h index a63b45d..11834fe 100644 --- a/include/array2dfile.h +++ b/include/array2dfile.h @@ -7,9 +7,9 @@ ** Date Started: June 2000 ** ** This is part of the CTSim program -** Copyright (C) 1983-2000 Kevin Rosenberg +** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: array2dfile.h,v 1.19 2001/01/12 16:41:56 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);