Structural deformable models
|
#include <deform.h>
Public Types | |
enum | { ID_CANVAS =FXMainWindow::ID_LAST, ID_TEST, ID_LOAD, ID_OPENGL, ID_LAST } |
enum | { ID_CANVAS =FXMainWindow::ID_LAST, ID_TEST, ID_LOAD, ID_TIMEOUT, ID_OPENGL, ID_LAST, ID_EDSENS } |
Public Member Functions | |
long | onCanvasRepaint (FXObject *, FXSelector, void *) |
long | onLeftMouseClick (FXObject *, FXSelector, void *) |
long | onRightMouseClick (FXObject *, FXSelector, void *) |
long | onKeyPress (FXObject *, FXSelector, void *ptr) |
long | onKeyRelease (FXObject *, FXSelector, void *ptr) |
long | onCmdRestore (FXObject *, FXSelector, void *) |
long | onLoadImage (FXObject *, FXSelector, void *) |
long | onMouseDown (FXObject *, FXSelector, void *) |
long | onMouseUp (FXObject *, FXSelector, void *) |
long | onMouseMove (FXObject *, FXSelector, void *) |
long | onExpose (FXObject *, FXSelector, void *) |
long | onConfigure (FXObject *, FXSelector, void *) |
long | onCmdOpenGL (FXObject *, FXSelector, void *) |
void | drawScene () |
void | changeSpecies (const Species &s) |
void | setStatusText (const char *msg, bool append=false) |
ImageWindow (FXApp *a) | |
virtual void | create () |
FXbool | cmdline (int argc, char **argv) |
virtual | ~ImageWindow () |
long | onCanvasRepaint (FXObject *, FXSelector, void *) |
long | onLeftMouseClick (FXObject *, FXSelector, void *) |
long | onRightMouseClick (FXObject *, FXSelector, void *) |
long | onMouseMove (FXObject *, FXSelector, void *) |
long | onKeyPress (FXObject *, FXSelector, void *ptr) |
long | onKeyRelease (FXObject *, FXSelector, void *ptr) |
long | onCmdRestore (FXObject *, FXSelector, void *) |
long | onLoadImage (FXObject *, FXSelector, void *) |
long | onExpose (FXObject *, FXSelector, void *) |
long | onConfigure (FXObject *, FXSelector, void *) |
long | onCmdOpenGL (FXObject *, FXSelector, void *) |
long | onToggleSensorDlg (FXObject *, FXSelector, void *) |
long | onTimeout (FXObject *, FXSelector, void *) |
int | selectSensor (int sido) |
void | drawScene () |
void | setStatusText (const char *msg, bool append=false) |
ImageWindow (FXApp *a) | |
virtual void | create () |
FXbool | cmdline (int argc, char **argv) |
virtual | ~ImageWindow () |
Protected Member Functions | |
ImageWindow () | |
ImageWindow () | |
Definition at line 51 of file browser.cpp.
anonymous enum |
Enumerator | |
---|---|
ID_CANVAS | |
ID_TEST | |
ID_LOAD | |
ID_OPENGL | |
ID_LAST |
Definition at line 107 of file browser.cpp.
anonymous enum |
Enumerator | |
---|---|
ID_CANVAS | |
ID_TEST | |
ID_LOAD | |
ID_TIMEOUT | |
ID_OPENGL | |
ID_LAST | |
ID_EDSENS |
Definition at line 68 of file deform.h.
|
inlineprotected |
Definition at line 80 of file browser.cpp.
References setStatusText().
Referenced by main(), and setStatusText().
ImageWindow::ImageWindow | ( | FXApp * | a | ) |
Definition at line 175 of file browser.cpp.
References ID_CANVAS, ID_LOAD, and NULL.
|
virtual |
|
inlineprotected |
Definition at line 41 of file deform.h.
References drawScene(), ID_CANVAS, ID_LOAD, ID_TEST, onCanvasRepaint(), onCmdOpenGL(), onCmdRestore(), onConfigure(), onExpose(), onKeyPress(), onKeyRelease(), onLeftMouseClick(), onLoadImage(), onMouseMove(), onRightMouseClick(), onTimeout(), onToggleSensorDlg(), selectSensor(), and setStatusText().
ImageWindow::ImageWindow | ( | FXApp * | a | ) |
|
virtual |
void ImageWindow::changeSpecies | ( | const Species & | s | ) |
Definition at line 391 of file browser.cpp.
References drawScene(), SpeciesDB::getDirectory(), Species::getFlagString(), Species::getScale(), Dataset::load(), setStatusText(), and setTitle().
Referenced by create(), onKeyPress(), and onLoadImage().
FXbool ImageWindow::cmdline | ( | int | argc, |
char ** | argv | ||
) |
FXbool ImageWindow::cmdline | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 671 of file browser.cpp.
Referenced by main(), and onTimeout().
|
virtual |
|
virtual |
Definition at line 233 of file browser.cpp.
References changeSpecies(), SpeciesDB::load(), DBSelector::load(), and setStatusText().
Referenced by setStatusText().
void ImageWindow::drawScene | ( | ) |
void ImageWindow::drawScene | ( | ) |
Definition at line 309 of file browser.cpp.
References Dataset::draw(), Dataset::getDim1Size(), Dataset::getDim2Size(), and Dataset::initialized().
Referenced by changeSpecies(), ImageWindow(), onExpose(), onKeyPress(), and setStatusText().
long ImageWindow::onCanvasRepaint | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onCanvasRepaint | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
long ImageWindow::onCmdOpenGL | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onCmdOpenGL | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 361 of file browser.cpp.
Referenced by ImageWindow(), and setStatusText().
long ImageWindow::onCmdRestore | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onCmdRestore | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Referenced by ImageWindow().
long ImageWindow::onConfigure | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onConfigure | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 292 of file browser.cpp.
Referenced by ImageWindow(), and setStatusText().
long ImageWindow::onExpose | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onExpose | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 303 of file browser.cpp.
References drawScene().
Referenced by ImageWindow(), and setStatusText().
long ImageWindow::onKeyPress | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
long ImageWindow::onKeyPress | ( | FXObject * | obj, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 415 of file browser.cpp.
References dmutil::abs(), changeSpecies(), Species::DEL, drawScene(), Species::FLIPPED, DBSelector::getCurSpecies(), Dataset::getDim1Size(), Dataset::getDim2Size(), SpeciesDB::getDirectory(), Dataset::getImage(), Sensor::getMValue(), Species::id, Clusterer< D >::iterateClassification(), Clusterer< D >::m_Classes, Clusterer< D >::m_Elements, DBSelector::nextSelection(), DBSelector::nextSelector(), Species::SCALE, Species::SEL1, Species::SEL2, Species::SEL3, Species::SEL4, Species::SEL5, and CElement< D >::val.
Referenced by ImageWindow(), and onToggleSensorDlg().
long ImageWindow::onKeyRelease | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
long ImageWindow::onKeyRelease | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 598 of file browser.cpp.
Referenced by ImageWindow(), and selectSensor().
long ImageWindow::onLeftMouseClick | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onLeftMouseClick | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 613 of file browser.cpp.
References Dataset::getDim1Size(), and Dataset::getDim2Size().
Referenced by ImageWindow(), and selectSensor().
long ImageWindow::onLoadImage | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onLoadImage | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 370 of file browser.cpp.
References changeSpecies(), SpeciesDB::load(), patterns, Image< T >::setSize(), and setStatusText().
Referenced by ImageWindow(), and onToggleSensorDlg().
long ImageWindow::onMouseDown | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onMouseMove | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onMouseMove | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
long ImageWindow::onMouseUp | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onRightMouseClick | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
long ImageWindow::onRightMouseClick | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 635 of file browser.cpp.
References dmutil::abs(), Dataset::getDim1Size(), Dataset::getDim2Size(), and Species::id.
Referenced by ImageWindow(), and selectSensor().
long ImageWindow::onTimeout | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 456 of file deform.cpp.
References cmdline(), setStatusText(), and TIMER_INTERVAL.
Referenced by ImageWindow().
long ImageWindow::onToggleSensorDlg | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 265 of file deform.cpp.
References onKeyPress(), onLoadImage(), patterns, and setStatusText().
Referenced by ImageWindow().
int ImageWindow::selectSensor | ( | int | sido | ) |
Definition at line 325 of file deform.cpp.
References Image< T >::convertFrom(), NULL, onKeyRelease(), onLeftMouseClick(), onRightMouseClick(), setStatusText(), Image< T >::unsetNAN(), and Sensor::UPD_MINMAX.
Referenced by ImageWindow().
void ImageWindow::setStatusText | ( | const char * | msg, |
bool | append = false |
||
) |
void ImageWindow::setStatusText | ( | const char * | msg, |
bool | append = false |
||
) |
Definition at line 663 of file browser.cpp.
Referenced by changeSpecies(), create(), ImageWindow(), onLoadImage(), onTimeout(), and setStatusText().