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::FileBox Class Reference

#include <FileBox.qo.h>

Inheritance diagram for casa::FileBox:

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

Public Member Functions

 FileBox (QtDisplayPanel *qdp)
 
 ~FileBox ()
 

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)
 
bool chanAllowed (const double, const double)
 
bool polAllowed (const double, const double)
 

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 FileBox.qo.h.

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

handle single click to select a box

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

handle switch display axis

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

use a different color

void casa::FileBox::deleteAll ( )
protectedslot

delete all masks

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

the work horse for all the edit commands

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

handle double click that announces a box is ready

void casa::FileBox::hideFileBox ( )
signal
void casa::FileBox::loadRegionFromFile ( )
protectedslot

load masks from a file

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

React to new region creation in display panel.

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

convert region to shape

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

create new box of this shape

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

save masks to a file

void casa::FileBox::showHelp ( )
protectedslot

show help text

void casa::FileBox::showHideAll ( )
protectedslot

toggle show or hide, but does not delete any

casacore::WCUnion* casa::FileBox::unfoldCompositeRegionToSimpleUnion ( const casacore::WCRegion *&  wcreg)
protected
void casa::FileBox::unfoldIntoSimpleRegionPtrs ( casacore::PtrBlock< const casacore::WCRegion * > &  outRegPtrs,
const casacore::WCRegion *&  wcreg 
)
protected
void casa::FileBox::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::FileBox::zPlaneChanged ( )
protectedslot

Member Data Documentation

RegionShape* casa::FileBox::activeShape
private

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

int casa::FileBox::cb
private

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

QLineEdit* casa::FileBox::chan
private

Definition at line 162 of file FileBox.qo.h.

QComboBox* casa::FileBox::color
private

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

QLineEdit* casa::FileBox::corr
private

Definition at line 163 of file FileBox.qo.h.

bool casa::FileBox::flash
private

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

QPushButton* casa::FileBox::load
private

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

int casa::FileBox::pIndex
private

Definition at line 151 of file FileBox.qo.h.

QtDisplayPanel* casa::FileBox::qdp_
private

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

DisplayData* casa::FileBox::regData
private

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

QPushButton* casa::FileBox::removeAll
private

Definition at line 159 of file FileBox.qo.h.

QPushButton* casa::FileBox::save
private

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

QPushButton* casa::FileBox::showHide
private

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

QGroupBox* casa::FileBox::tGroup
private

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

QTimer* casa::FileBox::timer
private

Definition at line 146 of file FileBox.qo.h.

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

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

casacore::String casa::FileBox::zAxis
private

Definition at line 152 of file FileBox.qo.h.

int casa::FileBox::zIndex
private

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


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