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

#include <MakeRegion.qo.h>

Inheritance diagram for casa::MakeRegion:

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, 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 hideRegionInImage ()
 

Public Member Functions

 MakeRegion (QtDisplayPanel *qdp)
 
 ~MakeRegion ()
 

Protected Slots

void loadRegionFromImage ()
 load masks from the image More...
 
void saveRegionToImage ()
 save masks to the image More...
 
void deleteRegionFromImage ()
 delete region from the image More...
 
void deleteAll ()
 delete all masks More...
 
void showHideAll ()
 toggle show or hide, but does not delete any More...
 
void showHideGroup ()
 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 * removeAll
 
QMenu * showHideMenu
 
QPushButton * showHide
 
QComboBox * color
 
QLineEdit * chan
 
QLineEdit * corr
 
QLineEdit * name
 
QPushButton * load
 
QPushButton * save
 

Detailed Description

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

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

handle single click to select a box

void casa::MakeRegion::addBox ( RegionShape )
protected
void casa::MakeRegion::addRegionsToShape ( RSComposite *&  theShapes,
const casacore::WCRegion *&  wcreg 
)
protected
void casa::MakeRegion::changeAxis ( casacore::String  ,
casacore::String  ,
casacore::String  ,
int   
)
slot

handle switch display axis

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

use a different color

void casa::MakeRegion::deleteAll ( )
protectedslot

delete all masks

void casa::MakeRegion::deleteBox ( RegionShape )
protected
void casa::MakeRegion::deleteRegionFromImage ( )
protectedslot

delete region from the image

void casa::MakeRegion::doIt ( )
protectedslot

the work horse for all the edit commands

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

handle double click that announces a box is ready

void casa::MakeRegion::hideRegionInImage ( )
signal
void casa::MakeRegion::loadRegionFromImage ( )
protectedslot

load masks from the image

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

React to new region creation in display panel.

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

convert region to shape

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

create new box of this shape

void casa::MakeRegion::rotateBox ( int  cb)
protected
void casa::MakeRegion::saveRegionToImage ( )
protectedslot

save masks to the image

void casa::MakeRegion::showHelp ( )
protectedslot

show help text

void casa::MakeRegion::showHideAll ( )
protectedslot

toggle show or hide, but does not delete any

void casa::MakeRegion::showHideGroup ( )
protectedslot

toggle show or hide, but does not delete any

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

Member Data Documentation

RegionShape* casa::MakeRegion::activeShape
private

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

int casa::MakeRegion::cb
private

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

QLineEdit* casa::MakeRegion::chan
private

Definition at line 164 of file MakeRegion.qo.h.

QComboBox* casa::MakeRegion::color
private

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

QLineEdit* casa::MakeRegion::corr
private

Definition at line 165 of file MakeRegion.qo.h.

bool casa::MakeRegion::flash
private

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

QPushButton* casa::MakeRegion::load
private

Definition at line 167 of file MakeRegion.qo.h.

QLineEdit* casa::MakeRegion::name
private

Definition at line 166 of file MakeRegion.qo.h.

int casa::MakeRegion::pIndex
private

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

QtDisplayPanel* casa::MakeRegion::qdp_
private

Definition at line 143 of file MakeRegion.qo.h.

DisplayData* casa::MakeRegion::regData
private

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

QPushButton* casa::MakeRegion::removeAll
private

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

QPushButton* casa::MakeRegion::save
private

Definition at line 168 of file MakeRegion.qo.h.

QPushButton* casa::MakeRegion::showHide
private

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

QMenu* casa::MakeRegion::showHideMenu
private

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

QGroupBox* casa::MakeRegion::tGroup
private

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

QTimer* casa::MakeRegion::timer
private

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

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

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

casacore::String casa::MakeRegion::zAxis
private

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

int casa::MakeRegion::zIndex
private

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


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