public void registerFactory( String modeName, String descriptorName, String productName, Object factory) { Lock writeLock = lock.writeLock(); try { writeLock.lock(); super.registerFactory(modeName, descriptorName, productName, factory); } finally { writeLock.unlock(); } }
try { registry.registerDescriptor(descriptor); registry.registerFactory(RenderedRegistryMode.MODE_NAME, name, GEOTOOLS_PRODUCT, crif); return true; } catch (IllegalArgumentException exception) {
public void updateRegistry(OperationRegistry registry) { TransparencyFillDescriptor op = new TransparencyFillDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new TransparencyFillRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Forcefully registers the specified rendered operation in the JAI registry * * @param descriptor * @param rif * @param productName * @return true if the registration succeded, false if the registration was not required as the * operation was already available in the registry */ public static boolean registerRIF( final JAI jai, OperationDescriptor descriptor, RenderedImageFactory rif, String productName) { final OperationRegistry registry = jai.getOperationRegistry(); try { // see if the operation is already registered, avoid registering it twice new ParameterBlockJAI(descriptor.getName()); return false; } catch (Exception e) { registry.registerDescriptor(descriptor); final String descName = descriptor.getName(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); return true; } }
public static synchronized void register(final boolean force) { if (!registered || force) { final OperationRegistry registry = JAI.getDefaultInstance().getOperationRegistry(); final RenderedImageFactory rif = new WarpRIF(); registry.registerFactory( RenderedRegistryMode.MODE_NAME, "Warp", "it.geosolutions.jaiext", rif); registered = true; } }
/** * Registers the ArtifactsFilter operation * * @param registry The registry with which to register the operation */ public void updateRegistry(OperationRegistry registry) { final OperationDescriptor op = new ArtifactsFilterDescriptor(); registry.registerDescriptor(op); final String descName = op.getName(); final RenderedImageFactory rif = new ArtifactsFilterRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Register the "ImageReadMT" image operation to the operation registry of * the specified JAI instance. This method is invoked by the static initializer * of {@link GridSampleDimension}. */ public static synchronized void register(final JAI jai) { final OperationRegistry registry = jai.getOperationRegistry(); try { registry.registerDescriptor(new ImageReadDescriptorMT()); registry.registerFactory(RenderedRegistryMode.MODE_NAME, OPERATION_NAME, "it.geosolutions", new ImageReadMTCRIF()); } catch (IllegalArgumentException exception) { } } // Property name constants have package access for image factory use.
/** * Registers the VectorBinarize operation and its associated image factories across all * supported operation modes. * * @param registry * The registry with which to register the operations and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new GTCropDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new GTCropCRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Register the "ImageReadMT" image operation to the operation registry of * the specified JAI instance. This method is invoked by the static initializer * of {@link GridSampleDimension}. */ public static synchronized void register(final JAI jai) { final OperationRegistry registry = jai.getOperationRegistry(); try { registry.registerDescriptor(new ImageReadDescriptorMT()); registry.registerFactory(RenderedRegistryMode.MODE_NAME, OPERATION_NAME, "it.geosolutions", new ImageReadMTCRIF()); } catch (IllegalArgumentException exception) { } } // Property name constants have package access for image factory use.
/** * Registers the ZonalStats operation * * @param registry The registry with which to register the operation */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new ZonalStatsDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new ZonalStatsRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Registers the Regionalize operation and its * associated image factories across all supported operation modes. * * @param registry The registry with which to register the operations * and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new RegionalizeDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new RegionalizeRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Registers the VectorBinarize operation and its * associated image factories across all supported operation modes. * * @param registry The registry with which to register the operations * and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new VectorBinarizeDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new VectorBinarizeRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Registers the MaskedConvolve operation and its * associated image factories across all supported operation modes. * * @param registry The registry with which to register the operations * and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new MaskedConvolveDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new MaskedConvolveRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Registers the Contour operation and its * associated image factories across all supported operation modes. * * @param registry The registry with which to register the operations * and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new ContourDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new ContourRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Registers the Contour operation and its * associated image factories across all supported operation modes. * * @param registry The registry with which to register the operations * and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new ContourDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new ContourRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Registers the RangeLookup operation and its * associated image factories across all supported operation modes. * * @param registry The registry with which to register the operations * and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new RangeLookupDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new RangeLookupRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Registers the KernelStats operation and its * associated image factories across all supported operation modes. * * @param registry The registry with which to register the operations * and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new KernelStatsDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new KernelStatsRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Registers the VectorBinarize operation and its * associated image factories across all supported operation modes. * * @param registry The registry with which to register the operations * and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new VectorBinarizeDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new VectorBinarizeRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
/** * Registers the Vectorize operation and its * associated image factories across all supported operation modes. * * @param registry The registry with which to register the operations * and their factories. */ public void updateRegistry(OperationRegistry registry) { OperationDescriptor op = new VectorizeDescriptor(); registry.registerDescriptor(op); String descName = op.getName(); RenderedImageFactory rif = new VectorizeRIF(); registry.registerFactory(RenderedRegistryMode.MODE_NAME, descName, productName, rif); } }
public static synchronized void register(final boolean force) { if (!registered || force) { final OperationRegistry registry = JAI.getDefaultInstance().getOperationRegistry(); registry.unregisterDescriptor(new MosaicDescriptor()); registry.registerDescriptor(new SourceThresholdFixMosaicDescriptor()); // there seems to be a bug in jai-ext, line 1211 of // concurrentoperationregistry null pointer exception registry.registerFactory("rendered", "Mosaic", "com.sun.media.jai", new MosaicRIF()); registered = true; } }