VR-Forces 4.1.1 Class Documentation
guiLocalCreateObjectMenu.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 //\file guiLocalCreateObjectMenu.h
7 
8 //This file defines all the menus and menu items that will be used for the object demo
9 //Note that this demo expectes to be working on ground-db.mtf
10 
12 #include <vrvCoreQt/DtMenuItem.h>
13 #include <vrvCoreQt/DtMenu.h>
14 
15 #pragma once
16 
17 namespace makVrf
18 {
19  class DtVrfObjectFacadeInterface;
20 }
21 
22 namespace makVrv
23 {
24  class DtIntervisibilityElement;
25 }
26 
27 //New main menu. This menu will be used to hold the Object Demo menu items
29 {
30 public:
33 
34 protected:
35  virtual QMenu* createMenu(makVrv::DtDe& de, QWidget* parent );
36 };
37 
38 //Base class for creating object demo menu items. Override the create() method to create the
39 //appropriate local object
41 {
42 public:
43  DtGuiLocalCreateObjectMenuItem(makVrv::DtDe&, const std::string& item);
44 
46 
47 protected:
48  virtual void on_triggered();
49  virtual void remove();
51 
52  //Called when an object is to be deleted. If our interface, set to 0 and uncheck menu item if checked
54 
55 protected:
59 };
60 
61 //Menu item for creating a line
63 {
64 public:
67 
68  //Build a menu item (via an action).
69  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
70 
71 protected:
73 
74 };
75 
76 //Menu item for creating an area
78 {
79 public:
82 
83  //Build a menu item (via an action).
84  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
85 
86 protected:
88 
89 };
90 
91 //Menu item for creating a waypoint
93 {
94 public:
97 
98  //Build a menu item (via an action).
99  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
100 
101 protected:
103 
104 };
105 
106 //Menu item for creating a M1A2
108 {
109 public:
111  virtual ~DtGuiLocalCreateObjectM1A2();
112 
113  //Build a menu item (via an action).
114  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
115 
116 protected:
118 
119 };
120 
121 //Menu item for creating a Airbus 320
123 {
124 public:
127 
128  //Build a menu item (via an action).
129  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
130 
131 protected:
133 
134 };
135 
136 //Creates an intervisibility fan
138 {
139 public:
141  virtual ~DtGuiLocalCreateObjectFan();
142 
143 protected:
144  //Build a menu item (via an action).
145  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
146  virtual void on_triggered();
147 
148 protected:
152 };
153 
154 //Creates intervisibility line and attaches to M1A2 and Airbus
156 {
157 public:
160 
161 protected:
162  //Build a menu item (via an action).
163  virtual QAction* createAction(makVrv::DtDe&, QWidget* parent);
164  virtual void on_aboutToShow();
165  virtual void on_triggered();
166 
167  //Called when state views are removed, if m1a2 or airbus, also remove this line if
168  //created
170 
171 protected:
175 };

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)