Computer Assisted Medical Intervention Tool Kit  version 5.2
VtkMeshComponent.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2024 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, TIMC, 38000 Grenoble, France
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 VTK_MESH_COMPONENT_H
27 #define VTK_MESH_COMPONENT_H
28 
29 #include <MeshComponent.h>
30 
31 #include "VtkMeshComponentAPI.h"
32 #include "VtkMeshUtil.h"
33 
34 class VtkMeshComponentProperties;
35 class vtkDoubleArray;
36 class vtkPointData;
37 
46  Q_OBJECT
47 
48 public:
52  VtkMeshComponent(const QString& fileName);
53 
55  virtual ~VtkMeshComponent();
56 
58  bool exportMDL(std::string filename);
59 
61  virtual QPixmap getIcon();
62 
64  virtual void updateProperty(QString name, QVariant value);
65 
66 private:
67 
70 
72  VtkMeshComponentProperties* myProperties;
73 
75  static QPixmap* myPixmap;
76 
77  // initialize the dynamic properties
78  virtual void initDynamicProperties();
79 
80 };
81 
82 
83 
84 
85 #endif
#define VTK_COMPONENT_API
Definition: VtkMeshComponentAPI.h:54
Features various Vtk mesh for CamiTK.
Definition: VtkMeshComponent.h:45
bool exportMDL(std::string filename)
Export as MDL (see Geometry).
VtkPointSetType
constant for the vtk point set type
Definition: VtkMeshUtil.h:51
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
void initDynamicProperties()
create and initialize dynamic properties
Definition: MeshComponent.cpp:372
QPixmap getIcon() override
Get the pixmap that will be displayed for this node.
Definition: MeshComponent.cpp:1256
void updateProperty(QString, QVariant) override
update property: no specific properties to manage, this is needed to avoid console warnings.
Definition: MeshComponent.h:134