Computer Assited Medical Intervention Tool Kit  version 4.0
Public Slots | Public Member Functions | Protected 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>

Inherits camitk::ComponentPopupMenu.

Public Slots

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

Public Member Functions

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

Protected Member Functions

void getSettings ()
 
- 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) More...
 
QAction * addSeparator ()
 insert a menu separator and return the corresponding action More...
 

Private Member Functions

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

Private Attributes

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

Additional Inherited Members

- Protected Attributes inherited from camitk::ComponentPopupMenu
ComponentmyComponent
 the Component concerned by this popup menu More...
 

Detailed Description

The popup menu of the Physical Manager data component.

Allows one 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::PMManagerDCPopup ( camitk::Component dc,
QWidget *  parent 
)

Member Function Documentation

◆ addRecentLoads()

void PMManagerDCPopup::addRecentLoads ( QString  f)
private

add a recent document to the list

References nrOfRecents, recentLoadFiles, and saveRecentLoads().

Referenced by openLoads().

◆ atomDataDisplay

void PMManagerDCPopup::atomDataDisplay ( QAction *  selectedAction)
slot

◆ closeLoads

void PMManagerDCPopup::closeLoads ( )
slot

this slot allows you to close the current impload file

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

Referenced by PMManagerDCPopup().

◆ displayLoads

void PMManagerDCPopup::displayLoads ( )
slot

show the loads in 3D

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

Referenced by PMManagerDCPopup().

◆ editLoads

void PMManagerDCPopup::editLoads ( )
slot

this slot allows you to edit the current list of loads

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

Referenced by PMManagerDCPopup().

◆ getSettings()

void PMManagerDCPopup::getSettings ( )
protected

◆ openLoads [1/2]

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().

◆ openLoads() [2/2]

void PMManagerDCPopup::openLoads ( QString  fileName)
private

◆ openRecentLoad

void PMManagerDCPopup::openRecentLoad ( )
slot

to manage the clic on a recent load

References openLoads().

Referenced by updateRecentLoads().

◆ openReferencePML

void PMManagerDCPopup::openReferencePML ( )
slot

◆ previewLoads

void PMManagerDCPopup::previewLoads ( )
slot

this slot allows you to see the preview

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

Referenced by PMManagerDCPopup().

◆ saveAsLoads

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().

◆ saveLoads

void PMManagerDCPopup::saveLoads ( )
slot

this slot allows you to save the current impload file

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

Referenced by PMManagerDCPopup().

◆ saveRecentLoads()

void PMManagerDCPopup::saveRecentLoads ( )
private

save the recent loads file name in the settings

References maxNrOfRecents, and recentLoadFiles.

Referenced by addRecentLoads().

◆ setAtomDataScale

void PMManagerDCPopup::setAtomDataScale ( )
slot

◆ simulation

void PMManagerDCPopup::simulation ( )
slot

show the simulator widgets

References myLM, and LoadsManager::simulation().

Referenced by PMManagerDCPopup().

◆ updateMenuActions()

void PMManagerDCPopup::updateMenuActions ( )

◆ updateRecentLoads()

void PMManagerDCPopup::updateRecentLoads ( )
private

update the recent loads popup

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

Referenced by openLoads(), and PMManagerDCPopup().

Member Data Documentation

◆ close

QAction * PMManagerDCPopup::close
private

◆ edit

QAction * PMManagerDCPopup::edit
private

◆ fixAtomDataScale

QAction * PMManagerDCPopup::fixAtomDataScale
private

◆ hideAtomData

QAction * PMManagerDCPopup::hideAtomData
private

◆ maxNrOfRecents

unsigned int PMManagerDCPopup::maxNrOfRecents
private

max nr of recent loads to keep

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

◆ myLM

LoadsManager* PMManagerDCPopup::myLM
private

◆ nrOfRecents

unsigned int PMManagerDCPopup::nrOfRecents
private

current nr of recent loads kept

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

◆ preview

QAction * PMManagerDCPopup::preview
private

◆ recentLoadFiles

QStringList PMManagerDCPopup::recentLoadFiles
private

◆ recentLoads

QMenu* PMManagerDCPopup::recentLoads
private

the recent loads popup

Referenced by PMManagerDCPopup(), and updateRecentLoads().

◆ save

QAction* PMManagerDCPopup::save
private

menus id

Referenced by PMManagerDCPopup(), and updateMenuActions().

◆ saveAs

QAction * PMManagerDCPopup::saveAs
private

◆ showAddOnAtomData

QAction * PMManagerDCPopup::showAddOnAtomData
private

◆ showDisplacements

QAction * PMManagerDCPopup::showDisplacements
private

◆ showDistances

QAction * PMManagerDCPopup::showDistances
private

◆ showLoads

QAction * PMManagerDCPopup::showLoads
private

◆ showRENError

QAction * PMManagerDCPopup::showRENError
private

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