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

Public Member Functions | |
| virtual | ~DtItemsListLogic () |
| DTOR. More... | |
| DtItemsListLogic (DtDe &de, DtItemsListInterface *iFace) | |
| Constructor. More... | |
| virtual void | setEventObjectType (const std::string &objectType) |
| Set the object type of the event, used to filter it out from tactical graphics. More... | |
| std::string | eventObjectType () const |
| Get the object type of the event, used to filter it out from tactical graphics. More... | |
Protected Member Functions | |
| void | connectSignals () |
| Connect the signals, called in the CTOR. More... | |
| int | findIndexForSubTypeTopLevelItem (const DtElementAttributes::ElementSubtypes &subType) |
| Find the correct index for the subType(Friendly, Opposing, Munitions, etc) top level item. More... | |
| int | findIndexForTypeTopLevelItem (const DtElementEntry::ElementType &type) |
| Find the correct index for the type(Observers, Tactical Graphics, etc) top level item. More... | |
| virtual void | addElement (const DtElementEntry &element) |
| Add an element into the display tree widget. More... | |
| virtual bool | passElementTypeTest (const DtElementEntry &data)=0 |
| Check if an element pass the test to be added into the tree widget. Must be overrided by subclass. More... | |
| std::string | elementTypeToString (const DtElementEntry::ElementType &type) const |
| Get the display name for the element type(Observers, Tactical Graphics, etc). More... | |
| std::string | elementSubTypeToString (const DtElementAttributes::ElementSubtypes &subType) const |
| Get the display name for the element subType(Friendly, Opposing, Munitions, etc). More... | |
| std::string | iconForElementType (const DtElementEntry::ElementType &type) const |
| Get the icon path for the element type top level item(Observers, Tactical Graphics, etc). More... | |
| std::string | iconForElementSubType (const DtElementAttributes::ElementSubtypes &subType) const |
| Get the icon path for the element subType top level item(Friendly, Opposing, Munitions, etc). More... | |
| virtual void | slot_elementsInitialized (const DtElementData::ElementIdList &elements) |
| Slot when elements are initialized and be ready to be displayed. More... | |
| virtual void | slot_elementsRemoved (const DtElementData::ElementIdList &elements) |
| Slot when elements are removed. More... | |
| virtual void | slot_attributesChanged (const DtElementAttributeManager::EntryAttributesList &list) |
| Slot when the attributes of the elements are changed. More... | |
| virtual void | slot_itemAttachRequested (DtElementID id) |
| Slot when user double click on the tree widget item. More... | |
| virtual void | slot__itemSelectionChanged (const std::vector< DtElementID > &idList) |
| Slot when the current selection of the tree widget changed. More... | |
| virtual void | slot_selectManagerSelectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected) |
| Slot when the current selection of the tree widget changed. More... | |
| virtual void | getColorForSubtypeForce (const DtElementAttributes::ElementSubtypes &subType, double &r, double &g, double &a) const |
| Get the color of the subType force. More... | |
| virtual void | onDisplayNameChanged (DtElementEntry *entry, const std::string &newName) |
| Called when the display name of the element changed. More... | |
| virtual void | onSubtypeChanged (DtElementEntry *entry, int subType) |
| Called when the sub type of the element changed. More... | |
| virtual void | onDamageStateChanged (DtElementEntry *entry, DtEntityStateListener::DamageState damageState) |
| Called when the damage state of the element changed. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtItemsListInterface & | myInterface |
| DtSignalConnectionManager | mySignals |
| std::string | myEventObjectType |
Private Member Functions | |
| DtItemsListLogic ()=delete | |
| Unimplemented Default CTOR. More... | |
| DtItemsListLogic (const DtItemsListLogic &orig)=delete | |
| Not implemented. More... | |
| DtItemsListLogic & | operator= (const DtItemsListLogic &orig)=delete |
| Not implemented. More... | |
Friends | |
| class | DtItemsListLogicCreator |
Logic class for display the objects, terrains, observers in the scene in a list.
Used by DtObjectsListLogic, DtTerrainListLogic, DtObserversListLogic.
|
virtual |
DTOR.
| makVrv::DtItemsListLogic::DtItemsListLogic | ( | DtDe & | de, |
| DtItemsListInterface * | iFace | ||
| ) |
Constructor.
|
privatedelete |
Unimplemented Default CTOR.
|
privatedelete |
Not implemented.
|
virtual |
Set the object type of the event, used to filter it out from tactical graphics.
| std::string makVrv::DtItemsListLogic::eventObjectType | ( | ) | const |
Get the object type of the event, used to filter it out from tactical graphics.
|
protected |
Connect the signals, called in the CTOR.
|
protected |
Find the correct index for the subType(Friendly, Opposing, Munitions, etc) top level item.
|
protected |
Find the correct index for the type(Observers, Tactical Graphics, etc) top level item.
|
protectedvirtual |
Add an element into the display tree widget.
|
protectedpure virtual |
Check if an element pass the test to be added into the tree widget. Must be overrided by subclass.
Implemented in makVrv::DtObjectsListLogic, makVrv::DtTerrainListLogic, and makVrv::DtObserversListLogic.
|
protected |
Get the display name for the element type(Observers, Tactical Graphics, etc).
|
protected |
Get the display name for the element subType(Friendly, Opposing, Munitions, etc).
|
protected |
Get the icon path for the element type top level item(Observers, Tactical Graphics, etc).
|
protected |
Get the icon path for the element subType top level item(Friendly, Opposing, Munitions, etc).
|
protectedvirtual |
Slot when elements are initialized and be ready to be displayed.
|
protectedvirtual |
Slot when elements are removed.
|
protectedvirtual |
Slot when the attributes of the elements are changed.
|
protectedvirtual |
Slot when user double click on the tree widget item.
|
protectedvirtual |
Slot when the current selection of the tree widget changed.
|
protectedvirtual |
Slot when the current selection of the tree widget changed.
|
protectedvirtual |
Get the color of the subType force.
| subType | The subtype; |
| r | The red color[0,1]; |
| g | The green color[0,1]; |
| b | The blue color[0,1]; |
|
protectedvirtual |
Called when the display name of the element changed.
| entry | The element. |
| newName | The new display name. |
|
protectedvirtual |
Called when the sub type of the element changed.
| entry | The element. |
| subType | DtElementAttributes::ElementSubtypes enum. |
|
protectedvirtual |
Called when the damage state of the element changed.
| entry | The element. |
| damageState | DtDamageState enum. |
|
privatedelete |
Not implemented.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |