VR-Forces 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 | 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)
 
virtual std::string eventObjectType () const
 
 DtItemsListLogic ()=delete
 
 DtItemsListLogic (const DtItemsListLogic &orig)=delete
 
 DtItemsListLogic (const DtItemsListLogic &&orig)=delete
 
DtItemsListLogic & operator= (const DtItemsListLogic &orig)=delete
 
DtItemsListLogic & operator= (const DtItemsListLogic &&orig)=delete
 

Protected Member Functions

virtual void connectSignals ()
 
virtual void connectPostInitSignals ()
 
virtual void slot_milSymbolStandardChanged (DtSymbologyStandard standard)
 
virtual void slot_colorSymbolByForceChanged (bool enabled)
 
virtual void slot_symbolOutlineColorOverrideChanged (bool enabled, const DtColorValue &outline, const DtColorValue &highlight)
 
virtual int findIndexForSubTypeTopLevelItem (const DtElementAttributes::ElementSubtypes &subType)
 
virtual int findIndexForTypeTopLevelItem (const DtElementEntry::ElementType &type)
 
virtual void addElement (const DtElementEntry &element)
 
virtual bool passElementTypeTest (const DtElementEntry &data)=0
 
virtual std::string elementTypeToString (const DtElementEntry::ElementType &type) const
 
virtual std::string elementSubTypeToString (const DtElementAttributes::ElementSubtypes &subType) const
 
virtual std::string iconForElementType (const DtElementEntry::ElementType &type) const
 
virtual 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 onIconRequiredUpdate (DtElementEntry *entry)
 

Protected Attributes

DtDe & myDe
 
DtItemsListInterface & myInterface
 
DtSignalConnectionManager mySignals
 
std::string myEventObjectType
 
boost::signalslib::connection myPostInitializeConnection
 

Friends

class DtItemsListLogicCreator
 

Constructor & Destructor Documentation

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

DTOR.

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

Constructor.

makVrv::DtItemsListLogic::DtItemsListLogic ( )
delete

Not allowed - copy CTOR and assignment operator.

makVrv::DtItemsListLogic::DtItemsListLogic ( const DtItemsListLogic &  orig)
delete

Not allowed - copy CTOR and assignment operator.

makVrv::DtItemsListLogic::DtItemsListLogic ( const DtItemsListLogic &&  orig)
delete

Not allowed - copy CTOR and assignment operator.

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.

virtual std::string makVrv::DtItemsListLogic::eventObjectType ( ) const
virtual

Get the object type of the event, used to filter it out from tactical graphics.

virtual void makVrv::DtItemsListLogic::connectSignals ( )
protectedvirtual

Connect the signals, called in the CTOR.

virtual void makVrv::DtItemsListLogic::connectPostInitSignals ( )
protectedvirtual

Connect signals that require the IG to be initialized (called lazily from slot_elementsInitialized).

virtual void makVrv::DtItemsListLogic::slot_milSymbolStandardChanged ( DtSymbologyStandard  standard)
protectedvirtual

Respond to MIL symbol standard changes: notify the mapper and refresh all icons.

virtual void makVrv::DtItemsListLogic::slot_colorSymbolByForceChanged ( bool  enabled)
protectedvirtual

Respond to color by force setting changes: refresh all icons if enabled, or reset to default icons if disabled.

virtual void makVrv::DtItemsListLogic::slot_symbolOutlineColorOverrideChanged ( bool  enabled,
const DtColorValue &  outline,
const DtColorValue &  highlight 
)
protectedvirtual

Respond to outline color override changes: clear icon cache and refresh all icons.

virtual int makVrv::DtItemsListLogic::findIndexForSubTypeTopLevelItem ( const DtElementAttributes::ElementSubtypes &  subType)
protectedvirtual

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

virtual int makVrv::DtItemsListLogic::findIndexForTypeTopLevelItem ( const DtElementEntry::ElementType &  type)
protectedvirtual

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::DtObserversListLogic, and makVrv::DtTerrainListLogic.

virtual std::string makVrv::DtItemsListLogic::elementTypeToString ( const DtElementEntry::ElementType &  type) const
protectedvirtual

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

virtual std::string makVrv::DtItemsListLogic::elementSubTypeToString ( const DtElementAttributes::ElementSubtypes &  subType) const
protectedvirtual

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

virtual std::string makVrv::DtItemsListLogic::iconForElementType ( const DtElementEntry::ElementType &  type) const
protectedvirtual

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

virtual std::string makVrv::DtItemsListLogic::iconForElementSubType ( const DtElementAttributes::ElementSubtypes &  subType) const
protectedvirtual

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];
aThe alpha value[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::onIconRequiredUpdate ( DtElementEntry *  entry)
protectedvirtual

Called when the damage state of the element changed.

Parameters
entryThe element.
DtItemsListLogic& makVrv::DtItemsListLogic::operator= ( const DtItemsListLogic &  orig)
delete

Not allowed - copy CTOR and assignment operator.

DtItemsListLogic& makVrv::DtItemsListLogic::operator= ( const DtItemsListLogic &&  orig)
delete

Not allowed - copy CTOR and assignment operator.

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
boost::signalslib::connection makVrv::DtItemsListLogic::myPostInitializeConnection
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)