casa
$Rev:20696$
|
#include <PlotCalHooks.h>
Public Member Functions | |
PlotCalCallBacks (Record metainfo, Bool isNCT) | |
~PlotCalCallBacks () | |
casa::Bool | flagdata (String tablename) |
After the standard TP flagdata function, this method is called (per BasePlot/Table) so any external flag-propagation can be carried out Called from TablePlot::flagData. | |
casa::Bool | releasetable (Int nrows, Int ncols, Int panel, String tablename) |
During the standard TP clearPlot, this function is called immediately after each BasePlot destructor. | |
casa::Bool | createiterplotlabels (Vector< String > iteraxes, Vector< Double > values, String &titleString) |
A function to allow the creation of customized labels for iteration plot panels. | |
casa::Bool | printlocateinfo (Vector< String > collist, Matrix< Double > infomat, Vector< String > cpol) |
After the standard TP Locate function call, this method is called during printing the results, to accomodate custom formatting. | |
Private Member Functions | |
String | CDIcol () |
Private Attributes | |
Vector< String > | fieldNames_p |
Vector< String > | antNames_p |
Vector< Int > | spwIds_p |
Bool | isNCT_p |
Definition at line 68 of file PlotCalHooks.h.
cout << "fieldNames_p = " << fieldNames_p << endl; cout << "antNames_p = " << antNames_p << endl; cout << "spwIds_p = " << spwIds_p << endl;
Definition at line 71 of file PlotCalHooks.h.
References antNames_p, casa::RecordInterface::asArrayInt(), casa::RecordInterface::asArrayString(), CDIcol(), fieldNames_p, casa::RecordInterface::isDefined(), casa::TPGuiCallBackHooks::LocateColumns, casa::Vector< T >::resize(), and spwIds_p.
casa::PlotCalCallBacks::~PlotCalCallBacks | ( | ) | [inline] |
Definition at line 96 of file PlotCalHooks.h.
String casa::PlotCalCallBacks::CDIcol | ( | ) | [inline, private] |
Definition at line 192 of file PlotCalHooks.h.
Referenced by createiterplotlabels(), and PlotCalCallBacks().
casa::Bool casa::PlotCalCallBacks::createiterplotlabels | ( | Vector< String > | iteraxes, |
Vector< Double > | values, | ||
String & | titlestring | ||
) | [inline, virtual] |
A function to allow the creation of customized labels for iteration plot panels.
Called from TablePlot::iterMultiPlotNext.
cout << "iteraxes = " << iteraxes << endl; cout << "values = " << values << endl;
cout << "titleString = " << titleString << endl;
Reimplemented from casa::TPGuiCallBackHooks.
Definition at line 111 of file PlotCalHooks.h.
References antNames_p, CDIcol(), casa::C::day, fieldNames_p, casa::ArrayBase::nelements(), spwIds_p, casa::MVTime::string(), casa::MVTime::TIME, casa::vpf::toString(), casa::String::toString(), and casa::True.
casa::Bool casa::PlotCalCallBacks::flagdata | ( | String | ) | [inline, virtual] |
After the standard TP flagdata function, this method is called (per BasePlot/Table) so any external flag-propagation can be carried out Called from TablePlot::flagData.
cout << "PlotCalCallBacks :: Completed flagging on : " << tablename << endl;
Reimplemented from casa::TPGuiCallBackHooks.
Definition at line 100 of file PlotCalHooks.h.
References casa::True.
casa::Bool casa::PlotCalCallBacks::printlocateinfo | ( | Vector< String > | collist, |
Matrix< Double > | infomat, | ||
Vector< String > | cpol | ||
) | [inline, virtual] |
After the standard TP Locate function call, this method is called during printing the results, to accomodate custom formatting.
Called from TablePlot::dumpLocateInfo(). The number of rows in the Matrix are the number of table rows selected by the locate regions. The Matrix (infomat) contains n+2 columns, where n = LocateColumns.nelements(). column 0 contains the row number. column 1 contains the number of points selected per row The rest of the columns are values for LocateColumns. The String (cpol) contains information about selected cellrows/cellcols. (chans/pols).
cout << "collist = " << collist << endl; cout << "infomat = " << infomat << endl; cout << "cpol = " << cpol << endl;
log << "Found the following calibration samples in the region:" << LogIO::POST;
Reimplemented from casa::TPGuiCallBackHooks.
Definition at line 149 of file PlotCalHooks.h.
References antNames_p, casa::C::day, fieldNames_p, casa::log(), casa::ArrayBase::nelements(), casa::LogIO::POST, casa::Matrix< T >::shape(), spwIds_p, casa::MVTime::string(), casa::True, and casa::MVTime::YMD.
casa::Bool casa::PlotCalCallBacks::releasetable | ( | Int | , |
Int | , | ||
Int | , | ||
String | |||
) | [inline, virtual] |
During the standard TP clearPlot, this function is called immediately after each BasePlot destructor.
Called from TablePlot::deleteBasePlot.
cout << "PlotCalCallBacks :: releasing " << tablename << " from panel " << nrows << "," <<ncols << "," << panel << endl;
Reimplemented from casa::TPGuiCallBackHooks.
Definition at line 105 of file PlotCalHooks.h.
References casa::True.
Vector<String> casa::PlotCalCallBacks::antNames_p [private] |
Definition at line 196 of file PlotCalHooks.h.
Referenced by createiterplotlabels(), PlotCalCallBacks(), and printlocateinfo().
Vector<String> casa::PlotCalCallBacks::fieldNames_p [private] |
Definition at line 192 of file PlotCalHooks.h.
Referenced by createiterplotlabels(), PlotCalCallBacks(), and printlocateinfo().
Bool casa::PlotCalCallBacks::isNCT_p [private] |
Definition at line 199 of file PlotCalHooks.h.
Vector<Int> casa::PlotCalCallBacks::spwIds_p [private] |
Definition at line 197 of file PlotCalHooks.h.
Referenced by createiterplotlabels(), PlotCalCallBacks(), and printlocateinfo().