Structural deformable models
|
#include <SpeciesDB.h>
Public Types | |
enum | SpFlags { FLIPPED =0x01, QUALITY =0x02, SCALE =0x04, SEL1 =0x08, DEL =0x10, SEL2 =0x20, SEL3 =0x04, SEL4 =0x80, SEL5 =0x100 } |
enum | SpCompare { CMP_EQUALS, CMP_CONTAINS, CMP_LESSER, CMP_GREATER } |
Public Member Functions | |
Species (dword _id=0, dword _flags=0) | |
Species & | operator= (const Species &rhs) |
void | reset () |
bool | hasFlag (dword flag) const |
dword | setFlag (dword flag) |
dword | unsetFlag (dword flag) |
dword | readFlagString (const std::string &flags) |
std::string | getFlagString () const |
bool | select (const Species &sp, enum SpCompare how=Species::CMP_CONTAINS) const |
dword | getScale () const |
Public Attributes | |
dword | id |
dword | m_Flags |
Static Public Attributes | |
static const char * | SFIELDS [] |
static const char | s_SPFLAGS [] |
Friends | |
ParseFile & | operator>> (ParseFile &is, Species &sp) |
std::ostream & | operator<< (std::ostream &os, const Species &sp) |
Definition at line 12 of file SpeciesDB.h.
enum Species::SpCompare |
Enumerator | |
---|---|
CMP_EQUALS | |
CMP_CONTAINS | |
CMP_LESSER | |
CMP_GREATER |
Definition at line 20 of file SpeciesDB.h.
enum Species::SpFlags |
Enumerator | |
---|---|
FLIPPED | |
QUALITY | |
SCALE | |
SEL1 | |
DEL | |
SEL2 | |
SEL3 | |
SEL4 | |
SEL5 |
Definition at line 16 of file SpeciesDB.h.
Definition at line 21 of file SpeciesDB.h.
string Species::getFlagString | ( | ) | const |
Definition at line 181 of file SpeciesDB.cpp.
Referenced by ImageWindow::changeSpecies(), Brain::doCommand(), Brain::loadSpecies(), operator<<(), operator=(), and Brain::triggerTest().
dword Species::getScale | ( | ) | const |
Definition at line 229 of file SpeciesDB.cpp.
Referenced by ImageWindow::changeSpecies(), Brain::doCommand(), Brain::loadData(), Brain::loadSpecies(), and operator=().
bool Species::hasFlag | ( | dword | flag | ) | const |
Definition at line 169 of file SpeciesDB.cpp.
Referenced by operator=(), and Brain::run().
Definition at line 22 of file SpeciesDB.h.
References CMP_CONTAINS, getFlagString(), getScale(), hasFlag(), id, m_Flags, operator<<, operator>>, readFlagString(), reset(), select(), setFlag(), and unsetFlag().
dword Species::readFlagString | ( | const std::string & | flags | ) |
Definition at line 189 of file SpeciesDB.cpp.
Referenced by Brain::doCommand(), operator=(), and operator>>().
void Species::reset | ( | ) |
bool Species::select | ( | const Species & | sp, |
enum SpCompare | how = Species::CMP_CONTAINS |
||
) | const |
Definition at line 197 of file SpeciesDB.cpp.
Referenced by SpeciesDB::getFilename(), and operator=().
Definition at line 173 of file SpeciesDB.cpp.
Referenced by operator=(), and Brain::triggerTest().
Definition at line 177 of file SpeciesDB.cpp.
Referenced by operator=(), and Brain::triggerTest().
|
friend |
Definition at line 149 of file SpeciesDB.cpp.
Referenced by operator=(), and SpeciesDB::SpeciesDB().
Definition at line 128 of file SpeciesDB.cpp.
Referenced by operator=(), and SpeciesDB::SpeciesDB().
dword Species::id |
Definition at line 41 of file SpeciesDB.h.
Referenced by Brain::doCommand(), Brain::load(), ImageWindow::onKeyPress(), ImageWindow::onRightMouseClick(), operator=(), operator>>(), Brain::run(), and Brain::triggerTest().
dword Species::m_Flags |
Definition at line 42 of file SpeciesDB.h.
Referenced by operator<<(), operator=(), and operator>>().
|
static |
Definition at line 15 of file SpeciesDB.h.
|
static |
Definition at line 14 of file SpeciesDB.h.
Referenced by operator<<().