Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PMManagerDCPopup.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2014 UJF-Grenoble 1, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef PHYSICALMODELDCPOPUP_H
27 #define PHYSICALMODELDCPOPUP_H
28 
29 #include <ComponentPopupMenu.h>
30 
32 class LoadsManager;
44 
45  Q_OBJECT
46 
47  public:
50 
52  void updateMenuActions();
53 
54  public slots:
56  void openLoads();
57 
59  void saveLoads();
60 
62  void saveAsLoads();
63 
65  void closeLoads();
66 
68  void previewLoads();
69 
71  void editLoads();
72 
74  void displayLoads();
75 
77  void atomDataDisplay(QAction *);
78 
80  void openReferencePML();
81 
83  void setAtomDataScale();
84 
86  void simulation();
87 
88  /*TODO fix import/export
90  void vtkImport();
91 */
92 
94  void openRecentLoad();
95 
96  private:
99 
101  unsigned int maxNrOfRecents;
102 
104  unsigned int nrOfRecents;
105 
107  QMenu * recentLoads;
108 
110  void updateRecentLoads();
111 
113  QStringList recentLoadFiles;
114 
116  void addRecentLoads(QString);
117 
119  void saveRecentLoads();
120 
122  void openLoads(QString);
123 
126 protected:
127  void getSettings();
128 };
129 
130 
131 #endif
QMenu * recentLoads
the recent loads popup
Definition: PMManagerDCPopup.h:107
void openReferencePML()
open the reference PML file
void addRecentLoads(QString)
add a recent document to the list
void openRecentLoad()
to manage the clic on a recent load
void setAtomDataScale()
atom data scale min/max can be fixed by the user
void openLoads()
This slot allows you open a impload file.
QAction * showAddOnAtomData
Definition: PMManagerDCPopup.h:98
QAction * saveAs
Definition: PMManagerDCPopup.h:98
QAction * preview
Definition: PMManagerDCPopup.h:98
The popup menu of the Physical Manager data component.
Definition: PMManagerDCPopup.h:43
void simulation()
show the simulator widgets
void closeLoads()
this slot allows you to close the current impload file
QStringList recentLoadFiles
the recent loads file names
Definition: PMManagerDCPopup.h:113
void saveAsLoads()
this slot allows you to save the current impload to another file
QAction * hideAtomData
Definition: PMManagerDCPopup.h:98
void atomDataDisplay(QAction *)
show one of the atom data display
QAction * showDistances
Definition: PMManagerDCPopup.h:98
Generic class for Component popup menu. To create your own Component popup, create a class that inher...
Definition: ComponentPopupMenu.h:140
void saveLoads()
this slot allows you to save the current impload file
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:292
void displayLoads()
show the loads in 3D
QAction * close
Definition: PMManagerDCPopup.h:98
This class manages the applied all loads (see LML), deformation add-on, atom data monitoring and atom...
Definition: LoadsManager.h:69
LoadsManager * myLM
the load manager for this PML
Definition: PMManagerDCPopup.h:125
void editLoads()
this slot allows you to edit the current list of loads
QAction * showDisplacements
Definition: PMManagerDCPopup.h:98
unsigned int nrOfRecents
current nr of recent loads kept
Definition: PMManagerDCPopup.h:104
QAction * save
menus id
Definition: PMManagerDCPopup.h:98
QAction * edit
Definition: PMManagerDCPopup.h:98
void updateMenuActions()
check which menus are possible, and enable them, disable the others
QAction * fixAtomDataScale
Definition: PMManagerDCPopup.h:98
void saveRecentLoads()
save the recent loads file name in the settings
PMManagerDCPopup(camitk::Component *, QWidget *)
the popup constructor
QAction * showRENError
Definition: PMManagerDCPopup.h:98
void previewLoads()
this slot allows you to see the preview
void updateRecentLoads()
update the recent loads popup
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:48
unsigned int maxNrOfRecents
max nr of recent loads to keep
Definition: PMManagerDCPopup.h:101
QAction * showLoads
Definition: PMManagerDCPopup.h:98