casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes
casa::MakeMask Class Reference

#include <MakeMask.qo.h>

List of all members.

Public Slots

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

Signals

void hideRegionInFile ()

Public Member Functions

 MakeMask (QtDisplayPanel *qdp)
 ~MakeMask ()

Protected Slots

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

Protected Member Functions

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

Private Attributes

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

Detailed Description

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


Constructor & Destructor Documentation

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


Member Function Documentation

void casa::MakeMask::activate ( Record  ) [slot]

handle single click to select a box

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

handle switch display axis

virtual void casa::MakeMask::closeEvent ( QCloseEvent *  event) [virtual, slot]
void casa::MakeMask::colorAll ( const QString &  ) [protected, slot]

use a different color

void casa::MakeMask::deleteAll ( ) [protected, slot]

delete all masks

void casa::MakeMask::deleteBox ( RegionShape ) [protected]
void casa::MakeMask::doIt ( ) [protected, slot]

the work horse for all the edit commands

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

handle double click that announces a box is ready

void casa::MakeMask::loadRegionFromFile ( ) [protected, slot]

load masks from a file

void casa::MakeMask::newRegion_ ( String  imgFilename) [slot]

React to new region creation in display panel.

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

convert region to shape

void casa::MakeMask::reShape ( const QString &  ) [protected, slot]

create new box of this shape

void casa::MakeMask::rotateBox ( int  cb) [protected]
void casa::MakeMask::saveRegionToFile ( ) [protected, slot]

save masks to a file

void casa::MakeMask::showHelp ( ) [protected, slot]

show help text

void casa::MakeMask::showHideAll ( ) [protected, slot]

toggle show or hide, but does not delete any

void casa::MakeMask::unfoldIntoSimpleRegionPtrs ( PtrBlock< const WCRegion * > &  outRegPtrs,
const WCRegion *&  wcreg 
) [protected]
void casa::MakeMask::wcChanged ( const String  ,
const Vector< Double ,
const Vector< Double  
) [slot]

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

void casa::MakeMask::zPlaneChanged ( ) [protected, slot]

Member Data Documentation

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

int casa::MakeMask::cb [private]

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

QLineEdit* casa::MakeMask::chan [private]

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

QComboBox* casa::MakeMask::color [private]

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

QLineEdit* casa::MakeMask::corr [private]

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

bool casa::MakeMask::flash [private]

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

QPushButton* casa::MakeMask::load [private]

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

int casa::MakeMask::pIndex [private]

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

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

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

QPushButton* casa::MakeMask::removeAll [private]

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

QPushButton* casa::MakeMask::save [private]

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

QPushButton* casa::MakeMask::showHide [private]

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

QGroupBox* casa::MakeMask::tGroup [private]

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

QTimer* casa::MakeMask::timer [private]

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

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

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

int casa::MakeMask::zIndex [private]

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


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