VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
DtSpotReportPerspectiveInterface Class Referenceabstract
Inheritance diagram for DtSpotReportPerspectiveInterface:
Inheritance graph
[legend]

Public Types

using SpotReportDataHandlersByContact = std::map< DtUUID, DtSpotReportDataHandler * >
 

Public Member Functions

 DtSpotReportPerspectiveInterface (DtSpotReportManager &manager)
 
virtual ~DtSpotReportPerspectiveInterface ()
 
virtual std::string className () const =0
 
virtual void flushData ()
 
virtual void idleTick ()
 
virtual void refresh ()
 
virtual void removeHandler (DtSpotReportDataHandler *)
 
virtual void objectEntryRemoved (const DtUUID &)
 
virtual bool isSpotReport (const DtUUID &) const
 
virtual bool removeSpotReport (const DtUUID &)
 
virtual void clear ()
 
virtual void processSpotReport (const DtSpotReport *)
 
virtual DtSpotReportDataHandler * handlerFor (const DtUUID &) const
 
const
SpotReportDataHandlersByContact & 
spotReportHandlersByContact () const
 
virtual bool forceFlush () const
 

Public Attributes

boost::signals2::signal< void(std::set
< DtSpotReportDataHandler * >)> 
signal_reportsUpdated
 
boost::signals2::signal< void(DtSpotReportDataHandler *)> signal_handlerAboutToBeRemoved
 

Protected Types

using SpotReportDataHandlers = std::map< DtUUID, std::unique_ptr< DtSpotReportDataHandler >>
 

Protected Member Functions

virtual bool accept (const DtSpotReport *) const =0
 
virtual DtSpotReportDataHandler * addOrUpdateDataHandler (const DtSpotReport *)
 
virtual DtSpotReportDataHandler * createSpotReportDataHandler (const DtSpotReport *) const
 
virtual void handlerRemoved (DtSpotReportDataHandler *)
 

Protected Attributes

DtSpotReportManager & myManager
 
SpotReportDataHandlersByContact mySpotReportDataHandlersByContact
 
SpotReportDataHandlers mySpotReportDataHandlers
 
std::set
< DtSpotReportDataHandler * > 
myFlushReports
 
bool myForceFlush = false
 

Member Typedef Documentation

Constructor & Destructor Documentation

DtSpotReportPerspectiveInterface::DtSpotReportPerspectiveInterface ( DtSpotReportManager &  manager)
virtual DtSpotReportPerspectiveInterface::~DtSpotReportPerspectiveInterface ( )
virtual

Member Function Documentation

virtual std::string DtSpotReportPerspectiveInterface::className ( ) const
pure virtual
virtual void DtSpotReportPerspectiveInterface::flushData ( )
virtual

Called when it is time to move next frame to current frame spot report data.

virtual void DtSpotReportPerspectiveInterface::idleTick ( )
virtual

Called when it is not time to flush data.

virtual void DtSpotReportPerspectiveInterface::refresh ( )
virtual

Initializes self by making connections to the spot report manager and going over all existing reports to see if any want to be accepted.

virtual void DtSpotReportPerspectiveInterface::removeHandler ( DtSpotReportDataHandler *  )
virtual
virtual void DtSpotReportPerspectiveInterface::objectEntryRemoved ( const DtUUID &  )
virtual
virtual bool DtSpotReportPerspectiveInterface::isSpotReport ( const DtUUID &  ) const
virtual

Returns true if the perspectives has this spot report handler UUID.

virtual bool DtSpotReportPerspectiveInterface::removeSpotReport ( const DtUUID &  )
virtual

Returns true if the spot report UUID is in this perspective and was removed.

virtual void DtSpotReportPerspectiveInterface::clear ( )
virtual

Clears out all handlers.

virtual void DtSpotReportPerspectiveInterface::processSpotReport ( const DtSpotReport *  )
virtual

Calls accept, and, if accepted, creates a new data handler to manager the spot report data.

virtual DtSpotReportDataHandler* DtSpotReportPerspectiveInterface::handlerFor ( const DtUUID &  ) const
virtual

If this perspective has a handler of the given id then return it.

const SpotReportDataHandlersByContact& DtSpotReportPerspectiveInterface::spotReportHandlersByContact ( ) const
inline
virtual bool DtSpotReportPerspectiveInterface::forceFlush ( ) const
virtual

Returns value of flag or override if you want to force a flush of the data that is scheduled for flushing.

virtual bool DtSpotReportPerspectiveInterface::accept ( const DtSpotReport *  ) const
protectedpure virtual

Returns true if the spot report is to be accepted by this perspective.

Implemented in DtSpotReportByForceAndUuidPerspective, and DtSpotReportByForcePerspective.

virtual DtSpotReportDataHandler* DtSpotReportPerspectiveInterface::addOrUpdateDataHandler ( const DtSpotReport *  )
protectedvirtual
virtual DtSpotReportDataHandler* DtSpotReportPerspectiveInterface::createSpotReportDataHandler ( const DtSpotReport *  ) const
protectedvirtual
virtual void DtSpotReportPerspectiveInterface::handlerRemoved ( DtSpotReportDataHandler *  )
protectedvirtual

Member Data Documentation

boost::signals2::signal<void (std::set<DtSpotReportDataHandler*>)> DtSpotReportPerspectiveInterface::signal_reportsUpdated

Signal sent after all data has been flushed with the list of handlers updated.

boost::signals2::signal<void (DtSpotReportDataHandler*)> DtSpotReportPerspectiveInterface::signal_handlerAboutToBeRemoved
DtSpotReportManager& DtSpotReportPerspectiveInterface::myManager
protected
SpotReportDataHandlersByContact DtSpotReportPerspectiveInterface::mySpotReportDataHandlersByContact
protected

Handlers must always be organized by contact. The question is just which contact will be kept and which observer will be kept by the passing of the accept method.

SpotReportDataHandlers DtSpotReportPerspectiveInterface::mySpotReportDataHandlers
protected
std::set<DtSpotReportDataHandler*> DtSpotReportPerspectiveInterface::myFlushReports
protected
bool DtSpotReportPerspectiveInterface::myForceFlush = false
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)