Computer Assited Medical Intervention Tool Kit  version 3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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>

+ Inheritance diagram for AtomDCProperties:

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

Default construtor.

AtomDCProperties::~AtomDCProperties ( )
inline

destructor

Member Function Documentation

virtual bool AtomDCProperties::event ( QEvent *  e)
virtual

intercept signal for dynamic property changed.

int AtomDCProperties::getIndex ( ) const

get the atom's index in a form the property editor understands

QVector3D AtomDCProperties::getPosition ( ) const

get the atom's position in a form the property editor understands

void AtomDCProperties::setIndex ( int  )

change the atom's index from the property editor

void AtomDCProperties::setPosition ( QVector3D  )

change the atom's position from the property editor

void AtomDCProperties::updateProperties ( AtomDC )

change the currently managed AtomDC and update the value of the properties

Member Data Documentation

AtomDC* AtomDCProperties::myDC
private

the currently selected atom's AtomDC

Property Documentation

int AtomDCProperties::index
readwriteprivate

the index property that will be managed in the property dialog

QVector3D AtomDCProperties::position
readwriteprivate

the 3D position property


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