/** * Creates a binary file. * * @return See above. */ public BinaryFile createBinaryFile() { BinaryFile bf = new BinaryFile(); bf.setBinData(createBinData(SIZE_X, SIZE_Y, BYTES_PER_PIXEL)); return bf; }
setBinData(new BinData( (Element) BinData_nodeList.get(0), model));
setBinData(new BinData( (Element) BinData_nodeList.get(0), model));
public void setBinaryFileBinDataLength(NonNegativeLong length, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // Length is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfFileAnnotationList() == fileAnnotationIndex) { o1.addFileAnnotation(new FileAnnotation()); } FileAnnotation o2 = o1.getFileAnnotation(fileAnnotationIndex); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setLength(length); }
public void setBinaryFileBinData(byte[] base64Binary, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // Base64Binary is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfFileAnnotationList() == fileAnnotationIndex) { o1.addFileAnnotation(new FileAnnotation()); } FileAnnotation o2 = o1.getFileAnnotation(fileAnnotationIndex); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setBase64Binary(base64Binary); }
public void setBinaryFileBinDataBigEndian(Boolean bigEndian, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // BigEndian is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfFileAnnotationList() == fileAnnotationIndex) { o1.addFileAnnotation(new FileAnnotation()); } FileAnnotation o2 = o1.getFileAnnotation(fileAnnotationIndex); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setBigEndian(bigEndian); }
public void setBinaryFileBinDataBigEndian(Boolean bigEndian, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // BigEndian is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfFileAnnotationList() == fileAnnotationIndex) { o1.addFileAnnotation(new FileAnnotation()); } FileAnnotation o2 = o1.getFileAnnotation(fileAnnotationIndex); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setBigEndian(bigEndian); }
public void setBinaryFileBinDataLength(NonNegativeLong length, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // Length is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfFileAnnotationList() == fileAnnotationIndex) { o1.addFileAnnotation(new FileAnnotation()); } FileAnnotation o2 = o1.getFileAnnotation(fileAnnotationIndex); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setLength(length); }
public void setBinaryFileBinDataCompression(Compression compression, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // Compression is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfFileAnnotationList() == fileAnnotationIndex) { o1.addFileAnnotation(new FileAnnotation()); } FileAnnotation o2 = o1.getFileAnnotation(fileAnnotationIndex); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setCompression(compression); }
public void setBinaryFileBinData(byte[] base64Binary, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // Base64Binary is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfFileAnnotationList() == fileAnnotationIndex) { o1.addFileAnnotation(new FileAnnotation()); } FileAnnotation o2 = o1.getFileAnnotation(fileAnnotationIndex); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setBase64Binary(base64Binary); }
public void setBinaryFileBinDataCompression(Compression compression, int fileAnnotationIndex) { // Parents: {u'BinaryFile': {u'FileAnnotation': {u'StructuredAnnotations': {u'OME': None}}}, u'Mask': None, u'Pixels': {u'Image': {u'OME': None}}} // Compression is not a reference OME o0 = root; if (o0.getStructuredAnnotations() == null) { o0.setStructuredAnnotations(new StructuredAnnotations()); } StructuredAnnotations o1 = o0.getStructuredAnnotations(); if (o1.sizeOfFileAnnotationList() == fileAnnotationIndex) { o1.addFileAnnotation(new FileAnnotation()); } FileAnnotation o2 = o1.getFileAnnotation(fileAnnotationIndex); if (o2.getBinaryFile() == null) { o2.setBinaryFile(new BinaryFile()); } BinaryFile o3 = o2.getBinaryFile(); if (o3.getBinData() == null) { o3.setBinData(new BinData()); } BinData o4 = o3.getBinData(); o4.setCompression(compression); }