Computer Assited Medical Intervention Tool Kit  version 4.0
CellDC.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 CellDC_H
27 #define CellDC_H
28 
29 #include <Component.h>
30 //#include "StructureDC.h"
31 #include "StructuralComponentDC.h"
32 //Added by qt3to4:
33 #include <QPixmap>
34 
35 class Cell;
36 class Atom;
37 class CellDCProperties;
47 class CellDC : public StructuralComponentDC {
48  Q_OBJECT
49 public:
51  CellDC(camitk::Component *, PMManagerDC * pmManagerDC, Cell *);
52 
54  virtual ~CellDC();
55 
60  virtual QPixmap getIcon();
62 
63  virtual void setName(const QString &);
64 
66  virtual void setSelected(const bool, const bool recursive=false);
67 
69  virtual QObject * getPropertyObject();
71 
73  virtual Cell * getCell();
74 
79  virtual void createPointData();
80 
82  virtual void destroyPointData();
83 
84 private:
86  virtual void initRepresentation();
87 
90 
92  static QPixmap * myPixmap;
93 
96 };
97 
98 
99 inline Cell * CellDC::getCell() {
100  return myCell;
101 }
102 
103 #endif
A cell has an unique index in the physical model object, is composed by atoms, and different basic pr...
Definition: Cell.h:46
static QPixmap * myPixmap
the CellDC pixmap
Definition: CellDC.h:92
The manager of the physical model data.
Definition: PMManagerDC.h:97
virtual void setSelected(const bool, const bool recursive=false)
if selected, creates the 3D representation (that was delayed in the constructor). Blocks all recursiv...
Definition: CellDC.cpp:98
Cell * myCell
store the cell here, as well as in the SCDC, because otherwise the down cast lose the specific Struct...
Definition: CellDC.h:89
virtual void setName(const QString &)
set the name to be displayed
Definition: CellDC.cpp:227
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:299
The class CellDCProperties defines an QObject that allows user interaction with properties of a cell ...
Definition: CellDCProperties.h:44
virtual void createPointData()
create all the point data to display specific information (only works for SCs that have a surface rep...
Definition: CellDC.cpp:245
virtual QPixmap getIcon()
Get the pixmap that will be displayed for this node.
Definition: CellDC.cpp:236
The manager of the Structural component data.
Definition: StructuralComponentDC.h:83
An atom has an unique index in the physical model object, a 3D position, and different basic properti...
Definition: Atom.h:49
virtual QObject * getPropertyObject()
reimplement this method to give the property object to the property editor
Definition: CellDC.cpp:89
virtual void initRepresentation()
the concrete building of the 3D object
Definition: CellDC.cpp:120
The manager of the Cell data.
Definition: CellDC.h:47
virtual Cell * getCell()
get the atom this dc is representing
Definition: CellDC.h:99
CellDCProperties * myProp
the atom&#39;properties
Definition: CellDC.h:95
virtual void destroyPointData()
destroy all the point data
Definition: CellDC.cpp:262
CellDC(camitk::Component *, PMManagerDC *pmManagerDC, Cell *)
Default constructor.
Definition: CellDC.cpp:63
virtual ~CellDC()
destructor
Definition: CellDC.cpp:83