VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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  DtCustomValidation = 0x80000000
50  };
51 
52  public:
53  //CTOR
54  DtVrfSimulationMenuItem(makVrv::DtDe& de, QWidget* parent, DtVrfSimMenuItemValidations = DtVrfSimulationMenuItem::DtAlwaysEnabled);
55 
56  //DTOR
57  virtual ~DtVrfSimulationMenuItem();
58 
59  virtual void setCheckTerrainLoaded(bool);
60  bool checkTerrainLoaded() const
61  {
62  return myCheckTerrainLoaded;
63  }
64 
66  virtual void evaluate();
67 
68  protected:
70  virtual void setFlags(DtVrfSimMenuItemValidations);
71  const DtVrfSimMenuItemValidations& flags() const
72  {
73  return myFlags;
74  }
75 
76  virtual void slot_terrainPatchToBeDeleted();
77 
78  virtual bool terrainLoaded(int terrainCountOffset = 0) const;
79 
80  protected:
81  virtual void validate(int terrainPatchOffset = 0);
82 
83  virtual void slot_backendUpdated(const DtVrfBackendState&, int);
84 
86  virtual void customValidation(int terrainPatchOffset = 0);
87 
88  protected:
94  };
95 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)