![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
The class AtomDCProperties defines an object that allows interaction of some properties of an atom. More...
#include <AtomDCProperties.h>
Inherits QObject.
Public Member Functions | |
AtomDCProperties (AtomDC *) | |
Default construtor. More... | |
virtual bool | event (QEvent *e) |
intercept signal for dynamic property changed. More... | |
int | getIndex () const |
get the atom's index in a form the property editor understands More... | |
QVector3D | getPosition () const |
get the atom's position in a form the property editor understands More... | |
void | setIndex (int) |
change the atom's index from the property editor More... | |
void | setPosition (QVector3D) |
change the atom's position from the property editor More... | |
void | updateProperties (AtomDC *) |
change the currently managed AtomDC and update the value of the properties More... | |
~AtomDCProperties () | |
destructor More... | |
Properties | |
int | index |
the index property that will be managed in the property dialog More... | |
QVector3D | position |
the 3D position property More... | |
Private Attributes | |
AtomDC * | myDC |
the currently selected atom's AtomDC More... | |
The class AtomDCProperties defines an object that allows interaction of some properties of an atom.
The default atom properties are created thanks to Q_PROPERTY. The extra properties found in the PML document are also available thanks to the dynamic features of the Qt's Property System (see qt documentation).
AtomDCProperties::AtomDCProperties | ( | AtomDC * | adc | ) |
Default construtor.
References updateProperties().
|
inline |
destructor
References event(), getIndex(), getPosition(), setIndex(), setPosition(), and updateProperties().
|
virtual |
intercept signal for dynamic property changed.
References AtomDC::getAtom(), Atom::getProperties(), myDC, and Properties::set().
Referenced by ~AtomDCProperties().
int AtomDCProperties::getIndex | ( | ) | const |
get the atom's index in a form the property editor understands
References AtomDC::getAtom(), Structure::getIndex(), and myDC.
Referenced by ~AtomDCProperties().
QVector3D AtomDCProperties::getPosition | ( | ) | const |
get the atom's position in a form the property editor understands
References AtomDC::getAtom(), Atom::getPosition(), and myDC.
Referenced by ~AtomDCProperties().
void AtomDCProperties::setIndex | ( | int | id | ) |
change the atom's index from the property editor
References AtomDC::getAtom(), myDC, and Atom::setIndex().
Referenced by ~AtomDCProperties().
void AtomDCProperties::setPosition | ( | QVector3D | newCoord | ) |
change the atom's position from the property editor
References myDC, camitk::Component::refresh(), AtomDC::resetAlreadyMovedFlag(), and AtomDC::setPosition().
Referenced by ~AtomDCProperties().
void AtomDCProperties::updateProperties | ( | AtomDC * | adc | ) |
change the currently managed AtomDC and update the value of the properties
References AtomDC::getAtom(), Properties::getField(), Structure::getIndex(), Atom::getProperties(), Properties::getString(), myDC, and Properties::numberOfFields().
Referenced by AtomDCProperties(), and ~AtomDCProperties().
|
private |
the currently selected atom's AtomDC
Referenced by event(), getIndex(), getPosition(), setIndex(), setPosition(), and updateProperties().
|
readwrite |
the index property that will be managed in the property dialog
|
readwrite |
the 3D position property