![]() |
VR-Forces 4.8 Class Documentation
|
Interface for display the objects, terrains, observers in the scene in a list. More...

Public Member Functions | |
| virtual void | addSubTypeTopLevelItem (const DtElementAttributes::ElementSubtypes &subType, const std::string &displayName, int index, const std::string &icon)=0 |
| Add a top level item which has subtype items as children(Friendly, Opposing, Munitions, etc). More... | |
| virtual void | addSubTypeTopLevelItem (const DtElementAttributes::ElementSubtypes &subType, const std::string &displayName, int index, double r, double g, double b)=0 |
| Add a top level item which has subtype items as children(Friendly, Opposing, Munitions, etc). More... | |
| virtual void | addSubTypeItem (const DtElementAttributes::ElementSubtypes &subType, DtElementID elementId, const std::string &displayName)=0 |
| Add a subtype item(Friendly, Opposing, Munitions, etc). More... | |
| virtual bool | hasSubTypeTopLevelItem (const DtElementAttributes::ElementSubtypes &subType)=0 |
| Check if the tree has a subtype top level item with the given subType. More... | |
| virtual void | addTypeTopLevelItem (const DtElementEntry::ElementType &type, const std::string &displayName, int index, const std::string &icon)=0 |
| Add a top level item which has type items as children(Observers, Tactical Graphics, etc). More... | |
| virtual void | addTypeItem (const DtElementEntry::ElementType &type, DtElementID elementId, const std::string &displayName)=0 |
| Add a tye item(Observers, Tactical Graphics, etc). More... | |
| virtual bool | hasTypeTopLevelItem (const DtElementEntry::ElementType &type)=0 |
| Check if the tree has a type top level item with the given type. More... | |
| virtual void | sortItems ()=0 |
| Sort all the tree widget items under subType top level item and type top level item. More... | |
| virtual void | removeItem (DtElementID id)=0 |
| Remove an item with the given element Id from the tree. More... | |
| virtual void | renameItem (DtElementID id, const std::string &newName)=0 |
| Rename an item with the new name. More... | |
| virtual void | updateItemDamageState (DtElementID id, int damageState)=0 |
| Update the damage state of the item, update the icon mostly. More... | |
| virtual void | updateItemSubType (DtElementID id, int subType)=0 |
| Update the subType of the item, change of force type etc. More... | |
| virtual void | setSelectedItems (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected)=0 |
| Update the current selection of the tree widget. More... | |
Public Attributes | |
| boost::signal< void(DtElementID)> | signal_itemAttachRequested |
| boost::signal< void(std::vector < DtElementID >)> | signal_itemSelectionChanged |
Interface for display the objects, terrains, observers in the scene in a list.
Used by DtObjectsListWidget, DtTerrainListWidget, DtObserversListWidget.
|
pure virtual |
Add a top level item which has subtype items as children(Friendly, Opposing, Munitions, etc).
| 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.
|
pure virtual |
Add a top level item which has subtype items as children(Friendly, Opposing, Munitions, etc).
| 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.
|
pure virtual |
Add a subtype item(Friendly, Opposing, Munitions, etc).
| 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.
|
pure virtual |
Check if the tree has a subtype top level item with the given subType.
| subType | The subtype of the item |
Implemented in makVrv::DtItemsListWidget.
|
pure virtual |
Add a top level item which has type items as children(Observers, Tactical Graphics, etc).
| 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.
|
pure virtual |
Add a tye item(Observers, Tactical Graphics, etc).
| 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.
|
pure virtual |
Check if the tree has a type top level item with the given type.
| type | The type of the item |
Implemented in makVrv::DtItemsListWidget.
|
pure virtual |
Sort all the tree widget items under subType top level item and type top level item.
Implemented in makVrv::DtItemsListWidget, makVrv::DtTerrainListWidget, makVrv::DtObjectsListWidget, and makVrv::DtObserversListWidget.
|
pure virtual |
Remove an item with the given element Id from the tree.
Implemented in makVrv::DtItemsListWidget.
|
pure virtual |
Rename an item with the new name.
| newName | The new name of the item. |
Implemented in makVrv::DtItemsListWidget.
|
pure virtual |
Update the damage state of the item, update the icon mostly.
| damageState | DtDamageState enum. |
Implemented in makVrv::DtItemsListWidget.
|
pure virtual |
Update the subType of the item, change of force type etc.
| subType | DtElementAttributes::ElementSubtypes enum. |
Implemented in makVrv::DtItemsListWidget.
|
pure virtual |
Update the current selection of the tree widget.
Implemented in makVrv::DtItemsListWidget.
| boost::signal<void(DtElementID)> makVrv::DtItemsListInterface::signal_itemAttachRequested |
| boost::signal<void (std::vector<DtElementID>)> makVrv::DtItemsListInterface::signal_itemSelectionChanged |