Search in sources :

Example 6 with GaussianConvolutionKernel

use of cbit.vcell.mapping.MicroscopeMeasurement.GaussianConvolutionKernel in project vcell by virtualcell.

the class MicroscopeMeasurementPanel method refreshInterface.

protected void refreshInterface() {
    if (simulationContext == null) {
        return;
    }
    MicroscopeMeasurement microscopeMeasurement = simulationContext.getMicroscopeMeasurement();
    nameTextField.setText(microscopeMeasurement.getName());
    refreshFluorescenceSpeciesList(microscopeMeasurement);
    refreshAllSpeciesList();
    ConvolutionKernel ck = microscopeMeasurement.getConvolutionKernel();
    if (ck instanceof ProjectionZKernel) {
        rdbtnZprojection.setSelected(true);
        BeanUtils.enableComponents(gaussianPsfPanel, false);
        BeanUtils.enableComponents(experimentalPsfPanel, false);
    } else if (ck instanceof GaussianConvolutionKernel) {
        radioButtonGaussian.setSelected(true);
        BeanUtils.enableComponents(gaussianPsfPanel, true);
        BeanUtils.enableComponents(experimentalPsfPanel, false);
        sigmaXYTextField.setText(((GaussianConvolutionKernel) ck).getSigmaXY_um().infix());
        sigmaZTextField.setText(((GaussianConvolutionKernel) ck).getSigmaZ_um().infix());
    } else if (ck instanceof ExperimentalPSF) {
        rdbtnExperimental.setSelected(true);
        BeanUtils.enableComponents(gaussianPsfPanel, false);
        BeanUtils.enableComponents(experimentalPsfPanel, true);
    }
    pointSpreadFunctionsComboModel.removeAllElements();
    if (simulationContext.getDataContext() != null) {
        for (DataSymbol dataSymbol : simulationContext.getDataContext().getDataSymbols()) {
            if (dataSymbol.getDataSymbolType().equals(DataSymbolType.POINT_SPREAD_FUNCTION)) {
                pointSpreadFunctionsComboModel.addElement(dataSymbol.getName());
            }
        }
    }
}
Also used : DataSymbol(cbit.vcell.data.DataSymbol) GaussianConvolutionKernel(cbit.vcell.mapping.MicroscopeMeasurement.GaussianConvolutionKernel) ConvolutionKernel(cbit.vcell.mapping.MicroscopeMeasurement.ConvolutionKernel) ExperimentalPSF(cbit.vcell.mapping.MicroscopeMeasurement.ExperimentalPSF) MicroscopeMeasurement(cbit.vcell.mapping.MicroscopeMeasurement) GaussianConvolutionKernel(cbit.vcell.mapping.MicroscopeMeasurement.GaussianConvolutionKernel) ProjectionZKernel(cbit.vcell.mapping.MicroscopeMeasurement.ProjectionZKernel)

Aggregations

GaussianConvolutionKernel (cbit.vcell.mapping.MicroscopeMeasurement.GaussianConvolutionKernel)6 ProjectionZKernel (cbit.vcell.mapping.MicroscopeMeasurement.ProjectionZKernel)5 ConvolutionKernel (cbit.vcell.mapping.MicroscopeMeasurement.ConvolutionKernel)4 SpeciesContext (cbit.vcell.model.SpeciesContext)4 DataSymbol (cbit.vcell.data.DataSymbol)3 MicroscopeMeasurement (cbit.vcell.mapping.MicroscopeMeasurement)3 ExperimentalPSF (cbit.vcell.mapping.MicroscopeMeasurement.ExperimentalPSF)3 Expression (cbit.vcell.parser.Expression)3 SubVolume (cbit.vcell.geometry.SubVolume)2 MathDescription (cbit.vcell.math.MathDescription)2 Feature (cbit.vcell.model.Feature)2 Model (cbit.vcell.model.Model)2 BioModel (cbit.vcell.biomodel.BioModel)1 FieldDataSymbol (cbit.vcell.data.FieldDataSymbol)1 FieldFunctionArguments (cbit.vcell.field.FieldFunctionArguments)1 AnalyticSubVolume (cbit.vcell.geometry.AnalyticSubVolume)1 Geometry (cbit.vcell.geometry.Geometry)1 GeometryClass (cbit.vcell.geometry.GeometryClass)1 SurfaceClass (cbit.vcell.geometry.SurfaceClass)1 EventAssignment (cbit.vcell.mapping.BioEvent.EventAssignment)1