Computer Assited Medical Intervention Tool Kit  version 4.0
CellDCProperties.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2016 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef CELLDCPROPERTIES_H
27 #define CELLDCPROPERTIES_H
28 
29 #include <QObject>
30 class CellDC;
44 class CellDCProperties : public QObject {
45  Q_OBJECT
46 
48  Q_PROPERTY( QString name READ getName WRITE setName )
49 
50 
51  Q_PROPERTY( GeometricType geometry READ getGeometry )
52 
54  Q_ENUMS( GeometricType )
55 
56 public:
57 
61 
63  void updateProperties(CellDC*);
64 
66  void setName( const QString );
68 
70  QString getName() const;
71 
74 
76  GeometricType getGeometry() const;
77 
79  virtual bool event(QEvent* e);
80 
81 private:
82 
85 
86 };
87 
88 #endif
89 
void updateProperties(CellDC *)
change the currently managed CellDC and update the value of the properties
Definition: CellDCProperties.cpp:47
QString getName() const
get the atom&#39;s index in a form the property editor understands
Definition: CellDCProperties.cpp:90
QString name
the index property that will be managed in the property dialog
Definition: CellDCProperties.h:48
void setName(const QString)
Set and get method for all the properties.
Definition: CellDCProperties.cpp:74
Definition: CellDCProperties.h:73
GeometricType
this is a copy of StructureProperties::GeometricType, I tried to reuse it but it generated crashes...
Definition: CellDCProperties.h:73
GeometricType geometry
the geometric type property
Definition: CellDCProperties.h:51
Definition: CellDCProperties.h:73
Definition: CellDCProperties.h:73
The class CellDCProperties defines an QObject that allows user interaction with properties of a cell ...
Definition: CellDCProperties.h:44
Definition: CellDCProperties.h:73
Definition: CellDCProperties.h:73
Definition: CellDCProperties.h:73
Definition: CellDCProperties.h:73
Definition: CellDCProperties.h:73
virtual bool event(QEvent *e)
intercept signal for dynamic property changed.
Definition: CellDCProperties.cpp:144
CellDC * myDC
the currently selected CellDC
Definition: CellDCProperties.h:84
Definition: CellDCProperties.h:73
The manager of the Cell data.
Definition: CellDC.h:47
GeometricType getGeometry() const
get the geometric type
Definition: CellDCProperties.cpp:98
Definition: CellDCProperties.h:73
Definition: CellDCProperties.h:73