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

#include <FileBox.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 hideFileBox ()

Public Member Functions

 FileBox (QtDisplayPanel *qdp)
 ~FileBox ()

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

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


Constructor & Destructor Documentation

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


Member Function Documentation

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

handle single click to select a box

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

handle switch display axis

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

use a different color

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

delete all masks

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

the work horse for all the edit commands

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

handle double click that announces a box is ready

void casa::FileBox::hideFileBox ( ) [signal]
void casa::FileBox::loadRegionFromFile ( ) [protected, slot]

load masks from a file

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

React to new region creation in display panel.

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

convert region to shape

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

create new box of this shape

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

save masks to a file

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

show help text

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

toggle show or hide, but does not delete any

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

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

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

Member Data Documentation

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

int casa::FileBox::cb [private]

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

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

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

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

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

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

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

bool casa::FileBox::flash [private]

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

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

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

int casa::FileBox::pIndex [private]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

int casa::FileBox::zIndex [private]

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


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