Source
void PlotMSIndexer::reindexForSpwConnect(const std::vector<Double>& times, Int nchans, const std::vector<Int>& corrs,
//# PlotMSIndexer.cc: Cache indexer for plotms.
//# Copyright (C) 2009
//# Associated Universities, Inc. Washington DC, USA.
//#
//# This library is free software; you can redistribute it and/or modify it
//# under the terms of the GNU Library General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or (at your
//# option) any later version.
//#
//# This library is distributed in the hope that it will be useful, but WITHOUT
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
//# License for more details.
//#
//# You should have received a copy of the GNU Library General Public License
//# along with this library; if not, write to the Free Software Foundation,
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning AIPS++ should be addressed as follows:
//# Internet email: aips2-request@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
//#
//# $Id: $
//#include <QtCore/qmath.h>
using namespace casacore;
namespace casa {
PlotMSIndexer::PlotMSIndexer():
plotmscache_(NULL),
currChunk_(0),
irel_(0),
lasti_(-1),
nPoints_(),
nCumulative_(),
nSegment_(0),currSeg_(0),
nSegPoints_(),nCumulPoints_(),cacheChunk_(),cacheOffset_(),
currentX_(PMS::SCAN),
currentY_(PMS::SCAN),
indexerReady_(false),
connectReady_(false),
icorrmax_(),
ichanmax_(),
ibslnmax_(),
idatamax_(),
nperchan_(),
nperbsln_(),
nperant_(),
ichanbslnmax_(),
iantmax_(),
xmin_(DBL_MAX),
ymin_(DBL_MAX),
xflmin_(DBL_MAX),
yflmin_(DBL_MAX),
xmax_(-DBL_MAX),
ymax_(-DBL_MAX),
xflmax_(-DBL_MAX),
yflmax_(-DBL_MAX),
sizeMasked_(0),
sizeUnMasked_(0),
globalXMinMax_(false),
globalYMinMax_(false),
iterate_(false),
iterAxis_(PMS::NONE),
iterValue_(-999),
itsColorize_(false),
itsColorizeAxis_(PMS::DEFAULT_COLOR_AXIS),
itsXConnect_("none"),
itsTimeConnect_(false),
freqsDecrease_(),
self(const_cast<PlotMSIndexer*>(this))
{
dataIndex_ = 0;
}
PlotMSIndexer::PlotMSIndexer(PlotMSCacheBase* parent, PMS::Axis xAxis,
PMS::DataColumn xData, PMS::Axis yAxis, PMS::DataColumn yData,