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

A clean dialog to edit (add, modify, delete), loads and their parameters, directly from Core. More...

#include <LoadsEditor.h>

+ Inheritance diagram for LoadsEditor:

Public Slots

void apply ()
 when the user clic on apply More...
 
void applyToClicked ()
 when user clicked on the applyTo button More...
 
void applyToReturnPressed ()
 when user pressed return in the applyTo line edit More...
 
void applyToTextChanged (const QString &)
 when user has typed some text in the applyTo line edit More...
 
void deleteLoad ()
 when user click to delete current load More...
 
void deleteValueEvent ()
 when user wants to delete current value event More...
 
void loadTableItemClicked (QTableWidgetItem *)
 when the user click on the load list More...
 
void newLoad ()
 when user click to add a new load More...
 
void newValueEvent ()
 when user wants to add a new value event More...
 
void nullDisplacementClicked ()
 when user toggle null displacement More...
 
void reject ()
 when the user clic on cancel More...
 
void reset ()
 when the user clic on reset, reset the loads (using load manager loads) More...
 
void unitChanged ()
 when user changed the current unit More...
 
void valueEventTableItemClicked (QTableWidgetItem *)
 when user double clic on a value event More...
 
void xChanged ()
 when user changed the direction x More...
 
void yChanged ()
 when user changed the direction y More...
 
void zChanged ()
 when user changed the direction z More...
 

Public Member Functions

 LoadsEditor (LoadsManager *myLoadsManager, QWidget *parent=0)
 default constructor More...
 
 LoadsEditor (std::vector< camitk::Component * > selectedDC, LoadsManager *myLoadsManager, QWidget *parent=0)
 another constructor allowing for creating a new load for a particular atom dc More...
 
virtual void show ()
 overloaded so that it can update the load list More...
 
void updateLoads ()
 copy the loads from the manager to a local list More...
 
 ~LoadsEditor ()
 Destructor. More...
 

Private Member Functions

void createDCLoads (std::vector< camitk::Component * > *)
 create a new load using this DC as targets More...
 
LoadcreateNewLoad ()
 create a new load by asking the user for the load type. More...
 
void editLoad ()
 let user play with a current load More...
 
void init ()
 initialize everything More...
 
void updateLoadsTable ()
 refresh load list display More...
 
void updateND ()
 update the null displacement display More...
 
void updateValueEventTable ()
 refresh the value event display More...
 

Private Attributes

QColor bgColor
 the initial bg color More...
 
LoadeditedLoad
 the currently edited load More...
 
Loadsloads
 local copy of the loads More...
 
LoadsManagermyLM
 my load manager More...
 
Ui::LoadsEditor ui
 the ui dialog designed in qtdesigner More...
 

Detailed Description

A clean dialog to edit (add, modify, delete), loads and their parameters, directly from Core.

Constructor & Destructor Documentation

LoadsEditor::LoadsEditor ( LoadsManager myLoadsManager,
QWidget *  parent = 0 
)

default constructor

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

LoadsEditor::~LoadsEditor ( )

Destructor.

Member Function Documentation

void LoadsEditor::apply ( )
slot

when the user clic on apply

void LoadsEditor::applyToClicked ( )
slot

when user clicked on the applyTo button

void LoadsEditor::applyToReturnPressed ( )
slot

when user pressed return in the applyTo line edit

void LoadsEditor::applyToTextChanged ( const QString &  )
slot

when user has typed some text in the applyTo line edit

void LoadsEditor::createDCLoads ( std::vector< camitk::Component * > *  )
private

create a new load using this DC as targets

Load* LoadsEditor::createNewLoad ( )
private

create a new load by asking the user for the load type.

Returns
a new load of type choose by the user or NULL if user cancelled
void LoadsEditor::deleteLoad ( )
slot

when user click to delete current load

void LoadsEditor::deleteValueEvent ( )
slot

when user wants to delete current value event

void LoadsEditor::editLoad ( )
private

let user play with a current load

void LoadsEditor::init ( )
private

initialize everything

void LoadsEditor::loadTableItemClicked ( QTableWidgetItem *  )
slot

when the user click on the load list

void LoadsEditor::newLoad ( )
slot

when user click to add a new load

void LoadsEditor::newValueEvent ( )
slot

when user wants to add a new value event

void LoadsEditor::nullDisplacementClicked ( )
slot

when user toggle null displacement

void LoadsEditor::reject ( )
slot

when the user clic on cancel

void LoadsEditor::reset ( )
slot

when the user clic on reset, reset the loads (using load manager loads)

virtual void LoadsEditor::show ( )
virtual

overloaded so that it can update the load list

void LoadsEditor::unitChanged ( )
slot

when user changed the current unit

void LoadsEditor::updateLoads ( )

copy the loads from the manager to a local list

void LoadsEditor::updateLoadsTable ( )
private

refresh load list display

void LoadsEditor::updateND ( )
private

update the null displacement display

void LoadsEditor::updateValueEventTable ( )
private

refresh the value event display

void LoadsEditor::valueEventTableItemClicked ( QTableWidgetItem *  )
slot

when user double clic on a value event

void LoadsEditor::xChanged ( )
slot

when user changed the direction x

void LoadsEditor::yChanged ( )
slot

when user changed the direction y

void LoadsEditor::zChanged ( )
slot

when user changed the direction z

Member Data Documentation

QColor LoadsEditor::bgColor
private

the initial bg color

Load* LoadsEditor::editedLoad
private

the currently edited load

Loads* LoadsEditor::loads
private

local copy of the loads

LoadsManager* LoadsEditor::myLM
private

my load manager

Ui::LoadsEditor LoadsEditor::ui
private

the ui dialog designed in qtdesigner


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