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 | Protected Member Functions | Protected Attributes
makVrf::DtVrfSimulationMenuItem Class Reference
Inheritance diagram for makVrf::DtVrfSimulationMenuItem:
Inheritance graph
[legend]

Public Types

enum  DtVrfSimMenuItemValidations {
  DtAlwaysEnabled = 0, DtAnyBackendsPresent = 0x00000001, DtAnyBackendsLoaded = 0x00000002, DtAnyBackendsPlaying = 0x00000004,
  DtAllBackendsCanSimulate = 0x00000008, DtSelectedBackendLoaded = 0x00000010, DtTerrainLoadedOnly = 0x00000020, DtLocalCreateValid = 0x00000040,
  DtLocalSaveValid = 0x00000080, DtAnyBackendsLoadedAndNotLoading = 0x00000100, DtAnyBackendsPresentAndNotLoading = 0x00000200, DtAnyBackendsLoadedOrLoading = 0x00000400,
  DtAllBackendsCanSimulateAndPlaying = 0x00000800, DtAllBackendsCanSimulateAndLoaded = 0x00001000, DtAnyLoadableCheckpoints = 0x00002000, DtAnyBackendsPresentAndNotLoadingAndHasCheckpoints = 0x00004000,
  DtAnyBackendsPresentAndNotLoadingAndCanSimulate = 0x00008000, DtAnyBackendsPresentAndNotLoadingAndHasCheckpointsAndCanSimulate = 0x00010000, DtCommunicationsDriverStartedAndBackendNotLoading = 0x00020000, DtCustomValidation = 0x80000000
}
 

Public Member Functions

 DtVrfSimulationMenuItem (makVrv::DtDe &de, QWidget *parent, DtVrfSimMenuItemValidations=DtVrfSimulationMenuItem::DtAlwaysEnabled, bool checkSessionJoined=true)
 
virtual ~DtVrfSimulationMenuItem () override
 
virtual void setCheckTerrainLoaded (bool)
 
bool checkTerrainLoaded () const
 
virtual void evaluate ()
 

Protected Member Functions

virtual void setFlags (DtVrfSimMenuItemValidations)
 
const DtVrfSimMenuItemValidationsflags () const
 
virtual void slot_terrainPatchToBeDeleted ()
 
virtual bool terrainLoaded (int terrainCountOffset=0) const
 
virtual void validate (int terrainPatchOffset=0)
 
virtual void slot_backendUpdated (const DtVrfBackendState &, int)
 
virtual void customValidation (int terrainPatchOffset=0)
 

Protected Attributes

makVrv::DtDemyDe
 
DtVrfSimMenuItemValidations myFlags
 
bool myCheckTerrainLoaded
 
bool myCheckSessionJoined
 
makVrv::DtSignalConnectionManager myConnections
 

Member Enumeration Documentation

Enumerator
DtAlwaysEnabled 
DtAnyBackendsPresent 
DtAnyBackendsLoaded 
DtAnyBackendsPlaying 
DtAllBackendsCanSimulate 
DtSelectedBackendLoaded 
DtTerrainLoadedOnly 
DtLocalCreateValid 
DtLocalSaveValid 
DtAnyBackendsLoadedAndNotLoading 
DtAnyBackendsPresentAndNotLoading 
DtAnyBackendsLoadedOrLoading 
DtAllBackendsCanSimulateAndPlaying 
DtAllBackendsCanSimulateAndLoaded 
DtAnyLoadableCheckpoints 
DtAnyBackendsPresentAndNotLoadingAndHasCheckpoints 
DtAnyBackendsPresentAndNotLoadingAndCanSimulate 
DtAnyBackendsPresentAndNotLoadingAndHasCheckpointsAndCanSimulate 
DtCommunicationsDriverStartedAndBackendNotLoading 
DtCustomValidation 

Constructor & Destructor Documentation

makVrf::DtVrfSimulationMenuItem::DtVrfSimulationMenuItem ( makVrv::DtDe de,
QWidget *  parent,
DtVrfSimMenuItemValidations  = DtVrfSimulationMenuItem::DtAlwaysEnabled,
bool  checkSessionJoined = true 
)
virtual makVrf::DtVrfSimulationMenuItem::~DtVrfSimulationMenuItem ( )
overridevirtual

Member Function Documentation

virtual void makVrf::DtVrfSimulationMenuItem::setCheckTerrainLoaded ( bool  )
virtual
bool makVrf::DtVrfSimulationMenuItem::checkTerrainLoaded ( ) const
inline
virtual void makVrf::DtVrfSimulationMenuItem::evaluate ( )
virtual

Called to evaluate whether or not to enable/disable menu item based on flags.

virtual void makVrf::DtVrfSimulationMenuItem::setFlags ( DtVrfSimMenuItemValidations  )
protectedvirtual

Flags that are set to enable/disable menu item based on simulation (back-end) state.

const DtVrfSimMenuItemValidations& makVrf::DtVrfSimulationMenuItem::flags ( ) const
inlineprotected
virtual void makVrf::DtVrfSimulationMenuItem::slot_terrainPatchToBeDeleted ( )
protectedvirtual
virtual bool makVrf::DtVrfSimulationMenuItem::terrainLoaded ( int  terrainCountOffset = 0) const
protectedvirtual
virtual void makVrf::DtVrfSimulationMenuItem::validate ( int  terrainPatchOffset = 0)
protectedvirtual
virtual void makVrf::DtVrfSimulationMenuItem::slot_backendUpdated ( const DtVrfBackendState ,
int   
)
protectedvirtual
virtual void makVrf::DtVrfSimulationMenuItem::customValidation ( int  terrainPatchOffset = 0)
protectedvirtual

If ANY of the flags are true then this item will be enabled.

Member Data Documentation

makVrv::DtDe& makVrf::DtVrfSimulationMenuItem::myDe
protected
DtVrfSimMenuItemValidations makVrf::DtVrfSimulationMenuItem::myFlags
protected
bool makVrf::DtVrfSimulationMenuItem::myCheckTerrainLoaded
protected
bool makVrf::DtVrfSimulationMenuItem::myCheckSessionJoined
protected
makVrv::DtSignalConnectionManager makVrf::DtVrfSimulationMenuItem::myConnections
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)