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

The class StructuralComponentDCProperties defines an QObject that allows user interaction with properties of a structural component (in an automatically generated UI) More...

#include <StructuralComponentDCProperties.h>

+ Inheritance diagram for StructuralComponentDCProperties:

Public Member Functions

virtual bool event (QEvent *e)
 intercept signal for dynamic property changed. More...
 
QString getName () const
 get the atom's index in a form the property editor understands More...
 
void setName (const QString)
 Set and get method for all the properties. More...
 
 StructuralComponentDCProperties (StructuralComponentDC *)
 Default construtor (give it he SCDC to edit) More...
 
void updateProperties (StructuralComponentDC *)
 change the currently managed SCDC and update the value of the properties More...
 
 ~StructuralComponentDCProperties ()
 the destructor (oauh, really?!!) More...
 

Properties

QString name
 the name property that will be managed in the property dialog More...
 

Private Attributes

StructuralComponentDCmyDC
 

Detailed Description

The class StructuralComponentDCProperties defines an QObject that allows user interaction with properties of a structural component (in an automatically generated UI)

The default structural component 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

StructuralComponentDCProperties::StructuralComponentDCProperties ( StructuralComponentDC dc)

Default construtor (give it he SCDC to edit)

References updateProperties().

StructuralComponentDCProperties::~StructuralComponentDCProperties ( )
inline

the destructor (oauh, really?!!)

Member Function Documentation

bool StructuralComponentDCProperties::event ( QEvent *  e)
virtual

intercept signal for dynamic property changed.

References StructuralComponentDC::getSC(), and myDC.

QString StructuralComponentDCProperties::getName ( ) const

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

References camitk::Component::getName(), and myDC.

void StructuralComponentDCProperties::setName ( const QString  id)

Set and get method for all the properties.

change the cell's name (if name is not an index)

References StructuralComponentDC::getSC(), myDC, camitk::Component::refresh(), camitk::Component::setModified(), and ComponentDC::setName().

void StructuralComponentDCProperties::updateProperties ( StructuralComponentDC dc)

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

References StructuralComponentDC::getSC(), and myDC.

Referenced by StructuralComponentDCProperties().

Member Data Documentation

StructuralComponentDC* StructuralComponentDCProperties::myDC
private

Property Documentation

QString StructuralComponentDCProperties::name
readwrite

the name property that will be managed in the property dialog


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