NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cxXMLPolyDataMeshReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXXMLPOLYDATAMESHREADER_H
13 #define CXXMLPOLYDATAMESHREADER_H
14 
16 #include "org_custusx_core_filemanager_Export.h"
17 
18 class ctkPluginContext;
19 
20 namespace cx
21 {
22 
26 class org_custusx_core_filemanager_EXPORT XMLPolyDataMeshReader: public FileReaderWriterImplService
27 {
28 public:
29  Q_INTERFACES(cx::FileReaderWriterService)
30 
31  XMLPolyDataMeshReader(PatientModelServicePtr patientModelService);
33 
34  bool isNull(){ return false;}
35 
36  virtual bool canRead(const QString& type, const QString& filename);
37  virtual DataPtr read(const QString& uid, const QString& filename);
38  virtual QString canReadDataType() const;
39  virtual bool readInto(DataPtr data, QString path);
40  bool readInto(MeshPtr mesh, QString filename);
41  std::vector<DataPtr> read(const QString &filename);
42 
43  void write(DataPtr data, const QString &filename) {}
44  QString canWriteDataType() const;
45  bool canWrite(const QString &type, const QString &filename) const;
46 
47  virtual vtkPolyDataPtr loadVtkPolyData(QString filename);
48 
49 
50 };
51 
52 }
53 
54 #endif // CXXMLPOLYDATAMESHREADER_H
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::MeshPtr
boost::shared_ptr< class Mesh > MeshPtr
Definition: cxForwardDeclarations.h:48
cxFileReaderWriterService.h
cx::PatientModelServicePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Definition: cxLogicManager.h:25
cx::DataPtr
boost::shared_ptr< class Data > DataPtr
Definition: cxRegistrationApplicator.h:22
cx::XMLPolyDataMeshReader::~XMLPolyDataMeshReader
virtual ~XMLPolyDataMeshReader()
Definition: cxXMLPolyDataMeshReader.h:32
cx::vtkPolyDataPtr
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
Definition: cxCenterlineRegistration.h:42
cx::XMLPolyDataMeshReader
Reader for .vtp files.
Definition: cxXMLPolyDataMeshReader.h:26
cx::XMLPolyDataMeshReader::write
void write(DataPtr data, const QString &filename)
Definition: cxXMLPolyDataMeshReader.h:43
cx::FileReaderWriterImplService
Definition: cxFileReaderWriterService.h:71
cx::XMLPolyDataMeshReader::isNull
bool isNull()
Definition: cxXMLPolyDataMeshReader.h:34
cx::FileReaderWriterService
Definition: cxFileReaderWriterService.h:30