35 lines
683 B
C
35 lines
683 B
C
|
|
#ifndef QVTK_UNSTRUCTUREDGRIDREADER_H
|
|||
|
|
#define QVTK_UNSTRUCTUREDGRIDREADER_H
|
|||
|
|
|
|||
|
|
#include <QObject>
|
|||
|
|
|
|||
|
|
|
|||
|
|
class vtkUnstructuredGrid;
|
|||
|
|
class vtkUnstructuredGridReader;
|
|||
|
|
|
|||
|
|
namespace pst
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
class UnstructuredGridReader : public QObject
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
public:
|
|||
|
|
explicit UnstructuredGridReader(QObject* parent = Q_NULLPTR);
|
|||
|
|
~UnstructuredGridReader();
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
void SetFileName(const QString& fileName);
|
|||
|
|
QString GetFileName();
|
|||
|
|
bool Update();
|
|||
|
|
|
|||
|
|
vtkUnstructuredGrid* GetOutput();
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
QString m_fileName;
|
|||
|
|
vtkUnstructuredGridReader* m_reader;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} //namespace pst
|
|||
|
|
|
|||
|
|
#endif // PST_UNSTRUCTUREDGRIDREADER_H
|