Structural deformable models
Classes | Macros | Functions | Variables
browser.cpp File Reference
#include <fx.h>
#include <fx3d.h>
#include <fxkeys.h>
#include <string>
#include <iostream>
#include <sstream>
#include <time.h>
#include "fxconfig.h"
#include <list>
#include "Image.h"
#include "Data.h"
#include "SpeciesDB.h"
#include "Clusterer.h"
#include "SensorSet.h"
Include dependency graph for browser.cpp:

Go to the source code of this file.

Classes

class  ImageWindow
 

Macros

#define SATURATION
 

Functions

 FXDEFMAP (ImageWindow) ImageWindowMap[]
 
bool setTitle (const char *title)
 
bool setStatusText (const char *stext)
 
int main (int argc, char *argv[])
 

Variables

const FXchar * patterns []
 

Macro Definition Documentation

#define SATURATION

Function Documentation

FXDEFMAP ( ImageWindow  )
int main ( int  argc,
char *  argv[] 
)

Definition at line 680 of file browser.cpp.

References ImageWindow::cmdline(), and ImageWindow::ImageWindow().

680  {
681 
682  // Make application
683  FXApp application("Deformable Model Segmentation","FoxText");
684 
685  // Start app
686  application.init(argc,argv);
687 
688  // Make window
689  ImageWindow *iw = new ImageWindow(&application);
690  iw->cmdline(argc,argv);
691 
692  // Create the application's windows
693  application.create();
694 
695  // Run the application
696  return application.run();
697 }
FXbool cmdline(int argc, char **argv)
Definition: browser.cpp:671
bool setStatusText ( const char *  stext)

Definition at line 164 of file browser.cpp.

References ImageWindow::setStatusText().

Referenced by ImageWindow::ImageWindow(), Brain::loadSpecies(), and Brain::triggerTest().

164  {
165  return false;
166  ImageWindow *mw = dynamic_cast<ImageWindow*>
167  (FXApp::instance()->getMainWindow());
168  if(mw) {
169  mw->setStatusText(stext);
170  return true;
171  } else return false;
172 }
void setStatusText(const char *msg, bool append=false)
Definition: browser.cpp:663
bool setTitle ( const char *  title)

Definition at line 154 of file browser.cpp.

Referenced by ImageWindow::changeSpecies(), and Brain::loadSpecies().

154  {
155  return false;
156  ImageWindow *mw = dynamic_cast<ImageWindow*>
157  (FXApp::instance()->getMainWindow());
158  if(mw) {
159  mw->setTitle(title);
160  return true;
161  } else return false;
162 }

Variable Documentation

const FXchar* patterns[]
Initial value:
={
"Databases", "*.dat",
"All Files", "*",
}
#define NULL
Definition: simpletypes.h:9

Definition at line 26 of file browser.cpp.

Referenced by ImageWindow::onLoadImage().