![]() |
Computer Assited Medical Intervention Tool Kit
version 3.3
|
The class CellDCProperties defines an QObject that allows user interaction with properties of a cell (in an automatically generated UI) More...
#include <CellDCProperties.h>
Inheritance diagram for CellDCProperties: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 More... | |
| virtual bool | event (QEvent *e) |
| intercept signal for dynamic property changed. More... | |
| GeometricType | getGeometry () const |
| get the geometric type 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... | |
| void | updateProperties (CellDC *) |
| change the currently managed CellDC and update the value of the properties More... | |
| ~CellDCProperties () | |
Properties | |
| GeometricType | geometry |
| the geometric type property More... | |
| QString | name |
| the index property that will be managed in the property dialog More... | |
Private Attributes | |
| CellDC * | myDC |
| the currently selected CellDC More... | |
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 * | ) |
the Qt property enum has to be build from the C++ enum GeometricType
Default construtor
|
inline |
|
virtual |
intercept signal for dynamic property changed.
| GeometricType CellDCProperties::getGeometry | ( | ) | const |
get the geometric type
| QString CellDCProperties::getName | ( | ) | const |
get the atom's index in a form the property editor understands
| void CellDCProperties::setName | ( | const QString | ) |
Set and get method for all the properties.
change the cell's name (if name is not an index)
| void CellDCProperties::updateProperties | ( | CellDC * | ) |
change the currently managed CellDC and update the value of the properties
|
readprivate |
the geometric type property
|
readwriteprivate |
the index property that will be managed in the property dialog
1.8.8