Computer Assited Medical Intervention Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
PMManagerDCPopup Class Reference

The popup menu of the Physical Manager data component. More...

#include <PMManagerDCPopup.h>

+ Inheritance diagram for PMManagerDCPopup:

Public Slots

void atomDataDisplay (QAction *)
 show one of the atom data display
void closeLoads ()
 this slot allows you to close the current impload file
void displayLoads ()
 show the loads in 3D
void editLoads ()
 this slot allows you to edit the current list of loads
void openLoads ()
 This slot allows you open a impload file.
void openRecentLoad ()
 to manage the clic on a recent load
void openReferencePML ()
 open the reference PML file
void previewLoads ()
 this slot allows you to see the preview
void saveAsLoads ()
 this slot allows you to save the current impload to another file
void saveLoads ()
 this slot allows you to save the current impload file
void setAtomDataScale ()
 atom data scale min/max can be fixed by the user
void simulation ()
 show the simulator widgets

Public Member Functions

 PMManagerDCPopup (camitk::Component *, QWidget *)
 the popup constructor
void updateMenuActions ()
 check which menus are possible, and enable them, disable the others
- Public Member Functions inherited from camitk::ComponentPopupMenu
 ComponentPopupMenu (Component *, QWidget *)
 default constructor

Private Member Functions

void addRecentLoads (QString)
 add a recent document to the list
void openLoads (QString)
 open a given loads file
void saveRecentLoads ()
 save the recent loads file name in the settings
void updateRecentLoads ()
 update the recent loads popup

Private Attributes

QAction * close
QAction * edit
QAction * fixAtomDataScale
QAction * hideAtomData
unsigned int maxNrOfRecents
 max nr of recent loads to keep
LoadsManagermyLM
 the load manager for this PML
unsigned int nrOfRecents
 current nr of recent loads kept
QAction * preview
QStringList recentLoadFiles
 the recent loads file names
QMenu * recentLoads
 the recent loads popup
QAction * save
 menus id
QAction * saveAs
QAction * showAddOnAtomData
QAction * showDisplacements
QAction * showDistances
QAction * showLoads
QAction * showRENError

Additional Inherited Members

- Protected Member Functions inherited from camitk::ComponentPopupMenu
QAction * addAction (const QString name, const char *member, bool isCheckable=true)
 Add a new item to the popup menu)
QAction * addSeparator ()
 insert a menu separator and return the corresponding action
- Protected Attributes inherited from camitk::ComponentPopupMenu
ComponentmyComponent
 the Component concerned by this popup menu

Detailed Description

The popup menu of the Physical Manager data component.

Allows to do different things directly from the DC popup (right-clic on the object or action menu when the physical model is selected)

Constructor & Destructor Documentation

PMManagerDCPopup::PMManagerDCPopup ( camitk::Component dc,
QWidget *  parent 
)

Member Function Documentation

void PMManagerDCPopup::addRecentLoads ( QString  f)
private

add a recent document to the list

References nrOfRecents, recentLoadFiles, and saveRecentLoads().

Referenced by openLoads().

void PMManagerDCPopup::atomDataDisplay ( QAction *  selectedAction)
slot
void PMManagerDCPopup::closeLoads ( )
slot

this slot allows you to close the current impload file

References LoadsManager::close(), myLM, and updateMenuActions().

Referenced by PMManagerDCPopup().

void PMManagerDCPopup::displayLoads ( )
slot

show the loads in 3D

References myLM, LoadsManager::setDisplayLoads(), showLoads, and updateMenuActions().

Referenced by PMManagerDCPopup().

void PMManagerDCPopup::editLoads ( )
slot

this slot allows you to edit the current list of loads

References LoadsManager::editLoads(), myLM, and updateMenuActions().

Referenced by PMManagerDCPopup().

void PMManagerDCPopup::openLoads ( )
slot

This slot allows you open a impload file.

References camitk::Component::getFileName(), camitk::ComponentPopupMenu::myComponent, and recentLoadFiles.

Referenced by openRecentLoad(), and PMManagerDCPopup().

void PMManagerDCPopup::openLoads ( QString  fileName)
private
void PMManagerDCPopup::openRecentLoad ( )
slot

to manage the clic on a recent load

References openLoads().

Referenced by updateRecentLoads().

void PMManagerDCPopup::openReferencePML ( )
slot
void PMManagerDCPopup::previewLoads ( )
slot

this slot allows you to see the preview

References myLM, LoadsManager::previewLoads(), and updateMenuActions().

Referenced by PMManagerDCPopup().

void PMManagerDCPopup::saveAsLoads ( )
slot

this slot allows you to save the current impload to another file

References camitk::Component::getFileName(), camitk::ComponentPopupMenu::myComponent, myLM, recentLoadFiles, LoadsManager::saveAs(), and updateMenuActions().

Referenced by PMManagerDCPopup().

void PMManagerDCPopup::saveLoads ( )
slot

this slot allows you to save the current impload file

References myLM, LoadsManager::save(), and updateMenuActions().

Referenced by PMManagerDCPopup().

void PMManagerDCPopup::saveRecentLoads ( )
private

save the recent loads file name in the settings

References maxNrOfRecents, and recentLoadFiles.

Referenced by addRecentLoads().

void PMManagerDCPopup::setAtomDataScale ( )
slot
void PMManagerDCPopup::simulation ( )
slot

show the simulator widgets

References myLM, and LoadsManager::simulation().

Referenced by PMManagerDCPopup().

void PMManagerDCPopup::updateMenuActions ( )
void PMManagerDCPopup::updateRecentLoads ( )
private

update the recent loads popup

References maxNrOfRecents, nrOfRecents, openRecentLoad(), recentLoadFiles, and recentLoads.

Referenced by openLoads(), and PMManagerDCPopup().

Member Data Documentation

QAction * PMManagerDCPopup::close
private
QAction * PMManagerDCPopup::edit
private
QAction * PMManagerDCPopup::fixAtomDataScale
private
QAction * PMManagerDCPopup::hideAtomData
private
unsigned int PMManagerDCPopup::maxNrOfRecents
private

max nr of recent loads to keep

Referenced by PMManagerDCPopup(), saveRecentLoads(), and updateRecentLoads().

LoadsManager* PMManagerDCPopup::myLM
private
unsigned int PMManagerDCPopup::nrOfRecents
private

current nr of recent loads kept

Referenced by addRecentLoads(), PMManagerDCPopup(), and updateRecentLoads().

QAction * PMManagerDCPopup::preview
private
QStringList PMManagerDCPopup::recentLoadFiles
private
QMenu* PMManagerDCPopup::recentLoads
private

the recent loads popup

Referenced by PMManagerDCPopup(), and updateRecentLoads().

QAction* PMManagerDCPopup::save
private

menus id

Referenced by PMManagerDCPopup(), and updateMenuActions().

QAction * PMManagerDCPopup::saveAs
private
QAction * PMManagerDCPopup::showAddOnAtomData
private
QAction * PMManagerDCPopup::showDisplacements
private
QAction * PMManagerDCPopup::showDistances
private
QAction * PMManagerDCPopup::showLoads
private
QAction * PMManagerDCPopup::showRENError
private

The documentation for this class was generated from the following files: