| 1 |
package DICOM.InfoObj; |
| 2 |
|
| 3 |
import DICOM.DICOMWrapper; |
| 4 |
import DICOM.Module.PatientModule; |
| 5 |
import DICOM.Module.ImagePixelModule; |
| 6 |
|
| 7 |
/* |
| 8 |
* Image |
| 9 |
*/ |
| 10 |
|
| 11 |
|
| 12 |
public class Image extends DICOM.DICOMWrapper { |
| 13 |
public native void setPatientAttributes(long dcmObj, DICOM.Module.PatientModule p); |
| 14 |
public native void setImgAttributes(long dcmObj, DICOM.Module.ImagePixelModule img); |
| 15 |
// private long fDCMObject; |
| 16 |
|
| 17 |
public Image(String fileName) { |
| 18 |
fDCMObject = openFileJNI(fileName); |
| 19 |
} |
| 20 |
|
| 21 |
public String getPatientName() { |
| 22 |
return getStringJNI(fDCMObject, (short)0x0010, (short)0x0010); |
| 23 |
} |
| 24 |
public DICOM.Module.PatientModule getPatient() { |
| 25 |
DICOM.Module.PatientModule patient = new DICOM.Module.PatientModule(); |
| 26 |
setPatientAttributes(fDCMObject, patient); |
| 27 |
return patient; |
| 28 |
} |
| 29 |
public DICOM.Module.ImagePixelModule getImg() { |
| 30 |
DICOM.Module.ImagePixelModule img = new DICOM.Module.ImagePixelModule(); |
| 31 |
setImgAttributes(fDCMObject, img); |
| 32 |
return img; |
| 33 |
} |
| 34 |
} |