![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
The class AtomDCWidget defines a widget controling the properties of an instance of an AtomDC. More...
#include <AtomDCWidget.h>
Inherits QWidget.
Public Slots | |
void | usedInTableClicked (int, int) |
Public Member Functions | |
AtomDCWidget (AtomDC *, QWidget *parent=0) | |
Default construtor. More... | |
void | updateProperties (AtomDC *) |
change the currently managed AtomDC and update the value of the properties More... | |
~AtomDCWidget () | |
Private Attributes | |
QLabel * | infoLabel |
AtomDC * | myDC |
the currently selected atom's AtomDC More... | |
QTableWidget * | usedInTable |
The class AtomDCWidget defines a widget controling the properties of an instance of an AtomDC.
This widget is special as there is only one AtomDCWidget instance for ALL the atoms of a physical model. When the user selects an atom for the first time, the widget is created and displayed. When the user selects another atom, the widget is updated with the property of the selected atom (via method updateProperties(...) ). see PMManagerDC for the control of the instance.
AtomDCWidget::AtomDCWidget | ( | AtomDC * | adc, |
QWidget * | parent = 0 |
||
) |
Default construtor.
References infoLabel, usedInTable, and usedInTableClicked().
|
inline |
References updateProperties(), and usedInTableClicked().
void AtomDCWidget::updateProperties | ( | AtomDC * | adc | ) |
change the currently managed AtomDC and update the value of the properties
References cellPixmap, AtomDC::getAtom(), Structure::getIndex(), Component::getName(), Structure::getNumberOfStructuralComponents(), StructuralComponent::getNumberOfStructures(), Structure::getStructuralComponent(), infoLabel, Component::isExclusive(), StructuralComponent::isInstanceOf(), myDC, structuralComponentPixmap, and usedInTable.
Referenced by PMManagerDC::getAtomDCWidget(), and ~AtomDCWidget().
|
slot |
|
private |
Referenced by AtomDCWidget(), and updateProperties().
|
private |
the currently selected atom's AtomDC
Referenced by updateProperties(), and usedInTableClicked().
|
private |
Referenced by AtomDCWidget(), and updateProperties().