Package org.dcm4che3.net.imageio

Examples of org.dcm4che3.net.imageio.ImageWriterExtension


                                   LdapUtils.stringArray(attrs.get("dcmWriteIIOMetadata"))));
            }
        } finally {
           LdapUtils.safeClose(ne);
        }
        device.addDeviceExtension(new ImageWriterExtension(factory));
    }
View Full Code Here


    }

    @Override
    protected void mergeChilds(Device prev, Device device, String deviceDN)
            throws NamingException {
        ImageWriterExtension prevExt =
                prev.getDeviceExtension(ImageWriterExtension.class);
        ImageWriterExtension ext =
                device.getDeviceExtension(ImageWriterExtension.class);
        if (ext == null) {
            if (prevExt != null)
                config.destroySubcontextWithChilds(CN_IMAGE_READER_FACTORY + deviceDN);
            return;
        }
        if (prevExt == null) {
            store(deviceDN, ext.getImageWriterFactory());
            return;
        }
        String imageWritersDN = CN_IMAGE_READER_FACTORY + deviceDN;
        ImageWriterFactory factory = ext.getImageWriterFactory();
        ImageWriterFactory prevFactory = prevExt.getImageWriterFactory();
        for (Entry<String, ImageWriterParam> entry : prevFactory.getEntries()) {
            String tsuid = entry.getKey();
            if (factory.get(tsuid) == null)
                config.destroySubcontext(dnOf(tsuid, imageWritersDN));
View Full Code Here

public class PreferencesImageWriterConfiguration
        extends PreferencesDicomConfigurationExtension {

    @Override
    protected void storeChilds(Device device, Preferences deviceNode) {
        ImageWriterExtension ext =
                device.getDeviceExtension(ImageWriterExtension.class);
        if (ext != null)
            storeTo(ext.getImageWriterFactory(),
                    deviceNode.node("dcmImageWriterFactory"));
    }
View Full Code Here

        Preferences prefs = deviceNode.node("dcmImageWriterFactory");
        ImageWriterFactory factory = new ImageWriterFactory();
        for (String tsuid : prefs.childrenNames())
            factory.put(tsuid, load(prefs.node(tsuid)));

        device.addDeviceExtension(new ImageWriterExtension(factory));

    }
View Full Code Here

    }

    @Override
    protected void mergeChilds(Device prev, Device device, Preferences deviceNode)
            throws BackingStoreException {
        ImageWriterExtension prevExt =
                prev.getDeviceExtension(ImageWriterExtension.class);
        ImageWriterExtension ext =
                device.getDeviceExtension(ImageWriterExtension.class);
        if (ext == null && prevExt == null)
            return;
       
        Preferences factoryNode = deviceNode.node("dcmImageWriterFactory");
        if (ext == null)
            factoryNode.removeNode();
        else if (prevExt == null)
            storeTo(ext.getImageWriterFactory(), factoryNode);
        else
            storeDiffs(factoryNode, prevExt.getImageWriterFactory(),
                    ext.getImageWriterFactory());
    }
View Full Code Here

        this.status = status;
    }

    public void setTransferSyntaxes(String[] tss) {
        rq.addPresentationContext(
                new PresentationContext(1, UID.VerificationSOPClass,
                        UID.ImplicitVRLittleEndian));
        rq.addPresentationContext(
                new PresentationContext(2,
                        UID.StorageCommitmentPushModelSOPClass,
                        tss));
        ae.addTransferCapability(
                new TransferCapability(null,
                        UID.VerificationSOPClass,
View Full Code Here

            LOG.warn("{}: M-DELETE {} failed!", as, file);
    }

    private DicomServiceRegistry createServiceRegistry() {
        DicomServiceRegistry serviceRegistry = new DicomServiceRegistry();
        serviceRegistry.addDicomService(new BasicCEchoSCP());
        serviceRegistry.addDicomService(cstoreSCP);
        return serviceRegistry;
    }
View Full Code Here

    public StgCmtSCU(ApplicationEntity ae) throws IOException {
        this.remote = new Connection();
        this.ae = ae;
        DicomServiceRegistry serviceRegistry = new DicomServiceRegistry();
        serviceRegistry.addDicomService(new BasicCEchoSCP());
        serviceRegistry.addDicomService(stgcmtResultHandler);
        ae.setDimseRQHandler(serviceRegistry);
    }
View Full Code Here

                    Attributes.createFileMetaInformation(iuid, cuid,
                            UID.ExplicitVRLittleEndian),
                    eventInfo);
        } catch (IOException e) {
            LOG.warn(as + ": Failed to store Storage Commitment Result:", e);
            throw new DicomServiceException(Status.ProcessingFailure, e);
        } finally {
            SafeClose.close(out);
        }
        return null;
    }
View Full Code Here

    @Override
    public void process(Exchange exchange) throws Exception {
        DicomMessage in = exchange.getIn(DicomMessage.class);
        Dimse dimse = in.getHeader("dimse", Dimse.class);
        if (dimse != Dimse.C_ECHO_RQ)
            throw new DicomServiceException(Status.UnrecognizedOperation);
        DicomMessage out = new DicomMessage(
                Dimse.C_ECHO_RSP,
                Commands.mkEchoRSP(in.getCommand(), Status.Success));
        exchange.setOut(out);
    }
View Full Code Here

TOP

Related Classes of org.dcm4che3.net.imageio.ImageWriterExtension

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.