Structural deformable models
|
#include <SpeciesDB.h>
Public Member Functions | |
DBSelector (SpeciesDB &db) | |
DBSelector (SpeciesDB &db, const char *filename) | |
bool | load (const char *filename) |
void | update () |
should be called when data base has changed More... | |
Species & | getCurSpecies () |
Returns a handle to the currently selected species in the data base. More... | |
bool | nextSelection (int dir=1, bool wrap=true) |
bool | nextSelector (int walkdir=1, bool wrap=true, dword mincount=1) |
Public Attributes | |
SpeciesDB & | m_DB |
std::list< Species > | m_Selectors |
std::list< Species >::iterator | m_CSel |
Species | m_CSpecies |
This class helps to select subsets of a data base. As well it assists in navigation through the selectors and the resulting selections.
Definition at line 78 of file SpeciesDB.h.
|
inline |
Definition at line 80 of file SpeciesDB.h.
|
inline |
Definition at line 81 of file SpeciesDB.h.
|
inline |
Returns a handle to the currently selected species in the data base.
Definition at line 90 of file SpeciesDB.h.
Referenced by Brain::doCommand(), Brain::loadDB(), Brain::loadDBSelector(), ImageWindow::onKeyPress(), Brain::run(), and Brain::triggerTest().
bool DBSelector::load | ( | const char * | filename | ) |
Load a set of species used as selectors for filtering the data base. Calls update() afterwards.
Definition at line 241 of file SpeciesDB.cpp.
Referenced by ImageWindow::create(), and Brain::loadDBSelector().
bool DBSelector::nextSelection | ( | int | dir = 1 , |
bool | wrap = true |
||
) |
Move on to next selection.
dir | -1 move backwards, 1 move forwards, 0 just refresh |
wrap | if false then return false if end of selection list has been reached. Otherwise just wrap around. |
Definition at line 261 of file SpeciesDB.cpp.
Referenced by Brain::doCommand(), ImageWindow::onKeyPress(), Brain::run(), and Brain::triggerTest().
bool DBSelector::nextSelector | ( | int | walkdir = 1 , |
bool | wrap = true , |
||
dword | mincount = 1 |
||
) |
Move on to next selector.
walkdir | -1=move backwards, 1=move forwards (default), 0=just refresh |
wrap | if false then return false if end of selector list has been reached. Otherwise just wrap around. |
Definition at line 291 of file SpeciesDB.cpp.
Referenced by ImageWindow::onKeyPress(), and Brain::triggerTest().
void DBSelector::update | ( | ) |
should be called when data base has changed
Definition at line 255 of file SpeciesDB.cpp.
Referenced by Brain::loadDB().
std::list<Species>::iterator DBSelector::m_CSel |
Definition at line 111 of file SpeciesDB.h.
Species DBSelector::m_CSpecies |
Definition at line 112 of file SpeciesDB.h.
SpeciesDB& DBSelector::m_DB |
Definition at line 109 of file SpeciesDB.h.
std::list<Species> DBSelector::m_Selectors |
Definition at line 110 of file SpeciesDB.h.