|
Computer Assited Medical Intervention Tool Kit
version 5.0
|
|
Go to the documentation of this file.
26 #ifndef VTK_MESH_COMPONENT_H
27 #define VTK_MESH_COMPONENT_H
34 class VtkMeshComponentProperties;
58 bool exportMDL(std::string filename);
#define VTK_COMPONENT_API
Definition: VtkMeshComponentAPI.h:54
VtkMeshComponent(const QString &fileName)
default constructor.
Definition: VtkMeshComponent.cpp:43
void updateProperty(QString, QVariant) override
update property: no specific properties to manage, this is needed to avoid console warnings.
Definition: MeshComponent.h:134
void setDataRepresentationOff(int dataType=SCALARS|VECTORS|TENSORS)
hide all the data representation of a given data type (hide all by default)
Definition: MeshComponent.cpp:845
VtkPointSetType
constant for the vtk point set type
Definition: VtkMeshUtil.h:51
virtual void updateProperty(QString name, QVariant value)
update a specific property
Definition: VtkMeshComponent.cpp:144
vtkSmartPointer< vtkPointSet > vtkSmartPointer< vtkAlgorithmOutput > getActor
Definition: sdk/libraries/core/component/Component.h:589
QString myFileName
the file name from which the Component is loaded
Definition: sdk/libraries/core/component/Component.h:845
This class describes a property that can be used in components and actions or any class that needs to...
Definition: Property.h:303
virtual QPixmap getIcon()
the vtk logo (for the explorer viewer)
Definition: VtkMeshComponent.cpp:71
virtual void initDynamicProperties()
Definition: VtkMeshComponent.cpp:79
void setAttribute(const QString &attribute, const QVariant &value)
Set a given property for this attribute.
Definition: Property.cpp:183
static vtkSmartPointer< vtkPointSet > buildVtkPointSet(std::string vtkFileName, VtkPointSetType whatIsIt=UNKNOWN)
Static method that could be used from anywhere to build a vtkPointSet from a vtk file.
Definition: VtkMeshUtil.cpp:74
Exception class to handle abortion in component instantiation. Particularly useful to handle construc...
Definition: AbortException.h:66
virtual ~VtkMeshComponent()
the virtual destructor
Definition: VtkMeshComponent.cpp:63
@ UNKNOWN
Definition: VtkMeshUtil.h:52
Features various Vtk mesh for CamiTK.
Definition: VtkMeshComponent.h:45
static QPixmap * myPixmap
the vtk logo
Definition: VtkMeshComponent.h:75
static VtkPointSetType typeOf(std::string vtkFileName)
static method that tells you what kind of vtk file it is.
Definition: VtkMeshUtil.cpp:241
void setName(const QString &) override
set the name to be displayed
Definition: sdk/libraries/core/component/Component.h:932
VtkMeshUtil::VtkPointSetType whatIsIt
subtype of vtkPointSet
Definition: VtkMeshComponent.h:69
Basic component to manage any kind of mesh.
Definition: MeshComponent.h:53
QPixmap getIcon() override
Get the pixmap that will be displayed for this node.
Definition: MeshComponent.cpp:1172
virtual void refresh()
refresh all the viewer that are currently displaying this Component At the end the InterfaceNode modi...
Definition: sdk/libraries/core/component/Component.cpp:286
bool addProperty(Property *) override
Add a new CamiTK property to the component.
Definition: sdk/libraries/core/component/Component.cpp:517
static std::string getVtkPointSetHeaderString(std::string vtkFileName, VtkPointSetType whatIsIt=UNKNOWN)
static method to get the vtk header string from a vtk file
Definition: VtkMeshUtil.cpp:193
void initDynamicProperties()
create and initialize dynamic properties
Definition: MeshComponent.cpp:331
void initRepresentation() override final
the concrete building of the 3D objects (Slice/Geometry): none in this case, everything is done by in...
Definition: MeshComponent.h:399
VtkMeshComponentProperties * myProperties
properties for vtk mesh type
Definition: VtkMeshComponent.h:72
Definition: Action.cpp:35