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

Class for GUI binding - Casa C++ to Python and matplotlib. More...

#include <TablePlot.h>

List of all members.

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::TablePlotitsTablePlot

Detailed Description

Class for GUI binding - Casa C++ to Python and matplotlib.

Intended use:

Public interface

Prerequisite

Etymology

Class for GUI binding

Synopsis

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

Example

(See TablePlot.cc, PlotterGlobals.cc)

Motivation

This class was written because the python/C++ binding had to be done as global functions, and they need access to the current TablePlot.

Template Type Argument Requirements (T)

Thrown Exceptions

Definition at line 588 of file TablePlot.h.


Constructor & Destructor Documentation

casa::TPGuiBinder::TPGuiBinder ( casa::TablePlot intp) [inline]

Constructor.

Definition at line 592 of file TablePlot.h.

References itsTablePlot.

casa::TPGuiBinder::~TPGuiBinder ( ) [inline]

Destructor.

Definition at line 596 of file TablePlot.h.


Member Function Documentation

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().

Bool casa::TPGuiBinder::quit ( Int  closewindow) [inline]

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().


Member Data Documentation


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