VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
makVrf::DtGuiAggregateRollUpManager Class Reference

This class is a GUI side wrapper for aggregate rollups and sends notifications when pseudo aggregates have been changed due to subordinate data changing. Manages requests for monitoring and being notified of changes by calling the monitorAggregate method (true or false).

Inheritance diagram for makVrf::DtGuiAggregateRollUpManager:
Inheritance graph
[legend]

Classes

struct  MonitorStruct
 

Public Types

enum  UpdateFlags { StructureChanged = 0x00000001, DataChanged = 0x00000002 }
 
typedef std::set< const
makVrf::DtStateDataWrapper * > 
Leafs
 
typedef std::map< std::string,
DtRollUpFunction > 
RollUpRules
 

Public Member Functions

 DtGuiAggregateRollUpManager (makVrv::DtDe &)
 
virtual ~DtGuiAggregateRollUpManager () override
 
virtual void leafNodes (makVrv::DtUniqueID, Leafs &, bool includePseudoAggregates=false) const
 
virtual void leafNodes (DtSimObjectReference state, Leafs &, bool includePseudoAggregates=false) const
 
virtual void statePropertiesFor (makVrv::DtUniqueID, DtRwProperties &) const
 
virtual void statePropertiesFor (const std::set< makVrv::DtUniqueID > &, DtRwProperties &) const
 
virtual void parameterData (const std::set< makVrv::DtUniqueID > &, DtRwProperties &) const
 
virtual void parameterData (makVrv::DtUniqueID, DtRwProperties &) const
 
virtual void parameterData (DtSimObjectReference state, DtRwProperties &parameters) const
 
virtual bool hasStateProperties (makVrv::DtUniqueID) const
 
virtual bool hasStateProperty (makVrv::DtUniqueID, const std::string &statePropName) const
 
virtual bool isMonitorable (DtSimObjectReference ref) const
 
virtual bool isMonitorable (makVrv::DtUniqueID) const
 
virtual void monitor (makVrv::DtUniqueID, bool)
 
virtual void startMonitoring (makVrv::DtUniqueID)
 
virtual void stopMonitoring (makVrv::DtUniqueID)
 
virtual void stopMonitoring (DtUUID)
 
virtual void installCustomRules ()
 
virtual makVrv::DtUniqueID superior (makVrv::DtUniqueID) const
 
virtual void parameterPropertiesFor (DtTrueAggregateRollUp::Leafs &leafs, DtRwProperties &parameters) const override
 
virtual const
makVrf::DtStateDataWrapper * 
lookup (const makVrv::DtUniqueID &id) const
 
virtual const
makVrf::DtStateDataWrapper * 
lookup (const DtUUID &id) const override
 
virtual std::set< const
makVrf::DtStateDataWrapper * > 
lookup (const std::set< DtUUID > &ids) const override
 
virtual bool isValid (const makVrf::DtStateDataWrapper *state) const override
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 
- Public Member Functions inherited from DtTrueAggregateRollUpFunctor
virtual bool isValid (const DtUUID &id) const
 

Static Public Member Functions

static
DtGuiAggregateRollUpManager & 
instance (makVrv::DtDe &de)
 
static void registerInstance (makVrv::DtDe &, DtGuiAggregateRollUpManager *)
 

Public Attributes

boost::signals2::signal< void(makVrv::DtUniqueID,
int)> 
signal_aggregateUpdated
 

Protected Types

typedef std::map
< makVrv::DtUniqueID,
MonitorStruct > 
Monitoring
 

Protected Member Functions

virtual void slot_aggregateStateUpdated (DtSimObjectReference ref)
 
virtual void slot_aggregateRootStateUpdated (DtSimObjectReference ref)
 
virtual void slot_onStateViewAboutToBeRemoved (DtSimObjectReference ref)
 
virtual void startMonitoring (DtSimObjectReference ref, makVrv::DtUniqueID parent)
 

Protected Attributes

makVrv::DtDe & myDe
 
Monitoring myMonitoring
 
makVrv::DtSignalConnectionManager myConnections
 
DtTrueAggregateRollUp myRollUp
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
StructureChanged 
DataChanged 

Constructor & Destructor Documentation

makVrf::DtGuiAggregateRollUpManager::DtGuiAggregateRollUpManager ( makVrv::DtDe &  )
virtual makVrf::DtGuiAggregateRollUpManager::~DtGuiAggregateRollUpManager ( )
overridevirtual

Member Function Documentation

static DtGuiAggregateRollUpManager& makVrf::DtGuiAggregateRollUpManager::instance ( makVrv::DtDe &  de)
static

Returns instance of the messager.

Referenced by makVrf::DtSetStatePropertyDialog::setupProperties().

static void makVrf::DtGuiAggregateRollUpManager::registerInstance ( makVrv::DtDe &  ,
DtGuiAggregateRollUpManager *   
)
static
virtual void makVrf::DtGuiAggregateRollUpManager::leafNodes ( makVrv::DtUniqueID  ,
Leafs &  ,
bool  includePseudoAggregates = false 
) const
virtual

Given a root, returns all the leaf nodes from the given aggregate. Leaf nodes are considered those that do not have children.

virtual void makVrf::DtGuiAggregateRollUpManager::leafNodes ( DtSimObjectReference  state,
Leafs &  ,
bool  includePseudoAggregates = false 
) const
virtual
virtual void makVrf::DtGuiAggregateRollUpManager::statePropertiesFor ( makVrv::DtUniqueID  ,
DtRwProperties &   
) const
virtual

Returns the rolled up state properties or the state properties for the individual (if this is not a pseudo aggregate)

Referenced by makVrf::DtSetStatePropertyDialog::setupProperties().

virtual void makVrf::DtGuiAggregateRollUpManager::statePropertiesFor ( const std::set< makVrv::DtUniqueID > &  ,
DtRwProperties &   
) const
virtual
virtual void makVrf::DtGuiAggregateRollUpManager::parameterData ( const std::set< makVrv::DtUniqueID > &  ,
DtRwProperties &   
) const
virtual

Given the state, if the state is an aggregate and has subordinates, return a total of all the parameter properties for numerical items found within. String values that have the same value will be kept. Those that have differing values will be removed If the item is not an aggregate simply the parameter properties related to the entity type will be returned.

Referenced by makVrf::DtSetStatePropertyDialog::setupProperties().

virtual void makVrf::DtGuiAggregateRollUpManager::parameterData ( makVrv::DtUniqueID  ,
DtRwProperties &   
) const
virtual
virtual void makVrf::DtGuiAggregateRollUpManager::parameterData ( DtSimObjectReference  state,
DtRwProperties &  parameters 
) const
virtual
virtual bool makVrf::DtGuiAggregateRollUpManager::hasStateProperties ( makVrv::DtUniqueID  ) const
virtual

Returns true if the aggregate with the given unique ID has, or has any subordinates with, valid state properties.

Referenced by makVrf::DtSetStatePropertyDialog::setupProperties().

virtual bool makVrf::DtGuiAggregateRollUpManager::hasStateProperty ( makVrv::DtUniqueID  ,
const std::string &  statePropName 
) const
virtual

Returns true if the aggregate with the given unique ID has, or has any subordinates with, the given state property.

virtual bool makVrf::DtGuiAggregateRollUpManager::isMonitorable ( DtSimObjectReference  ref) const
virtual

Returns true if this is a pseudo aggregate and can be monitored for resource updates.

virtual bool makVrf::DtGuiAggregateRollUpManager::isMonitorable ( makVrv::DtUniqueID  ) const
virtual
virtual void makVrf::DtGuiAggregateRollUpManager::monitor ( makVrv::DtUniqueID  ,
bool   
)
virtual

Call to start/stop monitoring a particular aggregate. Will keep a reference counter for each aggregate monitored and only stop monitoring when reference is 0. If something about the aggregate changes the signal_aggregateUpdated signal will be sent.

virtual void makVrf::DtGuiAggregateRollUpManager::startMonitoring ( makVrv::DtUniqueID  )
virtual
virtual void makVrf::DtGuiAggregateRollUpManager::stopMonitoring ( makVrv::DtUniqueID  )
virtual
virtual void makVrf::DtGuiAggregateRollUpManager::stopMonitoring ( DtUUID  )
virtual
virtual void makVrf::DtGuiAggregateRollUpManager::installCustomRules ( )
virtual
virtual makVrv::DtUniqueID makVrf::DtGuiAggregateRollUpManager::superior ( makVrv::DtUniqueID  ) const
virtual

Given the particular element, returns the superior of this element or 0 if there is no superior.

virtual void makVrf::DtGuiAggregateRollUpManager::parameterPropertiesFor ( DtTrueAggregateRollUp::Leafs &  leafs,
DtRwProperties &  parameters 
) const
overridevirtual

{ Rollup functor interface

Implements DtTrueAggregateRollUpFunctor.

virtual const makVrf::DtStateDataWrapper* makVrf::DtGuiAggregateRollUpManager::lookup ( const makVrv::DtUniqueID &  id) const
virtual
virtual const makVrf::DtStateDataWrapper* makVrf::DtGuiAggregateRollUpManager::lookup ( const DtUUID &  id) const
overridevirtual

Looks up the state data wrapper for the given UUID.

Implements DtTrueAggregateRollUpFunctor.

virtual std::set<const makVrf::DtStateDataWrapper*> makVrf::DtGuiAggregateRollUpManager::lookup ( const std::set< DtUUID > &  ids) const
overridevirtual
virtual bool makVrf::DtGuiAggregateRollUpManager::isValid ( const makVrf::DtStateDataWrapper *  state) const
overridevirtual
virtual void makVrf::DtGuiAggregateRollUpManager::slot_aggregateStateUpdated ( DtSimObjectReference  ref)
protectedvirtual

}

virtual void makVrf::DtGuiAggregateRollUpManager::slot_aggregateRootStateUpdated ( DtSimObjectReference  ref)
protectedvirtual
virtual void makVrf::DtGuiAggregateRollUpManager::slot_onStateViewAboutToBeRemoved ( DtSimObjectReference  ref)
protectedvirtual
virtual void makVrf::DtGuiAggregateRollUpManager::startMonitoring ( DtSimObjectReference  ref,
makVrv::DtUniqueID  parent 
)
protectedvirtual

Member Data Documentation

boost::signals2::signal<void(makVrv::DtUniqueID, int)> makVrf::DtGuiAggregateRollUpManager::signal_aggregateUpdated

Signal sent when something about the aggregate has been updated.

makVrv::DtDe& makVrf::DtGuiAggregateRollUpManager::myDe
protected
Monitoring makVrf::DtGuiAggregateRollUpManager::myMonitoring
protected
makVrv::DtSignalConnectionManager makVrf::DtGuiAggregateRollUpManager::myConnections
protected
DtTrueAggregateRollUp makVrf::DtGuiAggregateRollUpManager::myRollUp
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)