Computer Assited Medical Intervention Tool Kit  version 4.0
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>

Inherits QObject.

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::StructuralComponentDCProperties ( StructuralComponentDC dc)

Default construtor (give it he SCDC to edit)

References updateProperties().

◆ ~StructuralComponentDCProperties()

StructuralComponentDCProperties::~StructuralComponentDCProperties ( )
inline

the destructor (oauh, really?!!)

References event(), getName(), setName(), and updateProperties().

Member Function Documentation

◆ event()

bool StructuralComponentDCProperties::event ( QEvent *  e)
virtual

intercept signal for dynamic property changed.

References StructuralComponent::getProperties(), StructuralComponentDC::getSC(), myDC, and Properties::set().

Referenced by ~StructuralComponentDCProperties().

◆ getName()

QString StructuralComponentDCProperties::getName ( ) const

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

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

Referenced by ~StructuralComponentDCProperties().

◆ setName()

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

Referenced by ~StructuralComponentDCProperties().

◆ updateProperties()

void StructuralComponentDCProperties::updateProperties ( StructuralComponentDC dc)

Member Data Documentation

◆ myDC

StructuralComponentDC* StructuralComponentDCProperties::myDC
private

Property Documentation

◆ name

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: