![]() |
VR-Forces 4.0.4 Class Documentation
|
A DtModelDefinitionComboBox populates itself with model definitions. More...

Public Member Functions | |
| DtModelDefinitionComboBox (DtDe &de, QWidget *parent) | |
| CTOR. | |
| ~DtModelDefinitionComboBox () | |
| DTOR. | |
| void | populate () |
| Populate combo box with model definitions, based on the schema filter. | |
| void | addSchemaFilter (const std::string &filter) |
| Filter schema from model definition combo box. | |
| void | removeSchemaFilter (const std::string &filter) |
| Remove a filter schema. | |
| void | addPersistentItem (const std::string &persistentItem) |
| Add an item that gets added during the call to populate. | |
| void | removePersistentItem (const std::string &filter) |
| Remove an item that so it doesn't get added during the call to populate. | |
| void | setFilteringMode (bool isPositive) |
| Set true to filter additively (include only model definitions whose schemata have been added). | |
| void | setShowImagesIfAvailable (bool) |
| If true, show images next to items that will display 2D bitmaps (typically model definitions in the WidgetTheme). | |
| bool | showImagesIfAvailable () const |
| Returns whether or not images will be shown next to combo box items. | |
Protected Types | |
| typedef boost::unordered_set < std::string > | NameSet |
Protected Member Functions | |
| void | slot_modelDefinitionToBeRemoved (const DtModelDefinition &modelDef) |
| Remove a model definition from the combo box. | |
| void | showImagesForModelDefinitions () |
| Modify combo to show images for items. | |
| QImage | imageForModelDefinition (const QString &) const |
| Give the particular model definition, return a QImage that will represent that model definition. | |
Protected Attributes | |
| DtDe & | myDe |
| DtSignalConnectionManager | myConnections |
| NameSet | myFilterSet |
| NameSet | myPersistentItemSet |
| bool | myFilterMode |
| bool | myShowImagesIfAvailable |
A DtModelDefinitionComboBox populates itself with model definitions.
typedef boost::unordered_set<std::string> makVrv::DtModelDefinitionComboBox::NameSet [protected] |
| makVrv::DtModelDefinitionComboBox::DtModelDefinitionComboBox | ( | DtDe & | de, |
| QWidget * | parent | ||
| ) |
CTOR.
Populate combo box with model definitions, based on the schema filter.
| void makVrv::DtModelDefinitionComboBox::addSchemaFilter | ( | const std::string & | filter | ) |
Filter schema from model definition combo box.
| void makVrv::DtModelDefinitionComboBox::removeSchemaFilter | ( | const std::string & | filter | ) |
Remove a filter schema.
| void makVrv::DtModelDefinitionComboBox::addPersistentItem | ( | const std::string & | persistentItem | ) |
Add an item that gets added during the call to populate.
| void makVrv::DtModelDefinitionComboBox::removePersistentItem | ( | const std::string & | filter | ) |
Remove an item that so it doesn't get added during the call to populate.
| void makVrv::DtModelDefinitionComboBox::setFilteringMode | ( | bool | isPositive | ) |
Set true to filter additively (include only model definitions whose schemata have been added).
False by default (excludes model definitions whose schemata have been added).
If true, show images next to items that will display 2D bitmaps (typically model definitions in the WidgetTheme).
Returns whether or not images will be shown next to combo box items.
| void makVrv::DtModelDefinitionComboBox::slot_modelDefinitionToBeRemoved | ( | const DtModelDefinition & | modelDef | ) | [protected] |
Remove a model definition from the combo box.
| void makVrv::DtModelDefinitionComboBox::showImagesForModelDefinitions | ( | ) | [protected] |
Modify combo to show images for items.
| QImage makVrv::DtModelDefinitionComboBox::imageForModelDefinition | ( | const QString & | ) | const [protected] |
Give the particular model definition, return a QImage that will represent that model definition.
This will only for for model definitions that can be rasterized (e.g. jpeg, bmp).
DtDe& makVrv::DtModelDefinitionComboBox::myDe [protected] |
bool makVrv::DtModelDefinitionComboBox::myFilterMode [protected] |