![]() |
Computer Assited Medical Intervention Tool Kit
|
A clean dialog to edit (add, modify, delete), loads and their parameters, directly from Core. More...
#include <LoadsEditor.h>
Public Slots | |
void | apply () |
when the user clic on apply | |
void | applyToClicked () |
when user clicked on the applyTo button | |
void | applyToReturnPressed () |
when user pressed return in the applyTo line edit | |
void | applyToTextChanged (const QString &) |
when user has typed some text in the applyTo line edit | |
void | deleteLoad () |
when user click to delete current load | |
void | deleteValueEvent () |
when user wants to delete current value event | |
void | loadTableItemClicked (QTableWidgetItem *) |
when the user click on the load list | |
void | newLoad () |
when user click to add a new load | |
void | newValueEvent () |
when user wants to add a new value event | |
void | nullDisplacementClicked () |
when user toggle null displacement | |
void | reject () |
when the user clic on cancel | |
void | reset () |
when the user clic on reset, reset the loads (using load manager loads) | |
void | unitChanged () |
when user changed the current unit | |
void | valueEventTableItemClicked (QTableWidgetItem *) |
when user double clic on a value event | |
void | xChanged () |
when user changed the direction x | |
void | yChanged () |
when user changed the direction y | |
void | zChanged () |
when user changed the direction z |
Public Member Functions | |
LoadsEditor (LoadsManager *myLoadsManager, QWidget *parent=0) | |
default constructor | |
LoadsEditor (std::vector< camitk::Component * > selectedDC, LoadsManager *myLoadsManager, QWidget *parent=0) | |
another constructor allowing for creating a new load for a particular atom dc | |
virtual void | show () |
overloaded so that it can update the load list | |
void | updateLoads () |
copy the loads from the manager to a local list | |
~LoadsEditor () | |
Destructor. |
Private Member Functions | |
void | createDCLoads (std::vector< camitk::Component * > *) |
create a new load using this DC as targets | |
Load * | createNewLoad () |
create a new load by asking the user for the load type. | |
void | editLoad () |
let user play with a current load | |
void | init () |
initialize everything | |
void | updateLoadsTable () |
refresh load list display | |
void | updateND () |
update the null displacement display | |
void | updateValueEventTable () |
refresh the value event display |
Private Attributes | |
QColor | bgColor |
the initial bg color | |
Load * | editedLoad |
the currently edited load | |
Loads * | loads |
local copy of the loads | |
LoadsManager * | myLM |
my load manager | |
Ui::LoadsEditor | ui |
the ui dialog designed in qtdesigner |
A clean dialog to edit (add, modify, delete), loads and their parameters, directly from Core.
LoadsEditor::LoadsEditor | ( | LoadsManager * | myLoadsManager, |
QWidget * | parent = 0 |
||
) |
LoadsEditor::LoadsEditor | ( | std::vector< camitk::Component * > | selectedDC, |
LoadsManager * | myLoadsManager, | ||
QWidget * | parent = 0 |
||
) |
another constructor allowing for creating a new load for a particular atom dc
References createDCLoads(), init(), myLM, and ui.
LoadsEditor::~LoadsEditor | ( | ) |
Destructor.
References loads.
|
slot |
when the user clic on apply
References LoadsManager::addLoad(), LoadsManager::deleteAllLoads(), loads, myLM, and LoadsManager::updateLoadsDisplay().
Referenced by init().
|
slot |
|
slot |
when user pressed return in the applyTo line edit
References bgColor, editedLoad, PMManagerDC::getPhysicalModel(), LoadsManager::getPMManagerDC(), myLM, ui, and updateLoadsTable().
Referenced by init().
|
slot |
|
private |
create a new load using this DC as targets
References createNewLoad(), editedLoad, editLoad(), AtomDC::getAtom(), CellDC::getCell(), and loads.
Referenced by LoadsEditor().
|
private |
create a new load by asking the user for the load type.
References reject().
Referenced by createDCLoads(), and newLoad().
|
slot |
when user click to delete current load
References editedLoad, loads, ui, and updateLoadsTable().
Referenced by init().
|
slot |
when user wants to delete current value event
References editedLoad, ui, and updateValueEventTable().
Referenced by init().
|
private |
let user play with a current load
References bgColor, editedLoad, ui, updateLoadsTable(), updateND(), and updateValueEventTable().
Referenced by createDCLoads(), loadTableItemClicked(), newLoad(), and show().
|
private |
initialize everything
References apply(), applyToClicked(), applyToReturnPressed(), applyToTextChanged(), deleteLoad(), deleteValueEvent(), editedLoad, loads, loadTableItemClicked(), newLoad(), newValueEvent(), nullDisplacementClicked(), reset(), ui, unitChanged(), updateLoads(), updateLoadsTable(), valueEventTableItemClicked(), xChanged(), yChanged(), and zChanged().
Referenced by LoadsEditor(), and reset().
|
slot |
when the user click on the load list
References editedLoad, editLoad(), loads, and ui.
Referenced by init().
|
slot |
when user click to add a new load
References createNewLoad(), editedLoad, editLoad(), and loads.
Referenced by init().
|
slot |
when user wants to add a new value event
References editedLoad, LoadsValueEvent::getDate(), LoadsValueEvent::getValue(), and updateValueEventTable().
Referenced by init().
|
slot |
when user toggle null displacement
References editedLoad, ui, updateLoadsTable(), and updateND().
Referenced by init().
|
slot |
when the user clic on cancel
Referenced by createNewLoad().
|
slot |
|
virtual |
overloaded so that it can update the load list
References editedLoad, and editLoad().
Referenced by LoadsManager::addLoad(), and LoadsManager::editLoads().
|
slot |
when user changed the current unit
References editedLoad, ui, and updateLoadsTable().
Referenced by init().
void LoadsEditor::updateLoads | ( | ) |
copy the loads from the manager to a local list
References LoadsManager::getLoads(), loads, and myLM.
Referenced by LoadsManager::editLoads(), and init().
|
private |
refresh load list display
References editedLoad, loads, and ui.
Referenced by applyToReturnPressed(), deleteLoad(), editLoad(), init(), nullDisplacementClicked(), unitChanged(), xChanged(), yChanged(), and zChanged().
|
private |
update the null displacement display
References editedLoad, and ui.
Referenced by editLoad(), nullDisplacementClicked(), xChanged(), yChanged(), and zChanged().
|
private |
refresh the value event display
References editedLoad, and ui.
Referenced by deleteValueEvent(), editLoad(), newValueEvent(), and valueEventTableItemClicked().
|
slot |
when user double clic on a value event
References editedLoad, LoadsValueEvent::getDate(), LoadsValueEvent::getValue(), ui, and updateValueEventTable().
Referenced by init().
|
slot |
when user changed the direction x
References editedLoad, ui, updateLoadsTable(), and updateND().
Referenced by init().
|
slot |
when user changed the direction y
References editedLoad, ui, updateLoadsTable(), and updateND().
Referenced by init().
|
slot |
when user changed the direction z
References editedLoad, ui, updateLoadsTable(), and updateND().
Referenced by init().
|
private |
the initial bg color
Referenced by applyToReturnPressed(), and editLoad().
|
private |
the currently edited load
Referenced by applyToClicked(), applyToReturnPressed(), createDCLoads(), deleteLoad(), deleteValueEvent(), editLoad(), init(), loadTableItemClicked(), newLoad(), newValueEvent(), nullDisplacementClicked(), show(), unitChanged(), updateLoadsTable(), updateND(), updateValueEventTable(), valueEventTableItemClicked(), xChanged(), yChanged(), and zChanged().
|
private |
local copy of the loads
Referenced by apply(), createDCLoads(), deleteLoad(), init(), loadTableItemClicked(), newLoad(), updateLoads(), updateLoadsTable(), and ~LoadsEditor().
|
private |
my load manager
Referenced by apply(), applyToReturnPressed(), LoadsEditor(), and updateLoads().
|
private |
the ui dialog designed in qtdesigner
Referenced by applyToReturnPressed(), applyToTextChanged(), deleteLoad(), deleteValueEvent(), editLoad(), init(), LoadsEditor(), loadTableItemClicked(), nullDisplacementClicked(), unitChanged(), updateLoadsTable(), updateND(), updateValueEventTable(), valueEventTableItemClicked(), xChanged(), yChanged(), and zChanged().