casa::QtCleanPanelGui2 Class Reference

#include <QtCleanPanelGui2.qo.h>

Inheritance diagram for casa::QtCleanPanelGui2:
casa::QtDisplayPanelGui casa::QtPanelBase casa::viewer::StatusSink

List of all members.

Signals

void interact (QVariant)

Public Member Functions

 ~QtCleanPanelGui2 ()
bool supports (SCRIPTING_OPTION option) const
QVariant start_interact (const QVariant &input, int id)
QVariant setoptions (const QMap< QString, QVariant > &input, int id)
void addedData (QString type, QtDisplayData *)
 the QtDBusViewerAdaptor can handle loading & registering data itself, but to connect up extra functionality, the upper-level QtDisplayPanelGui (or in the current case, the derived QtCleanPanelGui2) would have to be notified that data has been added.

Protected Slots

virtual void exitStop ()
virtual void exitDone ()
virtual void exitNoMore ()
virtual void newMouseRegion (Record mouseRegion, WorldCanvasHolder *wch)
 Connected to the rectangle region mouse tools new rectangle signal.
virtual void changeMaskAxis (String, String, String, std::vector< int >)
virtual void changeImageAxis (String, String, String, std::vector< int >)
virtual void changeMaskSelectionText (String x, String y, String z)

Protected Member Functions

 QtCleanPanelGui2 (QtViewer *v, QWidget *parent=0, const std::list< std::string > &args=std::list< std::string >())
void closeEvent (QCloseEvent *event)
 scripted (via dbus) panels should override the closeEvent( ) and hide the gui instead of deleting it when it was created via a dbus script.

Protected Attributes

std::list< QWidget * > disabled_widgets
QRadioButton * addRB_
QRadioButton * eraseRB_
QRadioButton * allChanRB_
QRadioButton * thisPlaneRB_
QRadioButton * allHiddenRB_
QRadioButton * thisHiddenRB_
QPushButton * maskNoMorePB_
QPushButton * maskDonePB_
QPushButton * stopPB_
QLineEdit * niterED_
QLineEdit * cycleniterED_
QLineEdit * threshED_
QLineEdit * cyclethreshED_
Record buttonState_
QPalette default_palette
 standard palette.
QPalette input_palette
 palette used when input is expected for clean.

Private Member Functions

void writeRegionText (const ImageRegion &imageReg, const String &filename, Float value)

Private Attributes

bool in_interact_mode
int interact_id
QtDisplayDataimagedd_
QtDisplayDatamaskdd_
std::string axis_change
DisplayCoordinateSystem csys_p
DirectionCoordinate dirCoord_p

Friends

class QtViewer

Detailed Description

Synopsis

Demo class to encapsulate 'serial' running of qtviewer into callable methods of a class; this example also applies it to the task of interactive selection of CLEAN boxes.

Definition at line 63 of file QtCleanPanelGui2.qo.h.


Constructor & Destructor Documentation

casa::QtCleanPanelGui2::QtCleanPanelGui2 ( QtViewer v,
QWidget *  parent = 0,
const std::list< std::string > &  args = std::list< std::string >() 
) [protected]
casa::QtCleanPanelGui2::~QtCleanPanelGui2 (  ) 

Member Function Documentation

void casa::QtCleanPanelGui2::addedData ( QString  type,
QtDisplayData  
) [virtual]

the QtDBusViewerAdaptor can handle loading & registering data itself, but to connect up extra functionality, the upper-level QtDisplayPanelGui (or in the current case, the derived QtCleanPanelGui2) would have to be notified that data has been added.

This will allow it to set up the callbacks for drawing regions..\.

Reimplemented from casa::QtDisplayPanelGui.

virtual void casa::QtCleanPanelGui2::changeImageAxis ( String  ,
String  ,
String  ,
std::vector< int >   
) [protected, virtual, slot]
virtual void casa::QtCleanPanelGui2::changeMaskAxis ( String  ,
String  ,
String  ,
std::vector< int >   
) [protected, virtual, slot]
virtual void casa::QtCleanPanelGui2::changeMaskSelectionText ( String  x,
String  y,
String  z 
) [protected, virtual, slot]
void casa::QtCleanPanelGui2::closeEvent ( QCloseEvent *  event  )  [protected]

scripted (via dbus) panels should override the closeEvent( ) and hide the gui instead of deleting it when it was created via a dbus script.

.\.

Reimplemented from casa::QtDisplayPanelGui.

virtual void casa::QtCleanPanelGui2::exitDone (  )  [protected, virtual, slot]
virtual void casa::QtCleanPanelGui2::exitNoMore (  )  [protected, virtual, slot]
virtual void casa::QtCleanPanelGui2::exitStop (  )  [protected, virtual, slot]
void casa::QtCleanPanelGui2::interact ( QVariant   )  [signal]
virtual void casa::QtCleanPanelGui2::newMouseRegion ( Record  mouseRegion,
WorldCanvasHolder wch 
) [protected, virtual, slot]

Connected to the rectangle region mouse tools new rectangle signal.

Accumulates [/ displays] selected boxes.

QVariant casa::QtCleanPanelGui2::setoptions ( const QMap< QString, QVariant > &  input,
int  id 
) [virtual]

Reimplemented from casa::QtDisplayPanelGui.

QVariant casa::QtCleanPanelGui2::start_interact ( const QVariant &  input,
int  id 
) [virtual]

Reimplemented from casa::QtDisplayPanelGui.

bool casa::QtCleanPanelGui2::supports ( SCRIPTING_OPTION  option  )  const [virtual]

Reimplemented from casa::QtDisplayPanelGui.

void casa::QtCleanPanelGui2::writeRegionText ( const ImageRegion &  imageReg,
const String &  filename,
Float  value 
) [private]

Friends And Related Function Documentation

friend class QtViewer [friend]

Reimplemented from casa::QtDisplayPanelGui.

Definition at line 71 of file QtCleanPanelGui2.qo.h.


Member Data Documentation

QRadioButton* casa::QtCleanPanelGui2::addRB_ [protected]

Definition at line 114 of file QtCleanPanelGui2.qo.h.

QRadioButton* casa::QtCleanPanelGui2::allChanRB_ [protected]

Definition at line 116 of file QtCleanPanelGui2.qo.h.

QRadioButton* casa::QtCleanPanelGui2::allHiddenRB_ [protected]

Definition at line 118 of file QtCleanPanelGui2.qo.h.

std::string casa::QtCleanPanelGui2::axis_change [private]

Definition at line 142 of file QtCleanPanelGui2.qo.h.

Definition at line 127 of file QtCleanPanelGui2.qo.h.

Definition at line 144 of file QtCleanPanelGui2.qo.h.

QLineEdit* casa::QtCleanPanelGui2::cycleniterED_ [protected]

Definition at line 124 of file QtCleanPanelGui2.qo.h.

Definition at line 126 of file QtCleanPanelGui2.qo.h.

standard palette.

.\.

Definition at line 130 of file QtCleanPanelGui2.qo.h.

DirectionCoordinate casa::QtCleanPanelGui2::dirCoord_p [private]

Definition at line 145 of file QtCleanPanelGui2.qo.h.

std::list<QWidget*> casa::QtCleanPanelGui2::disabled_widgets [protected]

Definition at line 112 of file QtCleanPanelGui2.qo.h.

QRadioButton* casa::QtCleanPanelGui2::eraseRB_ [protected]

Definition at line 115 of file QtCleanPanelGui2.qo.h.

Definition at line 140 of file QtCleanPanelGui2.qo.h.

Definition at line 135 of file QtCleanPanelGui2.qo.h.

palette used when input is expected for clean.

.\.

Definition at line 132 of file QtCleanPanelGui2.qo.h.

Definition at line 136 of file QtCleanPanelGui2.qo.h.

Definition at line 141 of file QtCleanPanelGui2.qo.h.

QPushButton* casa::QtCleanPanelGui2::maskDonePB_ [protected]

Definition at line 121 of file QtCleanPanelGui2.qo.h.

QPushButton* casa::QtCleanPanelGui2::maskNoMorePB_ [protected]

Definition at line 120 of file QtCleanPanelGui2.qo.h.

QLineEdit* casa::QtCleanPanelGui2::niterED_ [protected]

Definition at line 123 of file QtCleanPanelGui2.qo.h.

QPushButton* casa::QtCleanPanelGui2::stopPB_ [protected]

Definition at line 122 of file QtCleanPanelGui2.qo.h.

QRadioButton* casa::QtCleanPanelGui2::thisHiddenRB_ [protected]

Definition at line 119 of file QtCleanPanelGui2.qo.h.

QRadioButton* casa::QtCleanPanelGui2::thisPlaneRB_ [protected]

Definition at line 117 of file QtCleanPanelGui2.qo.h.

QLineEdit* casa::QtCleanPanelGui2::threshED_ [protected]

Definition at line 125 of file QtCleanPanelGui2.qo.h.


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

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1