// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- QDataContainerReaderWidget::QDataContainerReaderWidget(QWidget* parent) : QFilterWidget(parent) { if ( getOpenDialogLastDirectory().isEmpty() ) { setOpenDialogLastDirectory( QDir::homePath() ); } setupUi(this); DataContainerReader::Pointer filter = DataContainerReader::New(); m_FilterGroup = QString::fromStdString(filter->getGroupName()); setupGui(); getGuiParametersFromFilter( filter.get() ); setTitle(QString::fromStdString(filter->getHumanLabel())); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- AbstractFilter::Pointer DataContainerReader::newFilterInstance(bool copyFilterParameters) { DataContainerReader::Pointer filter = DataContainerReader::New(); if(true == copyFilterParameters) { copyFilterParameterInstanceVariables(filter.get()); SIMPL_COPY_INSTANCEVAR(InputFile) filter->setInputFile(getInputFile()); #if 0 filter->setOverwriteExistingDataContainers(getOverwriteExistingDataContainers()); filter->setDataContainerArrayProxy(getDataContainerArrayProxy()); #endif } return filter; }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- AbstractFilter::Pointer QDataContainerReaderWidget::getFilter(bool defaultValues) { DataContainerReader::Pointer filter = DataContainerReader::New(); if (defaultValues == true) { return filter; } filter->setInputFile( getInputFile().toStdString() ); filter->setReadVoxelData( getReadVoxelData() ); filter->setReadSurfaceMeshData( getReadSurfaceMeshData() ); filter->setReadSolidMeshData( getReadSolidMeshData() ); arraySelectionWidget->getArraySelections(filter.get()); return filter; }