Computer Assited Medical Intervention Tool Kit  version 4.0
Public Member Functions | Properties | Private Attributes | List of all members
AtomDCProperties Class Reference

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

AtomDCmyDC
 the currently selected atom's AtomDC More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ AtomDCProperties()

AtomDCProperties::AtomDCProperties ( AtomDC adc)

Default construtor.

References updateProperties().

◆ ~AtomDCProperties()

AtomDCProperties::~AtomDCProperties ( )
inline

Member Function Documentation

◆ event()

bool AtomDCProperties::event ( QEvent *  e)
virtual

intercept signal for dynamic property changed.

References AtomDC::getAtom(), Atom::getProperties(), myDC, and Properties::set().

Referenced by ~AtomDCProperties().

◆ getIndex()

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

◆ getPosition()

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

◆ setIndex()

void AtomDCProperties::setIndex ( int  id)

change the atom's index from the property editor

References AtomDC::getAtom(), myDC, and Atom::setIndex().

Referenced by ~AtomDCProperties().

◆ setPosition()

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

◆ updateProperties()

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

Member Data Documentation

◆ myDC

AtomDC* AtomDCProperties::myDC
private

the currently selected atom's AtomDC

Referenced by event(), getIndex(), getPosition(), setIndex(), setPosition(), and updateProperties().

Property Documentation

◆ index

int AtomDCProperties::index
readwrite

the index property that will be managed in the property dialog

◆ position

QVector3D AtomDCProperties::position
readwrite

the 3D position property


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