资源简介
在MyEclise中直接导入即可运行,可以使用DCM4CHEE作为服务器,即从服务器中取DICOM图像。
代码片段和文件信息
package de.iftm.dcm4che.services;
import java.io.IOException;
import java.io.PrintStream;
import java.io.StringWriter;
import java.net.ConnectException;
import java.net.Socket;
import java.net.URL;
import java.security.GeneralSecurityException;
import java.text.ParseException;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.linkedList;
import java.util.List;
import java.util.Vector;
import javax.net.SocketFactory;
import org.apache.log4j.Logger;
import org.dcm4che.data.Command;
import org.dcm4che.data.Dataset;
import org.dcm4che.data.DcmobjectFactory;
import org.dcm4che.data.DcmParserFactory;
import org.dcm4che.dict.DictionaryFactory;
import org.dcm4che.dict.Tags;
import org.dcm4che.dict.UIDDictionary;
import org.dcm4che.dict.UIDs;
import org.dcm4che.net.AAssociateAC;
import org.dcm4che.net.AAssociateRQ;
import org.dcm4che.net.ActiveAssociation;
import org.dcm4che.net.Association;
import org.dcm4che.net.AssociationFactory;
import org.dcm4che.net.Dimse;
import org.dcm4che.net.FutureRSP;
import org.dcm4che.net.PDU;
import org.dcm4che.net.PresContext;
import org.dcm4che.util.DcmURL;
import org.dcm4che.util.SSLContextAdapter;
public class CDimseService
{
static final Logger log = Logger.getLogger(“CDimseService“);
static final boolean DEBUG = log.isDebugEnabled();
private static final UIDDictionary uidDict = DictionaryFactory.getInstance().getDefaultUIDDictionary();
private static final AssociationFactory aFact = AssociationFactory.getInstance();
private static final DcmobjectFactory oFact = DcmobjectFactory.getInstance();
private static final DcmParserFactory pFact = DcmParserFactory.getInstance();
private static final DcmobjectFactory dof = DcmobjectFactory.getInstance();
private static final String DEFAULT_CALLING_AET = “OVIYAM“;
public static final int PATIENT_LEVEL = 0;
public static final int STUDY_LEVEL = 1;
public static final int SERIES_LEVEL = 2;
public static final int IMAGE_LEVEL = 3;
PresContext pc;
private DcmURL url = null;
private int priority = 0;
private int acTimeout = 5000;
private int dimseTimeout = 0;
private int soCloseDelay = 500;
private AAssociateRQ assocRQ = aFact.newAAssociateRQ();
private Association assoc = null;
private ActiveAssociation aassoc = null;
private boolean packPDVs = false;
private SSLContextAdapter tls = null;
private String[] cipherSuites = null;
private Dataset keys = dof.newDataset();
private String dest;
public CDimseService(ConfigProperties cfg DcmURL url)
throws ParseException
{
this.url = url;
this.priority = Integer.parseInt(cfg.getProperty(“prior“ “0“));
this.packPDVs = “true“.equalsIgnoreCase(cfg.getProperty(“pack-pdvs“ “false“));
initAssocParam(cfg url);
initTLS(cfg);
initKeys(cfg);
this.dest = cfg.getProperty(“dest“);
}
private final void initAssocParam(ConfigProperties cfg DcmURL url)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1178 2010-04-12 09:48 oviyam\.classpath
文件 291 2010-03-17 17:27 oviyam\.myme
文件 1224 2010-03-17 17:28 oviyam\.project
文件 276 2010-03-17 15:35 oviyam\src\conf\oviyam-config.xm
文件 17502 2010-04-07 16:52 oviyam\src\de\iftm\dcm4che\services\CDimseService.java
文件 2570 2010-03-17 15:35 oviyam\src\de\iftm\dcm4che\services\ConfigProperties.java
文件 7896 2010-03-17 15:41 oviyam\src\de\iftm\dcm4che\services\StorageService.java
文件 9209 2010-03-17 15:43 oviyam\src\de\iftm\dcm4che\services\StorageServiceAdapter.java
文件 648 2010-03-17 15:35 oviyam\src\de\iftm\dcm4che\services\StorageServiceEvent.java
文件 250 2010-03-17 15:35 oviyam\src\de\iftm\dcm4che\services\StorageServiceEventListener.java
文件 1202 2010-03-17 15:37 oviyam\src\in\raster\oviyam\config\ServerConfiguration.java
文件 9113 2010-03-17 15:51 oviyam\src\in\raster\oviyam\config\Serverxm
文件 2183 2010-03-17 15:36 oviyam\src\in\raster\oviyam\EchoService.java
文件 3390 2010-03-17 15:52 oviyam\src\in\raster\oviyam\handler\ImageHandler.java
文件 6895 2010-03-17 15:52 oviyam\src\in\raster\oviyam\handler\PatientInfoHandler.java
文件 3232 2010-03-17 17:11 oviyam\src\in\raster\oviyam\handler\SeriesDetailsHandler.java
文件 4193 2010-03-17 17:12 oviyam\src\in\raster\oviyam\handler\SeriesHandler.java
文件 2090 2010-03-17 15:37 oviyam\src\in\raster\oviyam\handler\StudyInfoHandler.java
文件 5196 2010-03-17 15:44 oviyam\src\in\raster\oviyam\ImageInfo.java
文件 983 2010-03-17 15:38 oviyam\src\in\raster\oviyam\model\InstanceModel.java
文件 1583 2010-03-21 20:42 oviyam\src\in\raster\oviyam\model\PatientModel.java
文件 1094 2010-03-17 15:38 oviyam\src\in\raster\oviyam\model\SeriesModel.java
文件 1572 2010-03-17 15:38 oviyam\src\in\raster\oviyam\model\StudyModel.java
文件 4022 2010-03-17 16:03 oviyam\src\in\raster\oviyam\PatientInfo.java
文件 4460 2010-03-17 15:49 oviyam\src\in\raster\oviyam\SeriesInfo.java
文件 2733 2010-03-17 15:57 oviyam\src\in\raster\oviyam\servlet\DcmImage.java
文件 3258 2010-03-17 15:39 oviyam\src\in\raster\oviyam\servlet\DcmWindowLevel.java
文件 1709 2010-03-17 15:58 oviyam\src\in\raster\oviyam\servlet\DICOMDataset.java
文件 3289 2010-03-17 15:39 oviyam\src\in\raster\oviyam\servlet\Multif
文件 1223 2010-03-17 15:39 oviyam\src\in\raster\oviyam\servlet\ServerConfig.java
............此处省略322个文件信息
评论
共有 条评论