24 #include <vtkSmartPointer.h> 25 #include <vtkPolyData.h> 26 #include <vtkPolyDataCollection.h> 27 #include <vtkImageData.h> 28 #include <vtkCommand.h> 29 #include <vtkEventQtSlotConnect.h> 31 #include "milxQtImage.h" 32 #include "milxQtModel.h" 91 QString supportedImageFormats();
98 bool is8BitFormat(
const QString filename,
bool &errorEncountered);
105 bool is32BitFormat(
const QString filename,
bool &errorEncountered);
112 bool isFieldFormat(
const QString filename,
bool &errorEncountered);
122 bool openImage(
const QString filename, vtkImageData* data);
129 bool openImage(
const QString filename,
milxQtImage* data);
136 bool openImageSeries(
milxQtImage* data, QString directoryPath =
"");
145 bool saveImage(
const QString filename, vtkImageData* data);
152 bool saveImage(
const QString filename,
milxQtImage* data);
162 bool openModel(
const QString filename, vtkPolyData* data);
169 bool openModel(
const QString filename,
milxQtModel* data);
178 bool openModelCollection(vtkPolyDataCollection* collection, QStringList &filenames);
179 inline bool openModelCollection(vtkPolyDataCollection* collection)
182 return openModelCollection(collection, tmpList);
190 bool saveModel(
const QString filename, vtkPolyData* data,
const bool binary =
false);
197 bool saveModel(
const QString filename,
milxQtModel* data,
const bool binary =
false);
204 bool saveScalarsOfModel(
const QString filename,
milxQtModel* data);
209 std::vector< std::string > names;
210 foreach(QString name, filenames)
211 names.push_back(name.toStdString());
216 inline QString getPixelType()
218 return dataPixelType;
220 inline QString getComponentType()
222 return dataComponentType;
224 inline size_t getNumberOfDimensions()
226 return dataDimensions;
228 inline size_t getNumberOfComponents()
230 return dataComponents;
233 void linkProgressEventOf(vtkObject * obj);
234 inline void updateQtEvents()
236 qApp->processEvents();
247 itkEventQtObserver::Pointer observeProgress;
QString dataComponentType
Component type of image read.
size_t dataDimensions
Dimensions of image read.
virtual const char * GetNameOfClass() const
ITK interfacing member for exceptions.
This class represents the MILX Qt Image Display object using VTK.
This class represents the MILX Qt File I/O object using VTK/ITK/Qt.
This class represents the MILX Qt Model/Mesh Display object using VTK.
#define MILXQT_EXPORT
Define Windows DLL importing.
QString dataPixelType
pixel type of image read
vtkSmartPointer< vtkEventQtSlotConnect > Connector
VTK Events to slots convertor.
std::vector< std::string > convertQStringList(const QStringList filenames)
Convert an QStringList to a vector of STL strings.
size_t dataComponents
Components of vector of image read.
QString name
Name of the last opened file.