15 #include <ctkPluginContext.h> 17 #include <vtkXMLPolyDataReader.h> 19 #include <vtkPolyData.h> 25 return this->
readInto(boost::dynamic_pointer_cast<Mesh>(data), filename);
35 mesh->setVtkPolyData(raw);
41 std::vector<DataPtr> retval;
47 mesh->setVtkPolyData(raw);
49 retval.push_back(mesh);
84 QString fileType = QFileInfo(filename).suffix();
85 return ( fileType.compare(
"vtp", Qt::CaseInsensitive) == 0);
bool canWrite(const QString &type, const QString &filename) const
DataPtr createData(QString type, QString filename, QString name="") const
virtual bool readInto(DataPtr data, QString path)
vtkSmartPointer< class vtkXMLPolyDataReader > vtkXMLPolyDataReaderPtr
cstring_cast_Placeholder cstring_cast(const T &val)
boost::shared_ptr< class Data > DataPtr
virtual QString canReadDataType() const
virtual DataPtr read(const QString &uid, const QString &filename)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual bool canRead(const QString &type, const QString &filename)
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
static bool checkedRead(vtkSmartPointer< vtkAlgorithm > reader, QString filename)
QString canWriteDataType() const
static QString getTypeName()
boost::shared_ptr< class Mesh > MeshPtr
XMLPolyDataMeshReader(PatientModelServicePtr patientModelService)
virtual vtkPolyDataPtr loadVtkPolyData(QString filename)
Namespace for all CustusX production code.