// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void EstablishShapeTypes::readFilterParameters(AbstractFilterParametersReader* reader, int index) { reader->openFilterGroup(this, index); setInputPhaseTypesArrayPath(reader->readDataArrayPath("InputPhaseTypesArrayPath", getInputPhaseTypesArrayPath() ) ); setShapeTypesArrayName(reader->readString("ShapeTypesArrayName", getShapeTypesArrayName() ) ); QVector<uint32_t> data = getShapeTypeData().d; data = reader->readArray("ShapeTypeData", data); UInt32Vector_t vec; vec.d = data; setShapeTypeData(vec); reader->closeFilterGroup(); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void InitializeSyntheticVolume::readFilterParameters(AbstractFilterParametersReader* reader, int index) { reader->openFilterGroup(this, index); setDataContainerName(reader->readString("DataContainerName", getDataContainerName() ) ); setCellAttributeMatrixName(reader->readString("CellAttributeMatrixName", getCellAttributeMatrixName() ) ); setDimensions( reader->readIntVec3("Dimensions", getDimensions() ) ); setResolution( reader->readFloatVec3("Resolution", getResolution() ) ); setOrigin( reader->readFloatVec3("Origin", getOrigin() ) ); setInputStatsArrayPath(reader->readDataArrayPath("InputStatsArrayPath", getInputStatsArrayPath() ) ); setInputPhaseTypesArrayPath(reader->readDataArrayPath("InputPhaseTypesArrayPath", getInputPhaseTypesArrayPath() ) ); setInputStatsFile(reader->readString("InputStatsFile", getInputStatsFile() ) ); setEstimateNumberOfFeatures(reader->readValue("EstimateNumberOfFeatures", getEstimateNumberOfFeatures() ) ); reader->closeFilterGroup(); }
// ----------------------------------------------------------------------------- // // ----------------------------------------------------------------------------- void EstablishMatrixPhase::readFilterParameters(AbstractFilterParametersReader* reader, int index) { reader->openFilterGroup(this, index); setOutputCellAttributeMatrixPath( reader->readDataArrayPath("OutputCellAttributeMatrixPath", getOutputCellAttributeMatrixPath() ) ); setOutputCellFeatureAttributeMatrixName( reader->readString("OutputCellFeatureAttributeMatrixName", getOutputCellFeatureAttributeMatrixName() ) ); setOutputCellEnsembleAttributeMatrixName( reader->readString("OutputCellEnsembleAttributeMatrixName", getOutputCellEnsembleAttributeMatrixName() ) ); setFeatureIdsArrayName( reader->readString("FeatureIdsArrayName", getFeatureIdsArrayName() ) ); setCellPhasesArrayName( reader->readString("CellPhasesArrayName", getCellPhasesArrayName() ) ); setUseMask(reader->readValue("UseMask", getUseMask())); setMaskArrayPath(reader->readDataArrayPath("MaskArrayPath", getMaskArrayPath())); setFeaturePhasesArrayName(reader->readString("FeaturePhasesArrayName", getFeaturePhasesArrayName())); setNumFeaturesArrayName( reader->readString("NumFeaturesArrayName", getNumFeaturesArrayName() ) ); setInputStatsArrayPath(reader->readDataArrayPath("InputStatsArrayPath", getInputStatsArrayPath() ) ); setInputPhaseTypesArrayPath(reader->readDataArrayPath("InputPhaseTypesArrayPath", getInputPhaseTypesArrayPath() ) ); reader->closeFilterGroup(); }