Interface for display the objects, terrains, observers in the scene in a list. Used by DtObjectsListWidget, DtTerrainListWidget, DtObserversListWidget.
|
| virtual void | addSubTypeTopLevelItem (const DtElementAttributes::ElementSubtypes &subType, const std::string &displayName, int index, const std::string &icon)=0 |
| |
| virtual void | addSubTypeTopLevelItem (const DtElementAttributes::ElementSubtypes &subType, const std::string &displayName, int index, double r, double g, double b)=0 |
| |
| virtual void | addSubTypeItem (const DtElementAttributes::ElementSubtypes &subType, DtElementID elementId, const std::string &displayName)=0 |
| |
| virtual bool | hasSubTypeTopLevelItem (const DtElementAttributes::ElementSubtypes &subType)=0 |
| |
| virtual void | addTypeTopLevelItem (const DtElementEntry::ElementType &type, const std::string &displayName, int index, const std::string &icon)=0 |
| |
| virtual void | addTypeItem (const DtElementEntry::ElementType &type, DtElementID elementId, const std::string &displayName)=0 |
| |
| virtual bool | hasTypeTopLevelItem (const DtElementEntry::ElementType &type)=0 |
| |
| virtual void | sortItems ()=0 |
| |
| virtual void | removeItem (DtElementID id)=0 |
| |
| virtual void | renameItem (DtElementID id, const std::string &newName)=0 |
| |
| virtual void | updateItemDamageState (DtElementID id, EntityStateListener::DamageState damageState)=0 |
| |
| virtual void | updateItemSubType (DtElementID id, int subType)=0 |
| |
| virtual void | setSelectedItems (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected)=0 |
| |
Add a top level item which has subtype items as children(Friendly, Opposing, Munitions, etc).
- Parameters
-
| subType | The subtype of the child items. |
| displayName | The display name of the top level item. |
| index | The index of the top level item in the tree. |
| icon | The icon of the item, empty string means no icon. |
Implemented in makVrv::DtItemsListWidget.
Add a top level item which has subtype items as children(Friendly, Opposing, Munitions, etc).
- Parameters
-
| subType | The subtype of the child items. |
| displayName | The display name of the top level item. |
| index | The index of the top level item in the tree. |
| r | The red color of the icon if the icon is generated by the color. |
| g | The red color of the icon if the icon is generated by the color. |
| b | The red color of the icon if the icon is generated by the color. |
Implemented in makVrv::DtItemsListWidget.
Add a subtype item(Friendly, Opposing, Munitions, etc).
- Parameters
-
| subType | The subtype of the item |
| elementId | The elementId of the item. |
| displayName | The display name of the item. |
| icon | The icon of the item, empty string means no icon. |
| r | The red color of the icon[0,1]. |
| g | The red color of the icon[0,1]. |
| b | The red color of the icon[0,1]. |
Implemented in makVrv::DtItemsListWidget.
Check if the tree has a subtype top level item with the given subType.
- Parameters
-
| subType | The subtype of the item |
Implemented in makVrv::DtItemsListWidget.
| virtual void makVrv::DtItemsListInterface::addTypeTopLevelItem |
( |
const DtElementEntry::ElementType & |
type, |
|
|
const std::string & |
displayName, |
|
|
int |
index, |
|
|
const std::string & |
icon |
|
) |
| |
|
pure virtual |
Add a top level item which has type items as children(Observers, Tactical Graphics, etc).
- Parameters
-
| type | The type of the child items. |
| displayName | The display name of the top level item. |
| index | The index of the top level item in the tree. |
| icon | The icon of the item, empty string means no icon. |
Implemented in makVrv::DtItemsListWidget.
Add a tye item(Observers, Tactical Graphics, etc).
- Parameters
-
| type | The type of the item |
| elementId | The elementId of the item. |
| displayName | The display name of the item. |
| icon | The icon of the item, empty string means no icon. |
| r | The red color of the icon[0,1]. |
| g | The red color of the icon[0,1]. |
| b | The red color of the icon[0,1]. |
Implemented in makVrv::DtItemsListWidget.
| virtual void makVrv::DtItemsListInterface::sortItems |
( |
| ) |
|
|
pure virtual |
| virtual void makVrv::DtItemsListInterface::removeItem |
( |
DtElementID |
id | ) |
|
|
pure virtual |
| virtual void makVrv::DtItemsListInterface::renameItem |
( |
DtElementID |
id, |
|
|
const std::string & |
newName |
|
) |
| |
|
pure virtual |
| virtual void makVrv::DtItemsListInterface::updateItemSubType |
( |
DtElementID |
id, |
|
|
int |
subType |
|
) |
| |
|
pure virtual |
| boost::signalslib::signal<void(DtElementID)> makVrv::DtItemsListInterface::signal_itemAttachRequested |
| boost::signalslib::signal<void (std::vector<DtElementID>)> makVrv::DtItemsListInterface::signal_itemSelectionChanged |
The documentation for this class was generated from the following file: