VR-Forces 4.6 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
makVrv::DtTickable Class Reference

An abstract base class for objects that require updates. More...

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

Public Member Functions

virtual bool needsUpdate (DtTime tNow)
 The check function called by DtTickableManager to verify if an update is required.
virtual void update (DtTime tNow)=0
 The update function called by DtTickableManager during update-ticks.
virtual ~DtTickable ()
 Virtual DTOR.
virtual void setUpdatePeriod (unsigned int period)
 Specify how often (in # of frames) this tickable should call update.
virtual unsigned int updatePeriod () const

Protected Member Functions

 DtTickable (DtTickableManagerInterface *manager)
 CTOR.
 DtTickable ()
 Unimplemented default CTOR.
virtual void slot_managerAboutToBeDeleted ()

Protected Attributes

DtTickableManagerInterfacemyManager
 Pointer to manager for removal during destruction.
DtSignalConnectionManager myConnections
unsigned int myFrameCounter
unsigned int myFrameToUpdate
unsigned int myUpdatePeriod

Detailed Description

An abstract base class for objects that require updates.

This object automatically adds itself to a DtTickableManager.

Constructor & Destructor Documentation

virtual makVrv::DtTickable::~DtTickable ( )
virtual

Virtual DTOR.

makVrv::DtTickable::DtTickable ( DtTickableManagerInterface manager)
protected

CTOR.

Parameters
[in]manageris the managing object to update this object; NULL may be passed to create an unticked tickable Do not delete this object explicitly, because the manager now owns it and will delete it on its own
makVrv::DtTickable::DtTickable ( )
protected

Unimplemented default CTOR.

Member Function Documentation

virtual bool makVrv::DtTickable::needsUpdate ( DtTime  tNow)
virtual
virtual void makVrv::DtTickable::update ( DtTime  tNow)
pure virtual

The update function called by DtTickableManager during update-ticks.

Parameters
[in]tNowis the current time-stamp.

Implemented in makVrv::DtDrawnIntersectorManager, makVrv::DtAttachableUpdater, makVrv::DtOsgGlStudioCockpit, makVrv::DtEmbarkationUpdater, makVrv::DtMultiPointEmbarkationUpdater, makVrv::DtDynamicTerrainObject, makVrv::DtSceneObjectUpdater, makVrv::DtAttachableEntityFanUpdater, makVrv::DtLineModelUpdater, makVrv::DtCameraShake, makVrv::DtOverWaterUpdater, makVrv::DtSurfaceClampingUpdater, makVrv::DtTritonRotorWashUpdater, makVrv::DtSmokePuffsDeadReckonUpdater, makVrv::DtMultiDeadReckonUpdater, makVrv::DtVertexUpdater, makVrv::DtMultiPointSceneObjectUpdater, makVrv::DtGroundClampingUpdater, makVrv::DtWakeUpdater, makVrv::DtTritonTidalStreamWakeUpdater, makVrv::DtEnvironmentalIconCenteringUpdater, makVrf::DtExternalDataSymbolDecorationUpdater, makVrf::DtSpotReportTrackHistoryUpdater, makVrf::DtPriorityUpdater, makVrv::DtNavigationLightUpdater, makVrv::DtSymbolDecorationUpdater, makVrv::DtTidalStreamWakeUpdater, makVrv::DtTritonWakeUpdater, makVrv::DtRotorWashUpdater, makVrv::DtContinuousCameraShake, makVrv::DtShipFlagSwitchTickable, makVrf::DtSensorContactLinesUpdater, makVrv::DtWaterClampingUpdater, makVrv::DtAttachableIntervisibilityUpdater, makVrv::DtShipFlagDirTickable, makVrv::DtDeadReckonUpdater, makVrv::DtHeadingLineUpdater, makVrv::DtTrackHistoryUpdater, makVrv::DtWindRotTickable, makVrv::DtWindDirTickable, makVrv::DtWindSwitchTickable, and makVrv::DtTerrainScalingUpdater.

virtual void makVrv::DtTickable::setUpdatePeriod ( unsigned int  period)
virtual

Specify how often (in # of frames) this tickable should call update.

E.g, if period is set to 40, then needsUpdate will return true once every forty frames. Which frame that happens on is randomized (when the period is set) to help distribute intermittent tickables. By default, period is 1, and needsUpdate returns true every frame.

virtual unsigned int makVrv::DtTickable::updatePeriod ( ) const
virtual
virtual void makVrv::DtTickable::slot_managerAboutToBeDeleted ( )
protectedvirtual

Member Data Documentation

DtTickableManagerInterface* makVrv::DtTickable::myManager
protected

Pointer to manager for removal during destruction.

DtSignalConnectionManager makVrv::DtTickable::myConnections
protected
unsigned int makVrv::DtTickable::myFrameCounter
protected
unsigned int makVrv::DtTickable::myFrameToUpdate
protected
unsigned int makVrv::DtTickable::myUpdatePeriod
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)