@ALDParametrizedClass public class MTBRegion3DSet extends de.unihalle.informatik.Alida.operator.ALDData implements MTBRegionSetInterface
Modifier and Type | Field and Description |
---|---|
(package private) Vector<MTBRegion3D> |
regionSet
The set of regions represented as a Vector.
|
private double |
xMax
Maximal x coordinate of the domain of this region set.
|
private double |
xMin
Minimal x coordinate of the domain of this region set.
|
private double |
yMax
Maximal y coordinate of the domain of this region set.
|
private double |
yMin
Minimal y coordinate of the domain of this region set.
|
private double |
zMax
Maximal z coordinate of the domain of this region set.
|
private double |
zMin
Minimal z coordinate of the domain of this region set.
|
Constructor and Description |
---|
MTBRegion3DSet(double xMin,
double yMin,
double zMin,
double xMax,
double yMax,
double zMax)
Construct an empty set of regions with given extent of domain
|
MTBRegion3DSet(int N,
double xMin,
double yMin,
double zMin,
double xMax,
double yMax,
double zMax)
Construct an empty set (with memory allocated for N elements) of regions with given extent of domain
|
MTBRegion3DSet(de.unihalle.informatik.MiToBo_xml.MTBXMLRegion3DSetType xmlregion3Dset)
Construct set of 3D-regions from an xml-representation
|
MTBRegion3DSet(String filename)
Construct a set of 3D-regions from a xml-file that was written by the
write method of this class. |
MTBRegion3DSet(Vector<MTBRegion3D> regions,
double xMin,
double yMin,
double zMin,
double xMax,
double yMax,
double zMax)
Construct an empty set of regions with given extent of domain
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(MTBRegion3D region)
Append a region (at the end) to the set of regions.
|
void |
clear()
Remove all regions from this set
|
MTBRegion3D |
elementAt(int i)
Get a region by index
|
MTBRegion3D |
get(int i)
Get a region by index
|
double |
getXmax() |
double |
getXmin() |
double |
getYmax() |
double |
getYmin() |
double |
getZmax() |
double |
getZmin() |
void |
removeElementAt(int i)
Delete the i-th region from the set
|
void |
setElementAt(MTBRegion3D region,
int i)
Set the i-th region from the set
|
int |
size()
Get the number of regions of this region set
|
de.unihalle.informatik.MiToBo_xml.MTBXMLRegion3DSetType |
toXMLType()
Construct an xml-representation of this set of 3D-regions.
|
void |
write(String filename)
Write this set of 3D-regions to disk in XML format using MiToBo's xml-scheme MTBRegion3DSet.xsd
|
@ALDClassParameter(label="Minimal x in domain.") private double xMin
@ALDClassParameter(label="Minimal y in domain") private double yMin
@ALDClassParameter(label="Minimal z in domain") private double zMin
@ALDClassParameter(label="Maximal x in domain") private double xMax
@ALDClassParameter(label="Maximal y in domain") private double yMax
@ALDClassParameter(label="Maximal z in domain") private double zMax
@ALDClassParameter(label="List of regions") Vector<MTBRegion3D> regionSet
public MTBRegion3DSet(double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
public MTBRegion3DSet(int N, double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
public MTBRegion3DSet(Vector<MTBRegion3D> regions, double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
public MTBRegion3DSet(de.unihalle.informatik.MiToBo_xml.MTBXMLRegion3DSetType xmlregion3Dset)
public MTBRegion3DSet(String filename) throws org.apache.xmlbeans.XmlException, IOException
write
method of this class.
(These xml-files conform to xml-scheme MTBXMLRegion3DSet.xsd defined for MiToBo)filename
- path to the xml-fileIOException
- thrown if parsing of xml-file failedorg.apache.xmlbeans.XmlException
- thrown if parsing of xml-file failedpublic de.unihalle.informatik.MiToBo_xml.MTBXMLRegion3DSetType toXMLType()
public void write(String filename) throws IOException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException, de.unihalle.informatik.Alida.exceptions.ALDOperatorException
IOException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public double getXmin()
public double getXmax()
public double getYmin()
public double getYmax()
public double getZmin()
public double getZmax()
public int size()
public void clear()
public MTBRegion3D get(int i)
public MTBRegion3D elementAt(int i)
public boolean add(MTBRegion3D region)
region
- region to addpublic void setElementAt(MTBRegion3D region, int i)
i
- index of region to removepublic void removeElementAt(int i)
i
- index of region to removeCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.