VR-Exchange 2.1 API Documentation
List of all members | Public Member Functions | Static Public Member Functions | Protected Types | Protected Slots | Static Protected Member Functions | Protected Attributes | Private Member Functions
MAKVrExchange::DtObjectViewComponent Class Reference

Responsible for the display of an object's discovery, update, and removal recevied from the portal on the VR-Exchange GUI. More...

Inheritance diagram for MAKVrExchange::DtObjectViewComponent:
Inheritance graph
[legend]

Public Member Functions

 DtObjectViewComponent (DtPortalConnection *pConn, QWidget *parent)
 Ctor.
virtual ~DtObjectViewComponent ()
 Destructor.
virtual QWidgetgetGuiFrame ()
 Returns the GUI widget associated with this component.
virtual void addObject (const MAKVrExchange::DtPortalReflectedObject &obj)
 Adds a new object to the display.
virtual void updateObject (const MAKVrExchange::DtPortalReflectedObject &obj)
 Updates an object on the display.
virtual void removeObject (const MAKVrExchange::DtPortalReflectedObject &obj)
 Removes an object from the display.
virtual bool showUpdates () const
 Returns true if we are showing the update column.
virtual bool showObjects () const
 Returns true if we are showing objects.
virtual void toggleShowUpdates (bool val)
 Turns the update column on and off.
virtual void toggleShowObjects (bool val)
 Turns the objects display on and off.
virtual void filterSelectedObjects (const bool filter, DtObjectFilter::FilterType type)
 Turns on|off filtering for all selected objects.

Static Public Member Functions

static DtObjectViewComponentcreate (DtPortalConnection *pConn, QWidget *parent)

Protected Types

enum  { FilterSelectedId = 0, UnfilterSelectedId = 1 }
typedef std::map< const
DtPortalReflectedObject
*, DtPortalObjectHolder * > 
DtReflectedObjectHolderMap
typedef std::map
< DtPortalMessageKind, DtU32 > 
MessageKindToIntegerMap
typedef std::map
< DtPortalMessageKind,
QTreeWidgetItem * > 
MessageKindToListViewItemMap

Protected Slots

virtual void objectHeaderRightButtonPressedEventHandler (const QPoint &point)
 Handles a right mouse button press event for the header of #myObjectListView.
virtual void objectRightButtonPressedCallback (QTreeWidgetItem *item, const QPoint &point, int column)
 Callback for right mouse button release.
bool eventFilter (QObject *target, QEvent *event)
 Handles events registered with installEventFilter().
virtual void onMenuAboutToShow ()
virtual void addNameFilterAction (bool)
 Filters the selected objects by name.
virtual void addTypeFilterAction (bool)
 Filters the selected objects by type.
virtual void addMarkingTextFilterAction (bool)
 Filters the selected objects by marking text.
virtual void removeNameFilterAction (bool)
 Unfilters the selected objects by name.
virtual void removeTypeFilterAction (bool)
 Unfilters the selected objects by type.
virtual void removeMarkingTextFilterAction (bool)
 Unfilters the selected objects by marking text.
virtual void displayStatistics ()
 Updates the statistics for each object.
virtual QString headerLabel (const QHeaderView *header, int section)
 Qt Helper function to get the labels off a header.

Static Protected Member Functions

static void discoverEntityPortalObjectCb (const DtPortalReflectedEntity &obj, void *usrData)
static void updateEntityPortalObjectCb (const DtPortalReflectedEntity &obj, void *usrData)
static void deleteEntityPortalObjectCb (const DtPortalReflectedEntity &obj, void *usrData)
static void discoverAggregatePortalObjectCb (const DtPortalReflectedAggregate &obj, void *usrData)
static void updateAggregatePortalObjectCb (const DtPortalReflectedAggregate &obj, void *usrData)
static void deleteAggregatePortalObjectCb (const DtPortalReflectedAggregate &obj, void *usrData)
static void discoverGenericPortalObjectCb (const DtPortalReflectedGenericObject &obj, void *usrData)
static void updateGenericPortalObjectCb (const DtPortalReflectedGenericObject &obj, void *usrData)
static void deleteGenericPortalObjectCb (const DtPortalReflectedGenericObject &obj, void *usrData)
static void discoverRadioTransmitterPortalObjectCb (const DtPortalReflectedRadioTransmitterObject &object, void *usrData)
static void updateRadioTransmitterPortalObjectCb (const DtPortalReflectedRadioTransmitterObject &object, void *usrData)
static void deleteRadioTransmitterPortalObjectCb (const DtPortalReflectedRadioTransmitterObject &object, void *usrData)
static void discoverRadioReceiverPortalObjectCb (const DtPortalReflectedRadioReceiverObject &object, void *usrData)
static void updateRadioReceiverPortalObjectCb (const DtPortalReflectedRadioReceiverObject &object, void *usrData)
static void deleteRadioReceiverPortalObjectCb (const DtPortalReflectedRadioReceiverObject &object, void *usrData)
static void discoverRrbPortalObjectCb (const DtPortalReflectedIffObject &object, void *usrData)
static void updateRrbPortalObjectCb (const DtPortalReflectedIffObject &object, void *usrData)
static void deleteRrbPortalObjectCb (const DtPortalReflectedIffObject &object, void *usrData)
static void discoverEmitterSystemPortalObjectCb (const DtPortalReflectedEmitterSystemObject &object, void *usrData)
static void updateEmitterSystemPortalObjectCb (const DtPortalReflectedEmitterSystemObject &object, void *usrData)
static void deleteEmitterSystemPortalObjectCb (const DtPortalReflectedEmitterSystemObject &object, void *usrData)
static void discoverEnvironmentProcessPortalObjectCb (const DtPortalReflectedEnvironmentProcessObject &object, void *usrData)
static void updateEnvironmentProcessPortalObjectCb (const DtPortalReflectedEnvironmentProcessObject &object, void *usrData)
static void deleteEnvironmentProcessPortalObjectCb (const DtPortalReflectedEnvironmentProcessObject &object, void *usrData)
static void discoverDesignatorPortalObjectCb (const DtPortalReflectedDesignatorObject &object, void *usrData)
static void updateDesignatorPortalObjectCb (const DtPortalReflectedDesignatorObject &object, void *usrData)
static void deleteDesignatorPortalObjectCb (const DtPortalReflectedDesignatorObject &object, void *usrData)
static void discoverGriddedDataPortalObjectCb (const DtPortalReflectedGriddedDataObject &object, void *usrData)
static void updateGriddedDataPortalObjectCb (const DtPortalReflectedGriddedDataObject &object, void *usrData)
static void deleteGriddedDataPortalObjectCb (const DtPortalReflectedGriddedDataObject &object, void *usrData)

Protected Attributes

enum
MAKVrExchange::DtObjectViewComponent:: { ... }  
ObjectFilterPopupMenuPosition
std::vector< int > myObjectListViewColumnSize
DtReflectedObjectHolderMap myPortalHolderMap
bool myShowObjectsFlag
bool myShowingObjectsFlag
bool myShowUpdateTimeFlag
QFrame * myFrame
QTreeWidgetmyTreeWidget
QTimer * myStatsTimer
DtObjectContextMenumyObjectPopupMenu
QMenumyObjectHeaderPopupMenu
DtMarkingSymbolsmySymbolManager
MessageKindToIntegerMap myUpdatesReceviedMap
MessageKindToIntegerMap myObjectCountMap
DtPortalConnectionmyPConn
MessageKindToListViewItemMap myObjectKindTreeWidgetGroup
DtPortalReflectedEntityManagermyRefEntManager
DtPortalReflectedAggregateManagermyRefAggManager
DtPortalReflectedGenericObjectManagermyRefGenObjManager
DtPortalReflectedRadioTransmitterObjectManagermyReflectedRadioTransmitterObjectManager
DtPortalReflectedRadioReceiverObjectManagermyReflectedRadioReceiverObjectManager
DtPortalReflectedIffObjectManagermyReflectedIffObjectManager
DtPortalReflectedEmitterSystemObjectManagermyReflectedEmitterSystemObjectManager
DtPortalReflectedEnvironmentProcessObjectManagermyReflectedEnvironmentProcessObjectManager
DtPortalReflectedDesignatorObjectManagermyReflectedDesignatorObjectManager
DtPortalReflectedGriddedDataObjectManagermyReflectedGriddedDataObjectManager

Private Member Functions

 DtObjectViewComponent (const DtObjectViewComponent &orig)
 Copy Ctor Not Implemented.
DtObjectViewComponentoperator= (const DtObjectViewComponent &orig)
 Assignment Operator Not Implemented.

Detailed Description

Responsible for the display of an object's discovery, update, and removal recevied from the portal on the VR-Exchange GUI.

Users wishing to add new object types to the display of VR-Exchange need to subclass this class. This class is only useful for the VR-Exchange GUI. It is not required for communication.

Member Typedef Documentation

Member Enumeration Documentation

anonymous enum
protected
Enumerator:
FilterSelectedId 
UnfilterSelectedId 

Constructor & Destructor Documentation

MAKVrExchange::DtObjectViewComponent::DtObjectViewComponent ( DtPortalConnection pConn,
QWidget parent 
)

Ctor.

virtual MAKVrExchange::DtObjectViewComponent::~DtObjectViewComponent ( )
virtual

Destructor.

MAKVrExchange::DtObjectViewComponent::DtObjectViewComponent ( const DtObjectViewComponent orig)
private

Copy Ctor Not Implemented.

Member Function Documentation

virtual QWidget* MAKVrExchange::DtObjectViewComponent::getGuiFrame ( )
virtual

Returns the GUI widget associated with this component.

virtual void MAKVrExchange::DtObjectViewComponent::addObject ( const MAKVrExchange::DtPortalReflectedObject obj)
virtual

Adds a new object to the display.

virtual void MAKVrExchange::DtObjectViewComponent::updateObject ( const MAKVrExchange::DtPortalReflectedObject obj)
virtual

Updates an object on the display.

virtual void MAKVrExchange::DtObjectViewComponent::removeObject ( const MAKVrExchange::DtPortalReflectedObject obj)
virtual

Removes an object from the display.

virtual bool MAKVrExchange::DtObjectViewComponent::showUpdates ( ) const
virtual

Returns true if we are showing the update column.

virtual bool MAKVrExchange::DtObjectViewComponent::showObjects ( ) const
virtual

Returns true if we are showing objects.

virtual void MAKVrExchange::DtObjectViewComponent::toggleShowUpdates ( bool  val)
virtual

Turns the update column on and off.

virtual void MAKVrExchange::DtObjectViewComponent::toggleShowObjects ( bool  val)
virtual

Turns the objects display on and off.

virtual void MAKVrExchange::DtObjectViewComponent::filterSelectedObjects ( const bool  filter,
DtObjectFilter::FilterType  type 
)
virtual

Turns on|off filtering for all selected objects.

Parameters
filterwhether selected objects should be filtered or unfiltered.
typethe type of filter to apply (if filter is true).
static DtObjectViewComponent* MAKVrExchange::DtObjectViewComponent::create ( DtPortalConnection pConn,
QWidget parent 
)
static

Reimplemented in DtModObjectViewComponent.

virtual void MAKVrExchange::DtObjectViewComponent::objectHeaderRightButtonPressedEventHandler ( const QPoint &  point)
protectedvirtualslot

Handles a right mouse button press event for the header of #myObjectListView.

Displays the popup menu myObjectHeaderPopupMenu. This function will first create myObjectHeaderPopupMenu if it doesn't exist.

Parameters
[in]pointThe point where the mouse was clicked
virtual void MAKVrExchange::DtObjectViewComponent::objectRightButtonPressedCallback ( QTreeWidgetItem item,
const QPoint &  point,
int  column 
)
protectedvirtualslot

Callback for right mouse button release.

Callback function which handles a right mouse button release over #myObjectListView.

Parameters
[in]item
[in]point
[in]column
bool MAKVrExchange::DtObjectViewComponent::eventFilter ( QObject target,
QEvent *  event 
)
protectedslot

Handles events registered with installEventFilter().

If a QObject registers itself with installEventFilter() using an instantiation of this class; then this function will handle that event.

Parameters
[in]target
[in]event
Returns
true if the target's event was handled.
false otherwise
virtual void MAKVrExchange::DtObjectViewComponent::onMenuAboutToShow ( )
protectedvirtualslot
virtual void MAKVrExchange::DtObjectViewComponent::addNameFilterAction ( bool  )
protectedvirtualslot

Filters the selected objects by name.

Calls filterSelectedObjects( true, DtObjectFilter::FilterByEntityName ).

virtual void MAKVrExchange::DtObjectViewComponent::addTypeFilterAction ( bool  )
protectedvirtualslot

Filters the selected objects by type.

Calls filterSelectedObjects( true, DtObjectFilter::FilterByEntityType ).

virtual void MAKVrExchange::DtObjectViewComponent::addMarkingTextFilterAction ( bool  )
protectedvirtualslot

Filters the selected objects by marking text.

Calls filterSelectedObjects( true, DtObjectFilter::FilterByMarkingText ).

virtual void MAKVrExchange::DtObjectViewComponent::removeNameFilterAction ( bool  )
protectedvirtualslot

Unfilters the selected objects by name.

Calls filterSelectedObjects( false, DtObjectFilter::FilterByEntityName ).

virtual void MAKVrExchange::DtObjectViewComponent::removeTypeFilterAction ( bool  )
protectedvirtualslot

Unfilters the selected objects by type.

Calls filterSelectedObjects( false, DtObjectFilter::FilterByEntityType ).

virtual void MAKVrExchange::DtObjectViewComponent::removeMarkingTextFilterAction ( bool  )
protectedvirtualslot

Unfilters the selected objects by marking text.

Calls filterSelectedObjects( false, DtObjectFilter::FilterByMarkingText ).

virtual void MAKVrExchange::DtObjectViewComponent::displayStatistics ( )
protectedvirtualslot

Updates the statistics for each object.

virtual QString MAKVrExchange::DtObjectViewComponent::headerLabel ( const QHeaderView *  header,
int  section 
)
protectedvirtualslot

Qt Helper function to get the labels off a header.

static void MAKVrExchange::DtObjectViewComponent::discoverEntityPortalObjectCb ( const DtPortalReflectedEntity obj,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateEntityPortalObjectCb ( const DtPortalReflectedEntity obj,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteEntityPortalObjectCb ( const DtPortalReflectedEntity obj,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::discoverAggregatePortalObjectCb ( const DtPortalReflectedAggregate obj,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateAggregatePortalObjectCb ( const DtPortalReflectedAggregate obj,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteAggregatePortalObjectCb ( const DtPortalReflectedAggregate obj,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::discoverGenericPortalObjectCb ( const DtPortalReflectedGenericObject obj,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateGenericPortalObjectCb ( const DtPortalReflectedGenericObject obj,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteGenericPortalObjectCb ( const DtPortalReflectedGenericObject obj,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::discoverRadioTransmitterPortalObjectCb ( const DtPortalReflectedRadioTransmitterObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateRadioTransmitterPortalObjectCb ( const DtPortalReflectedRadioTransmitterObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteRadioTransmitterPortalObjectCb ( const DtPortalReflectedRadioTransmitterObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::discoverRadioReceiverPortalObjectCb ( const DtPortalReflectedRadioReceiverObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateRadioReceiverPortalObjectCb ( const DtPortalReflectedRadioReceiverObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteRadioReceiverPortalObjectCb ( const DtPortalReflectedRadioReceiverObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::discoverRrbPortalObjectCb ( const DtPortalReflectedIffObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateRrbPortalObjectCb ( const DtPortalReflectedIffObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteRrbPortalObjectCb ( const DtPortalReflectedIffObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::discoverEmitterSystemPortalObjectCb ( const DtPortalReflectedEmitterSystemObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateEmitterSystemPortalObjectCb ( const DtPortalReflectedEmitterSystemObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteEmitterSystemPortalObjectCb ( const DtPortalReflectedEmitterSystemObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::discoverEnvironmentProcessPortalObjectCb ( const DtPortalReflectedEnvironmentProcessObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateEnvironmentProcessPortalObjectCb ( const DtPortalReflectedEnvironmentProcessObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteEnvironmentProcessPortalObjectCb ( const DtPortalReflectedEnvironmentProcessObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::discoverDesignatorPortalObjectCb ( const DtPortalReflectedDesignatorObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateDesignatorPortalObjectCb ( const DtPortalReflectedDesignatorObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteDesignatorPortalObjectCb ( const DtPortalReflectedDesignatorObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::discoverGriddedDataPortalObjectCb ( const DtPortalReflectedGriddedDataObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::updateGriddedDataPortalObjectCb ( const DtPortalReflectedGriddedDataObject object,
void *  usrData 
)
staticprotected
static void MAKVrExchange::DtObjectViewComponent::deleteGriddedDataPortalObjectCb ( const DtPortalReflectedGriddedDataObject object,
void *  usrData 
)
staticprotected
DtObjectViewComponent& MAKVrExchange::DtObjectViewComponent::operator= ( const DtObjectViewComponent orig)
private

Assignment Operator Not Implemented.

Member Data Documentation

enum { ... } MAKVrExchange::DtObjectViewComponent::ObjectFilterPopupMenuPosition
std::vector<int> MAKVrExchange::DtObjectViewComponent::myObjectListViewColumnSize
protected
DtReflectedObjectHolderMap MAKVrExchange::DtObjectViewComponent::myPortalHolderMap
protected
bool MAKVrExchange::DtObjectViewComponent::myShowObjectsFlag
protected
bool MAKVrExchange::DtObjectViewComponent::myShowingObjectsFlag
protected
bool MAKVrExchange::DtObjectViewComponent::myShowUpdateTimeFlag
protected
QFrame* MAKVrExchange::DtObjectViewComponent::myFrame
protected
QTreeWidget* MAKVrExchange::DtObjectViewComponent::myTreeWidget
protected
QTimer* MAKVrExchange::DtObjectViewComponent::myStatsTimer
protected
DtObjectContextMenu* MAKVrExchange::DtObjectViewComponent::myObjectPopupMenu
protected
QMenu* MAKVrExchange::DtObjectViewComponent::myObjectHeaderPopupMenu
protected
DtMarkingSymbols* MAKVrExchange::DtObjectViewComponent::mySymbolManager
protected
MessageKindToIntegerMap MAKVrExchange::DtObjectViewComponent::myUpdatesReceviedMap
protected
MessageKindToIntegerMap MAKVrExchange::DtObjectViewComponent::myObjectCountMap
protected
DtPortalConnection* MAKVrExchange::DtObjectViewComponent::myPConn
protected
MessageKindToListViewItemMap MAKVrExchange::DtObjectViewComponent::myObjectKindTreeWidgetGroup
protected
DtPortalReflectedEntityManager* MAKVrExchange::DtObjectViewComponent::myRefEntManager
protected
DtPortalReflectedAggregateManager* MAKVrExchange::DtObjectViewComponent::myRefAggManager
protected
DtPortalReflectedGenericObjectManager* MAKVrExchange::DtObjectViewComponent::myRefGenObjManager
protected
DtPortalReflectedRadioTransmitterObjectManager* MAKVrExchange::DtObjectViewComponent::myReflectedRadioTransmitterObjectManager
protected
DtPortalReflectedRadioReceiverObjectManager* MAKVrExchange::DtObjectViewComponent::myReflectedRadioReceiverObjectManager
protected
DtPortalReflectedIffObjectManager* MAKVrExchange::DtObjectViewComponent::myReflectedIffObjectManager
protected
DtPortalReflectedEmitterSystemObjectManager* MAKVrExchange::DtObjectViewComponent::myReflectedEmitterSystemObjectManager
protected
DtPortalReflectedEnvironmentProcessObjectManager* MAKVrExchange::DtObjectViewComponent::myReflectedEnvironmentProcessObjectManager
protected
DtPortalReflectedDesignatorObjectManager* MAKVrExchange::DtObjectViewComponent::myReflectedDesignatorObjectManager
protected
DtPortalReflectedGriddedDataObjectManager* MAKVrExchange::DtObjectViewComponent::myReflectedGriddedDataObjectManager
protected

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

Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)