casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes | List of all members
casa::MakeMask Class Reference

#include <MakeMask.qo.h>

Inheritance diagram for casa::MakeMask:

Public Slots

void drawRegion (casacore::Record mousereg, WorldCanvasHolder *wch)
 handle double click that announces a box is ready More...
 
void newRegion_ (casacore::String imgFilename)
 React to new region creation in display panel. More...
 
void changeAxis (casacore::String, casacore::String, casacore::String, std::vector< int >)
 handle switch display axis More...
 
void activate (casacore::Record)
 handle single click to select a box More...
 
void wcChanged (const casacore::String, const casacore::Vector< double >, const casacore::Vector< double >)
 this is not used, it emits for any wc change, too often More...
 
virtual void closeEvent (QCloseEvent *event)
 

Signals

void hideRegionInFile ()
 

Public Member Functions

 MakeMask (QtDisplayPanel *qdp)
 
 ~MakeMask ()
 

Protected Slots

void loadRegionFromFile ()
 load masks from a file More...
 
void saveRegionToFile ()
 save masks to a file More...
 
void deleteAll ()
 delete all masks More...
 
void showHideAll ()
 toggle show or hide, but does not delete any More...
 
void colorAll (const QString &)
 use a different color More...
 
void doIt ()
 the work horse for all the edit commands More...
 
void showHelp ()
 show help text More...
 
void reShape (const QString &)
 create new box of this shape More...
 
void zPlaneChanged ()
 
void pPlaneChanged ()
 

Protected Member Functions

void rotateBox (int cb)
 
void addBox (RegionShape *)
 
void deleteBox (RegionShape *)
 
void reDraw ()
 
void addRegionsToShape (RSComposite *&theShapes, const casacore::WCRegion *&wcreg)
 
casacore::WCUnionunfoldCompositeRegionToSimpleUnion (const casacore::WCRegion *&wcreg)
 
void unfoldIntoSimpleRegionPtrs (casacore::PtrBlock< const casacore::WCRegion * > &outRegPtrs, const casacore::WCRegion *&wcreg)
 
RSCompositeregionToShape (QtDisplayData *qdd, const casacore::ImageRegion *wcreg)
 convert region to shape More...
 
bool planeAllowed (casacore::String, casacore::String)
 

Private Attributes

QtDisplayPanelqdp_
 
casacore::PtrBlock< const
casacore::ImageRegion * > 
unionRegions_p
 
DisplayDataregData
 
RegionShapeactiveShape
 
QTimer * timer
 
bool flash
 
int cb
 
int zIndex
 
int pIndex
 
casacore::String zAxis
 
QGroupBox * tGroup
 
QPushButton * load
 
QPushButton * save
 
QPushButton * showHide
 
QPushButton * removeAll
 
QComboBox * color
 
QLineEdit * chan
 
QLineEdit * corr
 

Detailed Description

Definition at line 55 of file MakeMask.qo.h.

Constructor & Destructor Documentation

casa::MakeMask::MakeMask ( QtDisplayPanel qdp)
casa::MakeMask::~MakeMask ( )
inline

Definition at line 62 of file MakeMask.qo.h.

Member Function Documentation

void casa::MakeMask::activate ( casacore::Record  )
slot

handle single click to select a box

void casa::MakeMask::addBox ( RegionShape )
protected
void casa::MakeMask::addRegionsToShape ( RSComposite *&  theShapes,
const casacore::WCRegion *&  wcreg 
)
protected
void casa::MakeMask::changeAxis ( casacore::String  ,
casacore::String  ,
casacore::String  ,
std::vector< int >   
)
slot

handle switch display axis

virtual void casa::MakeMask::closeEvent ( QCloseEvent *  event)
virtualslot
void casa::MakeMask::colorAll ( const QString &  )
protectedslot

use a different color

void casa::MakeMask::deleteAll ( )
protectedslot

delete all masks

void casa::MakeMask::deleteBox ( RegionShape )
protected
void casa::MakeMask::doIt ( )
protectedslot

the work horse for all the edit commands

void casa::MakeMask::drawRegion ( casacore::Record  mousereg,
WorldCanvasHolder wch 
)
slot

handle double click that announces a box is ready

void casa::MakeMask::hideRegionInFile ( )
signal
void casa::MakeMask::loadRegionFromFile ( )
protectedslot

load masks from a file

void casa::MakeMask::newRegion_ ( casacore::String  imgFilename)
slot

React to new region creation in display panel.

bool casa::MakeMask::planeAllowed ( casacore::String  ,
casacore::String   
)
protected
void casa::MakeMask::pPlaneChanged ( )
protectedslot
void casa::MakeMask::reDraw ( )
protected
RSComposite* casa::MakeMask::regionToShape ( QtDisplayData qdd,
const casacore::ImageRegion wcreg 
)
protected

convert region to shape

void casa::MakeMask::reShape ( const QString &  )
protectedslot

create new box of this shape

void casa::MakeMask::rotateBox ( int  cb)
protected
void casa::MakeMask::saveRegionToFile ( )
protectedslot

save masks to a file

void casa::MakeMask::showHelp ( )
protectedslot

show help text

void casa::MakeMask::showHideAll ( )
protectedslot

toggle show or hide, but does not delete any

casacore::WCUnion* casa::MakeMask::unfoldCompositeRegionToSimpleUnion ( const casacore::WCRegion *&  wcreg)
protected
void casa::MakeMask::unfoldIntoSimpleRegionPtrs ( casacore::PtrBlock< const casacore::WCRegion * > &  outRegPtrs,
const casacore::WCRegion *&  wcreg 
)
protected
void casa::MakeMask::wcChanged ( const casacore::String  ,
const casacore::Vector< double >  ,
const casacore::Vector< double >   
)
slot

this is not used, it emits for any wc change, too often

void casa::MakeMask::zPlaneChanged ( )
protectedslot

Member Data Documentation

RegionShape* casa::MakeMask::activeShape
private

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

int casa::MakeMask::cb
private

Definition at line 147 of file MakeMask.qo.h.

QLineEdit* casa::MakeMask::chan
private

Definition at line 160 of file MakeMask.qo.h.

QComboBox* casa::MakeMask::color
private

Definition at line 158 of file MakeMask.qo.h.

QLineEdit* casa::MakeMask::corr
private

Definition at line 161 of file MakeMask.qo.h.

bool casa::MakeMask::flash
private

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

QPushButton* casa::MakeMask::load
private

Definition at line 154 of file MakeMask.qo.h.

int casa::MakeMask::pIndex
private

Definition at line 149 of file MakeMask.qo.h.

QtDisplayPanel* casa::MakeMask::qdp_
private

Definition at line 137 of file MakeMask.qo.h.

DisplayData* casa::MakeMask::regData
private

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

QPushButton* casa::MakeMask::removeAll
private

Definition at line 157 of file MakeMask.qo.h.

QPushButton* casa::MakeMask::save
private

Definition at line 155 of file MakeMask.qo.h.

QPushButton* casa::MakeMask::showHide
private

Definition at line 156 of file MakeMask.qo.h.

QGroupBox* casa::MakeMask::tGroup
private

Definition at line 153 of file MakeMask.qo.h.

QTimer* casa::MakeMask::timer
private

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

casacore::PtrBlock<const casacore::ImageRegion*> casa::MakeMask::unionRegions_p
private

Definition at line 139 of file MakeMask.qo.h.

casacore::String casa::MakeMask::zAxis
private

Definition at line 150 of file MakeMask.qo.h.

int casa::MakeMask::zIndex
private

Definition at line 148 of file MakeMask.qo.h.


The documentation for this class was generated from the following file: