Computer Assited Medical Intervention Tool Kit  version 4.0
StructuralComponentDCProperties.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 STRUCTURALCOMPONENTDCPROPERTIES_H
27 #define STRUCTURALCOMPONENTDCPROPERTIES_H
28 
29 
30 #include <QObject>
31 
33 
47 class StructuralComponentDCProperties : public QObject {
48  Q_OBJECT
49 
51  Q_PROPERTY( QString name READ getName WRITE setName )
52 
53 public:
54 
57 
60 
63 
65  void setName( const QString );
67 
69  QString getName() const;
70 
72  virtual bool event(QEvent* e);
73 
74 private:
75  // the currently selected StructuralComponentDC
77 
78 };
79 
80 #endif
81 
virtual bool event(QEvent *e)
intercept signal for dynamic property changed.
Definition: StructuralComponentDCProperties.cpp:95
StructuralComponentDC * myDC
Definition: StructuralComponentDCProperties.h:76
void updateProperties(StructuralComponentDC *)
change the currently managed SCDC and update the value of the properties
Definition: StructuralComponentDCProperties.cpp:50
QString getName() const
get the atom&#39;s index in a form the property editor understands
Definition: StructuralComponentDCProperties.cpp:87
~StructuralComponentDCProperties()
the destructor (oauh, really?!!)
Definition: StructuralComponentDCProperties.h:59
The manager of the Structural component data.
Definition: StructuralComponentDC.h:83
void setName(const QString)
Set and get method for all the properties.
Definition: StructuralComponentDCProperties.cpp:77
StructuralComponentDCProperties(StructuralComponentDC *)
Default construtor (give it he SCDC to edit)
Definition: StructuralComponentDCProperties.cpp:41
The class StructuralComponentDCProperties defines an QObject that allows user interaction with proper...
Definition: StructuralComponentDCProperties.h:47
QString name
the name property that will be managed in the property dialog
Definition: StructuralComponentDCProperties.h:51