casa
$Rev:20696$
|
Class for GUI binding - Casa C++ to Python and matplotlib. More...
#include <TablePlot.h>
Public Member Functions | |
TPGuiBinder (casa::TablePlot *intp) | |
Constructor. | |
~TPGuiBinder () | |
Destructor. | |
Bool | markregion (Int nrows, Int ncols, Int panel, casa::Vector< casa::Double > region) |
Gui callback to read in regions. | |
Bool | flagdata () |
Gui callback for flagdata. | |
Bool | unflagdata () |
Gui callback for unflagdata. | |
Bool | locatedata () |
Gui callback for locatedata. | |
Bool | iterplotnext () |
Gui callback for iterplotnext. | |
Bool | iterplotstop () |
Gui callback for iterplotstop. | |
Bool | clearplot () |
Gui callback for clearplot. | |
Bool | quit (Int closewindow) |
Gui callback for "Quit". | |
Private Attributes | |
casa::TablePlot * | itsTablePlot |
Class for GUI binding - Casa C++ to Python and matplotlib.
Public interface
Class for GUI binding
This class controls the actions to be performed by Plotter-specific buttons on the plotter matplotlib Gui. One global instance of this class is maintained, and is accessed from the Python-C++ binding functions defined in PlotterGlobals.cc
(See TablePlot.cc, PlotterGlobals.cc)
This class was written because the python/C++ binding had to be done as global functions, and they need access to the current TablePlot.
Definition at line 588 of file TablePlot.h.
casa::TPGuiBinder::TPGuiBinder | ( | casa::TablePlot * | intp | ) | [inline] |
casa::TPGuiBinder::~TPGuiBinder | ( | ) | [inline] |
Destructor.
Definition at line 596 of file TablePlot.h.
Bool casa::TPGuiBinder::clearplot | ( | ) | [inline] |
Gui callback for clearplot.
Currently not in use.
Definition at line 643 of file TablePlot.h.
References casa::TablePlot::clearPlot(), and itsTablePlot.
Bool casa::TPGuiBinder::flagdata | ( | ) | [inline] |
Gui callback for flagdata.
Bool ret = itsTablePlot->flagData(1);
Definition at line 603 of file TablePlot.h.
References itsTablePlot, and casa::TablePlot::locateData().
Bool casa::TPGuiBinder::iterplotnext | ( | ) | [inline] |
Gui callback for iterplotnext.
Definition at line 629 of file TablePlot.h.
References casa::TablePlot::changeGuiButtonState(), casa::TablePlot::iterMultiPlotNext(), itsTablePlot, and casa::True.
Bool casa::TPGuiBinder::iterplotstop | ( | ) | [inline] |
Gui callback for iterplotstop.
Currently not in use.
Definition at line 638 of file TablePlot.h.
References casa::TablePlot::iterMultiPlotStop(), and itsTablePlot.
Bool casa::TPGuiBinder::locatedata | ( | ) | [inline] |
Gui callback for locatedata.
Vector<String> clist; clist.resize(0); PtrBlock<Record*> INFO; Bool ret = itsTablePlot->locateData(clist, INFO);
for(Int i=0;i<(Int)INFO.nelements();i++) delete INFO[i]; INFO.resize(0);
Definition at line 615 of file TablePlot.h.
References itsTablePlot, and casa::TablePlot::locateData().
Bool casa::TPGuiBinder::markregion | ( | Int | nrows, |
Int | ncols, | ||
Int | panel, | ||
casa::Vector< casa::Double > | region | ||
) | [inline] |
Gui callback to read in regions.
Definition at line 598 of file TablePlot.h.
References itsTablePlot, and casa::TablePlot::markRegions().
Gui callback for "Quit".
Definition at line 647 of file TablePlot.h.
References itsTablePlot, and casa::TablePlot::resetTP().
Bool casa::TPGuiBinder::unflagdata | ( | ) | [inline] |
Gui callback for unflagdata.
Bool ret = itsTablePlot->flagData(0);
Definition at line 609 of file TablePlot.h.
References itsTablePlot, and casa::TablePlot::locateData().
casa::TablePlot* casa::TPGuiBinder::itsTablePlot [private] |
Definition at line 652 of file TablePlot.h.
Referenced by clearplot(), flagdata(), iterplotnext(), iterplotstop(), locatedata(), markregion(), quit(), TPGuiBinder(), and unflagdata().