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

#include <MakeRegion.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, 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 hideRegionInImage ()

Public Member Functions

 MakeRegion (QtDisplayPanel *qdp)
 ~MakeRegion ()

Protected Slots

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

Detailed Description

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


Constructor & Destructor Documentation

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


Member Function Documentation

handle single click to select a box

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

handle switch display axis

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

use a different color

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

delete all masks

void casa::MakeRegion::deleteBox ( RegionShape ) [protected]
void casa::MakeRegion::deleteRegionFromImage ( ) [protected, slot]

delete region from the image

void casa::MakeRegion::doIt ( ) [protected, slot]

the work horse for all the edit commands

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

handle double click that announces a box is ready

void casa::MakeRegion::loadRegionFromImage ( ) [protected, slot]

load masks from the image

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

React to new region creation in display panel.

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

convert region to shape

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

create new box of this shape

void casa::MakeRegion::rotateBox ( int  cb) [protected]
void casa::MakeRegion::saveRegionToImage ( ) [protected, slot]

save masks to the image

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

show help text

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

toggle show or hide, but does not delete any

void casa::MakeRegion::showHideGroup ( ) [protected, slot]

toggle show or hide, but does not delete any

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

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

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

Member Data Documentation

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

int casa::MakeRegion::cb [private]

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

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

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

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

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

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

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

bool casa::MakeRegion::flash [private]

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

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

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

QLineEdit* casa::MakeRegion::name [private]

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

int casa::MakeRegion::pIndex [private]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

int casa::MakeRegion::zIndex [private]

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


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