casa
$Rev:20696$
|
#include <MsPlotConvert.h>
Public Member Functions | |
MSPlotConvertElevation (MSDerivedValues *derived, ROMSColumns *columns, Bool onXaxis) | |
Constructor. | |
~MSPlotConvertElevation () | |
Destructor. | |
Double | Xconvert (Double x, Int row, Int tblNum) |
Conversion along the Xaxis. | |
Double | Yconvert (Double y, Int row, Int tblNum) |
Conversion along the Yaxis. | |
Protected Member Functions | |
Double | findValue (Double value, Int row) |
Private Attributes | |
Bool | convertOnX |
Variables. | |
MSDerivedValues * | itsMsDerived |
Int | curFieldId |
Int | lastFieldId |
Vector< Int > | itsFieldIds |
ROMSColumns * | itsColumns |
SLog * | log |
Message logger. | |
uInt | numPlotted |
A counter for messaging. | |
Static Private Attributes | |
static const String | clname |
Definition at line 330 of file MsPlotConvert.h.
casa::MSPlotConvertElevation::MSPlotConvertElevation | ( | MSDerivedValues * | derived, |
ROMSColumns * | columns, | ||
Bool | onXaxis | ||
) | [inline] |
Constructor.
Determine wether the converted value is along the x or y axis.
Store the data bits we need. We could get away with keeping less info around. It's the old speed versus space trade of.
We keep track of the lastFieldId seen by these class. This saves us some calculation time, if the current one is the same as the last we use the stored value rather then recalculate.
Definition at line 334 of file MsPlotConvert.h.
References clname, convertOnX, casa::ROMSMainColumns::fieldId(), casa::SLog::FnEnter(), casa::SLog::FnExit(), casa::ROScalarColumn< T >::getColumn(), itsColumns, itsFieldIds, itsMsDerived, lastFieldId, log, numPlotted, and casa::SLog::slog().
casa::MSPlotConvertElevation::~MSPlotConvertElevation | ( | ) | [inline] |
Destructor.
Definition at line 363 of file MsPlotConvert.h.
References clname, casa::SLog::FnEnter(), casa::SLog::FnExit(), and log.
Definition at line 450 of file MsPlotConvert.h.
References casa::MSDerivedValues::azel(), CASA_MPC_DBG_FREQ, clname, curFieldId, casa::ROMSColumns::field(), casa::SLog::FnEnter(), casa::SLog::FnExit(), casa::MDirection::getAngle(), casa::ROScalarColumn< T >::getColumn(), casa::Quantum< Qtype >::getValue(), itsColumns, itsFieldIds, itsMsDerived, lastFieldId, log, numPlotted, casa::ROMSFieldColumns::numPoly(), casa::SLog::out(), casa::ROMSFieldColumns::phaseDirMeas(), casa::MSDerivedValues::setEpoch(), casa::MSDerivedValues::setFieldCenter(), casa::LogMessage::SEVERE, String, casa::vpf::toString(), casa::String::toString(), and casa::True.
Referenced by Xconvert(), and Yconvert().
Conversion along the Xaxis.
cout << "NUM PLOTTED: " << numPlotted << endl; cout << "mod value is: " << numPlotted % CASA_MPC_DBG_FREQ << endl;
cout << "SENDING LOG MESSAGE" << endl;
Should never get here, and exception occurs in logMessage()
Reimplemented from casa::TPConvertBase.
Definition at line 371 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, convertOnX, casa::LogMessage::DEBUG1, findValue(), casa::SLog::FnEnter(), casa::SLog::FnExit(), itsFieldIds, log, casa::ArrayBase::nelements(), numPlotted, casa::SLog::out(), casa::LogMessage::SEVERE, String, casa::vpf::toString(), casa::String::toString(), and casa::True.
Conversion along the Yaxis.
cout << "NUM PLOTTED: " << numPlotted << endl; cout << "mod value is: " << numPlotted % CASA_MPC_DBG_FREQ << endl;
cout << "SENDING LOG MESSAGE" << endl;
Should never get here, and exception occurs in logMessage()
Reimplemented from casa::TPConvertBase.
Definition at line 411 of file MsPlotConvert.h.
References CASA_MPC_DBG_FREQ, clname, convertOnX, casa::LogMessage::DEBUG1, findValue(), casa::SLog::FnEnter(), casa::SLog::FnExit(), itsFieldIds, log, casa::ArrayBase::nelements(), numPlotted, casa::SLog::out(), casa::LogMessage::SEVERE, String, casa::vpf::toString(), casa::String::toString(), and casa::True.
const String casa::MSPlotConvertElevation::clname [static, private] |
Definition at line 495 of file MsPlotConvert.h.
Referenced by findValue(), MSPlotConvertElevation(), Xconvert(), Yconvert(), and ~MSPlotConvertElevation().
Bool casa::MSPlotConvertElevation::convertOnX [private] |
Variables.
Definition at line 487 of file MsPlotConvert.h.
Referenced by MSPlotConvertElevation(), Xconvert(), and Yconvert().
Int casa::MSPlotConvertElevation::curFieldId [private] |
Definition at line 489 of file MsPlotConvert.h.
Referenced by findValue().
Definition at line 491 of file MsPlotConvert.h.
Referenced by findValue(), and MSPlotConvertElevation().
Vector<Int> casa::MSPlotConvertElevation::itsFieldIds [private] |
Definition at line 490 of file MsPlotConvert.h.
Referenced by findValue(), MSPlotConvertElevation(), Xconvert(), and Yconvert().
Definition at line 488 of file MsPlotConvert.h.
Referenced by findValue(), and MSPlotConvertElevation().
Int casa::MSPlotConvertElevation::lastFieldId [private] |
Definition at line 489 of file MsPlotConvert.h.
Referenced by findValue(), and MSPlotConvertElevation().
SLog* casa::MSPlotConvertElevation::log [private] |
Message logger.
Definition at line 494 of file MsPlotConvert.h.
Referenced by findValue(), MSPlotConvertElevation(), Xconvert(), Yconvert(), and ~MSPlotConvertElevation().
uInt casa::MSPlotConvertElevation::numPlotted [private] |
A counter for messaging.
We really don't need to display millions of messages for debugging purposes. This seems to slow things down a lot if we do anyway -- even if they aren't printed to the logger.
Definition at line 500 of file MsPlotConvert.h.
Referenced by findValue(), MSPlotConvertElevation(), Xconvert(), and Yconvert().