VR-Forces 4.8 Class Documentation
 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. More...

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

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, int damageState)
 Called when the damage state of the element changed. More...
 

Protected Attributes

DtDemyDe
 
DtItemsListInterfacemyInterface
 
DtSignalConnectionManager mySignals
 
std::string myEventObjectType
 

Private Member Functions

 DtItemsListLogic ()
 Unimplemented Default CTOR. More...
 
 DtItemsListLogic (const DtItemsListLogic &orig)
 Not implemented. More...
 
DtItemsListLogicoperator= (const DtItemsListLogic &orig)
 Not implemented. More...
 

Friends

class DtItemsListLogicCreator
 

Detailed Description

Logic class for display the objects, terrains, observers in the scene in a list.

Used by DtObjectsListLogic, DtTerrainListLogic, DtObserversListLogic.

Constructor & Destructor Documentation

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

DTOR.

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

Constructor.

makVrv::DtItemsListLogic::DtItemsListLogic ( )
private

Unimplemented Default CTOR.

makVrv::DtItemsListLogic::DtItemsListLogic ( const DtItemsListLogic orig)
private

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,
int  damageState 
)
protectedvirtual

Called when the damage state of the element changed.

Parameters
entryThe element.
damageStateDtDamageState enum.
DtItemsListLogic& makVrv::DtItemsListLogic::operator= ( const DtItemsListLogic orig)
private

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 Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)