VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfSimulationMenuItem.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <vrvCore/DtDe.h>
15 #include <vrvCoreQt/DtMenuItem.h>
17 
18 #include <QtWidgets/QAction>
19 
20 namespace makVrf
21 {
22  class DtVrfBackendState;
23 
25  {
26  Q_OBJECT
27 
28  public:
30  {
31  DtAlwaysEnabled = 0,
32  DtAnyBackendsPresent = 0x00000001,
33  DtAnyBackendsLoaded = 0x00000002,
34  DtAnyBackendsPlaying = 0x00000004,
35  DtAllBackendsCanSimulate = 0x00000008,
36  DtSelectedBackendLoaded = 0x00000010,
37  DtTerrainLoadedOnly = 0x00000020,
38  DtLocalCreateValid = 0x00000040,
39  DtLocalSaveValid = 0x00000080,
40  DtAnyBackendsLoadedAndNotLoading = 0x00000100,
41  DtAnyBackendsPresentAndNotLoading = 0x00000200,
42  DtAnyBackendsLoadedOrLoading = 0x00000400,
43  DtAllBackendsCanSimulateAndPlaying = 0x00000800,
44  DtAllBackendsCanSimulateAndLoaded = 0x00001000,
45  DtAnyLoadableCheckpoints = 0x00002000,
46  DtAnyBackendsPresentAndNotLoadingAndHasCheckpoints = 0x00004000,
47  DtAnyBackendsPresentAndNotLoadingAndCanSimulate = 0x00008000,
48  DtAnyBackendsPresentAndNotLoadingAndHasCheckpointsAndCanSimulate = 0x00010000,
49  DtCommunicationsDriverStartedAndBackendNotLoading = 0x00020000,
50  DtCustomValidation = 0x80000000
51  };
52 
53  public:
54  //CTOR
55  DtVrfSimulationMenuItem(makVrv::DtDe& de, QWidget* parent, DtVrfSimMenuItemValidations = DtVrfSimulationMenuItem::DtAlwaysEnabled,
56  bool checkSessionJoined = true);
57 
58  //DTOR
59  virtual ~DtVrfSimulationMenuItem();
60 
61  virtual void setCheckTerrainLoaded(bool);
62  bool checkTerrainLoaded() const
63  {
64  return myCheckTerrainLoaded;
65  }
66 
68  virtual void evaluate();
69 
70  protected:
72  virtual void setFlags(DtVrfSimMenuItemValidations);
73  const DtVrfSimMenuItemValidations& flags() const
74  {
75  return myFlags;
76  }
77 
78  virtual void slot_terrainPatchToBeDeleted();
79 
80  virtual bool terrainLoaded(int terrainCountOffset = 0) const;
81 
82  protected:
83  virtual void validate(int terrainPatchOffset = 0);
84 
85  virtual void slot_backendUpdated(const DtVrfBackendState&, int);
86 
88  virtual void customValidation(int terrainPatchOffset = 0);
89 
90  protected:
96  };
97 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)