casa  $Rev:20696$
Public Member Functions | Private Member Functions | Private Attributes
casa::PlotCalCallBacks Class Reference

#include <PlotCalHooks.h>

Inheritance diagram for casa::PlotCalCallBacks:
casa::TPGuiCallBackHooks

List of all members.

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< StringfieldNames_p
Vector< StringantNames_p
Vector< IntspwIds_p
Bool isNCT_p

Detailed Description

Definition at line 68 of file PlotCalHooks.h.


Constructor & Destructor Documentation

casa::PlotCalCallBacks::PlotCalCallBacks ( Record  metainfo,
Bool  isNCT 
) [inline]

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.


Member Function Documentation

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.


Member Data Documentation

Definition at line 196 of file PlotCalHooks.h.

Referenced by createiterplotlabels(), PlotCalCallBacks(), and printlocateinfo().

Definition at line 192 of file PlotCalHooks.h.

Referenced by createiterplotlabels(), PlotCalCallBacks(), and printlocateinfo().

Definition at line 199 of file PlotCalHooks.h.

Definition at line 197 of file PlotCalHooks.h.

Referenced by createiterplotlabels(), PlotCalCallBacks(), and printlocateinfo().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines