VR-Forces Development_Version 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 <QtGui/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  DtCustomValidation = 0x80000000
48  };
49 
50  public:
51  //CTOR
52  DtVrfSimulationMenuItem(makVrv::DtDe& de, QWidget* parent, DtVrfSimMenuItemValidations = DtVrfSimulationMenuItem::DtAlwaysEnabled);
53 
54  //DTOR
55  virtual ~DtVrfSimulationMenuItem();
56 
57  virtual void setCheckTerrainLoaded(bool);
58  bool checkTerrainLoaded() const
59  {
60  return myCheckTerrainLoaded;
61  }
62 
64  virtual void evaluate();
65 
66  protected:
68  virtual void setFlags(DtVrfSimMenuItemValidations);
69  const DtVrfSimMenuItemValidations& flags() const
70  {
71  return myFlags;
72  }
73 
74  virtual void slot_terrainPatchToBeDeleted();
75 
76  virtual bool terrainLoaded(int terrainCountOffset = 0) const;
77 
78  protected:
79  virtual void validate(int terrainPatchOffset = 0);
80 
81  virtual void slot_backendUpdated(const DtVrfBackendState&, int);
82 
84  virtual void customValidation(int terrainPatchOffset = 0);
85 
86  protected:
92  };
93 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)