VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends
makVrv::DtItemsListLogic Class Referenceabstract

Logic class for display the objects, terrains, observers in the scene in a list. Used by DtObjectsListLogic, DtTerrainListLogic, DtObserversListLogic.

Inheritance diagram for makVrv::DtItemsListLogic:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtItemsListLogic ()
 
 DtItemsListLogic (DtDe &de, DtItemsListInterface *iFace)
 
virtual void setEventObjectType (const std::string &objectType)
 
std::string eventObjectType () const
 

Protected Member Functions

void connectSignals ()
 
int findIndexForSubTypeTopLevelItem (const DtElementAttributes::ElementSubtypes &subType)
 
int findIndexForTypeTopLevelItem (const DtElementEntry::ElementType &type)
 
virtual void addElement (const DtElementEntry &element)
 
virtual bool passElementTypeTest (const DtElementEntry &data)=0
 
std::string elementTypeToString (const DtElementEntry::ElementType &type) const
 
std::string elementSubTypeToString (const DtElementAttributes::ElementSubtypes &subType) const
 
std::string iconForElementType (const DtElementEntry::ElementType &type) const
 
std::string iconForElementSubType (const DtElementAttributes::ElementSubtypes &subType) const
 
virtual void slot_elementsInitialized (const DtElementData::ElementIdList &elements)
 
virtual void slot_elementsRemoved (const DtElementData::ElementIdList &elements)
 
virtual void slot_attributesChanged (const DtElementAttributeManager::EntryAttributesList &list)
 
virtual void slot_itemAttachRequested (DtElementID id)
 
virtual void slot__itemSelectionChanged (const std::vector< DtElementID > &idList)
 
virtual void slot_selectManagerSelectionChanged (const DtSelectionManager::IdSet &selected, const DtSelectionManager::IdSet &deselected)
 
virtual void getColorForSubtypeForce (const DtElementAttributes::ElementSubtypes &subType, double &r, double &g, double &a) const
 
virtual void onDisplayNameChanged (DtElementEntry *entry, const std::string &newName)
 
virtual void onSubtypeChanged (DtElementEntry *entry, int subType)
 
virtual void onDamageStateChanged (DtElementEntry *entry, EntityStateListener::DamageState damageState)
 

Protected Attributes

DtDemyDe
 
DtItemsListInterfacemyInterface
 
DtSignalConnectionManager mySignals
 
std::string myEventObjectType
 

Private Member Functions

 DtItemsListLogic ()=delete
 
 DtItemsListLogic (const DtItemsListLogic &orig)=delete
 
DtItemsListLogicoperator= (const DtItemsListLogic &orig)=delete
 

Friends

class DtItemsListLogicCreator
 

Constructor & Destructor Documentation

virtual makVrv::DtItemsListLogic::~DtItemsListLogic ( )
virtual

DTOR.

makVrv::DtItemsListLogic::DtItemsListLogic ( DtDe de,
DtItemsListInterface iFace 
)

Constructor.

makVrv::DtItemsListLogic::DtItemsListLogic ( )
privatedelete

Unimplemented Default CTOR.

makVrv::DtItemsListLogic::DtItemsListLogic ( const DtItemsListLogic orig)
privatedelete

Not implemented.

Member Function Documentation

virtual void makVrv::DtItemsListLogic::setEventObjectType ( const std::string &  objectType)
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.

void makVrv::DtItemsListLogic::connectSignals ( )
protected

Connect the signals, called in the CTOR.

int makVrv::DtItemsListLogic::findIndexForSubTypeTopLevelItem ( const DtElementAttributes::ElementSubtypes subType)
protected

Find the correct index for the subType(Friendly, Opposing, Munitions, etc) top level item.

int makVrv::DtItemsListLogic::findIndexForTypeTopLevelItem ( const DtElementEntry::ElementType type)
protected

Find the correct index for the type(Observers, Tactical Graphics, etc) top level item.

virtual void makVrv::DtItemsListLogic::addElement ( const DtElementEntry element)
protectedvirtual

Add an element into the display tree widget.

virtual bool makVrv::DtItemsListLogic::passElementTypeTest ( const DtElementEntry data)
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.

std::string makVrv::DtItemsListLogic::elementTypeToString ( const DtElementEntry::ElementType type) const
protected

Get the display name for the element type(Observers, Tactical Graphics, etc).

std::string makVrv::DtItemsListLogic::elementSubTypeToString ( const DtElementAttributes::ElementSubtypes subType) const
protected

Get the display name for the element subType(Friendly, Opposing, Munitions, etc).

std::string makVrv::DtItemsListLogic::iconForElementType ( const DtElementEntry::ElementType type) const
protected

Get the icon path for the element type top level item(Observers, Tactical Graphics, etc).

std::string makVrv::DtItemsListLogic::iconForElementSubType ( const DtElementAttributes::ElementSubtypes subType) const
protected

Get the icon path for the element subType top level item(Friendly, Opposing, Munitions, etc).

virtual void makVrv::DtItemsListLogic::slot_elementsInitialized ( const DtElementData::ElementIdList elements)
protectedvirtual

Slot when elements are initialized and be ready to be displayed.

virtual void makVrv::DtItemsListLogic::slot_elementsRemoved ( const DtElementData::ElementIdList elements)
protectedvirtual

Slot when elements are removed.

virtual void makVrv::DtItemsListLogic::slot_attributesChanged ( const DtElementAttributeManager::EntryAttributesList list)
protectedvirtual

Slot when the attributes of the elements are changed.

virtual void makVrv::DtItemsListLogic::slot_itemAttachRequested ( DtElementID  id)
protectedvirtual

Slot when user double click on the tree widget item.

virtual void makVrv::DtItemsListLogic::slot__itemSelectionChanged ( const std::vector< DtElementID > &  idList)
protectedvirtual

Slot when the current selection of the tree widget changed.

virtual void makVrv::DtItemsListLogic::slot_selectManagerSelectionChanged ( const DtSelectionManager::IdSet selected,
const DtSelectionManager::IdSet deselected 
)
protectedvirtual

Slot when the current selection of the tree widget changed.

virtual void makVrv::DtItemsListLogic::getColorForSubtypeForce ( const DtElementAttributes::ElementSubtypes subType,
double r,
double g,
double a 
) const
protectedvirtual

Get the color of the subType force.

Parameters
subTypeThe subtype;
rThe red color[0,1];
gThe green color[0,1];
bThe blue color[0,1];
virtual void makVrv::DtItemsListLogic::onDisplayNameChanged ( DtElementEntry entry,
const std::string &  newName 
)
protectedvirtual

Called when the display name of the element changed.

Parameters
entryThe element.
newNameThe new display name.
virtual void makVrv::DtItemsListLogic::onSubtypeChanged ( DtElementEntry entry,
int  subType 
)
protectedvirtual

Called when the sub type of the element changed.

Parameters
entryThe element.
subTypeDtElementAttributes::ElementSubtypes enum.
virtual void makVrv::DtItemsListLogic::onDamageStateChanged ( DtElementEntry entry,
EntityStateListener::DamageState  damageState 
)
protectedvirtual

Called when the damage state of the element changed.

Parameters
entryThe element.
damageStateEntityStateListener::DamageState enum.
DtItemsListLogic& makVrv::DtItemsListLogic::operator= ( const DtItemsListLogic orig)
privatedelete

Not implemented.

Friends And Related Function Documentation

friend class DtItemsListLogicCreator
friend

Member Data Documentation

DtDe& makVrv::DtItemsListLogic::myDe
protected
DtItemsListInterface& makVrv::DtItemsListLogic::myInterface
protected
DtSignalConnectionManager makVrv::DtItemsListLogic::mySignals
protected
std::string makVrv::DtItemsListLogic::myEventObjectType
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)