![]() |
Computer Assited Medical Intervention Tool Kit
|
The class CellDCProperties defines an QObject that allows user interaction with properties of a cell (in an automatically generated UI) More...
#include <CellDCProperties.h>
Public Types | |
| enum | GeometricType { INVALID, ATOM, TETRAHEDRON, HEXAHEDRON, WEDGE, PYRAMID, LINE, POLY_LINE, POLY_VERTEX, TRIANGLE, QUAD } |
| this is a copy of StructureProperties::GeometricType, I tried to reuse it but it generated crashes... More... | |
Public Member Functions | |
| CellDCProperties (CellDC *) | |
| the Qt property enum has to be build from the C++ enum GeometricType | |
| virtual bool | event (QEvent *e) |
| intercept signal for dynamic property changed. | |
| GeometricType | getGeometry () const |
| get the geometric type | |
| QString | getName () const |
| get the atom's index in a form the property editor understands | |
| void | setName (const QString) |
| Set and get method for all the properties. | |
| void | updateProperties (CellDC *) |
| change the currently managed CellDC and update the value of the properties | |
| ~CellDCProperties () | |
Properties | |
| GeometricType | geometry |
| the geometric type property | |
| QString | name |
| the index property that will be managed in the property dialog | |
Private Attributes | |
| CellDC * | myDC |
| the currently selected CellDC | |
The class CellDCProperties defines an QObject that allows user interaction with properties of a cell (in an automatically generated UI)
The default cell 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).
| CellDCProperties::CellDCProperties | ( | CellDC * | dc | ) |
the Qt property enum has to be build from the C++ enum GeometricType
Default construtor
References updateProperties().
|
inline |
|
virtual |
intercept signal for dynamic property changed.
References CellDC::getCell(), and myDC.
| CellDCProperties::GeometricType CellDCProperties::getGeometry | ( | ) | const |
get the geometric type
References ATOM, CellDC::getCell(), HEXAHEDRON, INVALID, LINE, myDC, POLY_LINE, POLY_VERTEX, PYRAMID, QUAD, TETRAHEDRON, TRIANGLE, and WEDGE.
| QString CellDCProperties::getName | ( | ) | const |
get the atom's index in a form the property editor understands
References camitk::Component::getName(), and myDC.
Referenced by setName().
| void CellDCProperties::setName | ( | const QString | id | ) |
Set and get method for all the properties.
change the cell's name (if name is not an index)
References CellDC::getCell(), getName(), myDC, camitk::Component::refresh(), camitk::Component::setModified(), and CellDC::setName().
| void CellDCProperties::updateProperties | ( | CellDC * | dc | ) |
change the currently managed CellDC and update the value of the properties
References CellDC::getCell(), and myDC.
Referenced by CellDCProperties().
|
private |
the currently selected CellDC
Referenced by event(), getGeometry(), getName(), setName(), and updateProperties().
|
read |
the geometric type property
|
readwrite |
the index property that will be managed in the property dialog
1.8.1.2