![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
The class CellDCProperties defines an QObject that allows user interaction with properties of a cell (in an automatically generated UI) More...
#include <CellDCProperties.h>
Inherits QObject.
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).
this is a copy of StructureProperties::GeometricType, I tried to reuse it but it generated crashes...
| Enumerator | |
|---|---|
| INVALID | |
| ATOM | |
| TETRAHEDRON | |
| HEXAHEDRON | |
| WEDGE | |
| PYRAMID | |
| LINE | |
| POLY_LINE | |
| POLY_VERTEX | |
| TRIANGLE | |
| QUAD | |
| CellDCProperties::CellDCProperties | ( | CellDC * | dc | ) |
the Qt property enum has to be build from the C++ enum GeometricType
Default construtor
References updateProperties().
|
inline |
References getName(), setName(), and updateProperties().
|
virtual |
intercept signal for dynamic property changed.
References CellDC::getCell(), Cell::getProperties(), myDC, and Properties::set().
| CellDCProperties::GeometricType CellDCProperties::getGeometry | ( | ) | const |
get the geometric type
References ATOM, StructureProperties::ATOM, CellDC::getCell(), Structure::getType(), HEXAHEDRON, StructureProperties::HEXAHEDRON, INVALID, LINE, StructureProperties::LINE, myDC, POLY_LINE, StructureProperties::POLY_LINE, POLY_VERTEX, StructureProperties::POLY_VERTEX, PYRAMID, StructureProperties::PYRAMID, QUAD, StructureProperties::QUAD, TETRAHEDRON, StructureProperties::TETRAHEDRON, TRIANGLE, StructureProperties::TRIANGLE, WEDGE, and StructureProperties::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(), and ~CellDCProperties().
| 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().
Referenced by ~CellDCProperties().
| void CellDCProperties::updateProperties | ( | CellDC * | dc | ) |
change the currently managed CellDC and update the value of the properties
References CellDC::getCell(), Properties::getField(), Structure::getIndex(), Cell::getProperties(), Properties::getString(), myDC, Properties::numberOfFields(), and camitk::Application::showStatusBarMessage().
Referenced by CellDCProperties(), and ~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.13