VR-Forces 4.3.1 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 = 1,
33  DtAnyBackendsLoaded = 2,
34  DtAnyBackendsPlaying = 3,
35  DtAllBackendsCanSimulate = 4,
36  DtSelectedBackendLoaded = 5,
37  DtTerrainLoadedOnly = 6,
38  DtLocalCreateValid = 7,
39  DtLocalSaveValid = 8,
40  DtAnyBackendsLoadedAndNotLoading = 9,
41  DtAnyBackendsPresentAndNotLoading = 10,
42  DtAnyBackendsLoadedOrLoading = 11,
43  DtCustomValidation = 100
44  };
45 
46  public:
47  //CTOR
48  DtVrfSimulationMenuItem(makVrv::DtDe& de, QWidget* parent, DtVrfSimMenuItemValidations = DtVrfSimulationMenuItem::DtAlwaysEnabled);
49 
50  //DTOR
51  virtual ~DtVrfSimulationMenuItem();
52 
53  virtual void setCheckTerrainLoaded(bool);
54  bool checkTerrainLoaded() const
55  {
56  return myCheckTerrainLoaded;
57  }
58 
60  virtual void evaluate();
61 
62  protected:
64  virtual void setFlags(DtVrfSimMenuItemValidations);
65  const DtVrfSimMenuItemValidations& flags() const
66  {
67  return myFlags;
68  }
69 
70  virtual void slot_terrainPatchToBeDeleted();
71 
72  virtual bool terrainLoaded(int terrainCountOffset = 0) const;
73 
74  protected:
75  virtual void validate(int terrainPatchOffset = 0);
76 
77  virtual void slot_backendUpdated(const DtVrfBackendState&, int);
78 
79  virtual void customValidation(int terrainPatchOffset = 0);
80 
81  protected:
87  };
88 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)