/*******************************************************************************
* Copyright (c) 2016 Weasis Team and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Nicolas Roduit - initial API and implementation
*******************************************************************************/
package org.weasis.dicom.sr;
import java.util.ArrayList;
import java.util.List;
import org.weasis.core.ui.model.graphic.Graphic;
import org.weasis.dicom.codec.macro.SOPInstanceReference;
public class SRImageReference {
private SOPInstanceReference sopInstanceReference;
private List<Graphic> graphics;
private final String nodeLevel;
public SRImageReference(String nodeLevel) {
super();
this.nodeLevel = nodeLevel;
}
public void addGraphic(Graphic g) {
if (g != null) {
if (graphics == null) {
graphics = new ArrayList<>();
}
graphics.add(g);
}
}
public SOPInstanceReference getSopInstanceReference() {
return sopInstanceReference;
}
public void setSopInstanceReference(SOPInstanceReference sopInstanceReference) {
this.sopInstanceReference = sopInstanceReference;
}
public List<Graphic> getGraphics() {
return graphics;
}
public String getNodeLevel() {
return nodeLevel;
}
}