|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDData
de.unihalle.informatik.MiToBo.core.datatypes.MTBRegion3DSet
@ALDParametrizedClass public class MTBRegion3DSet
A set of 3D regions living in a common domain which is a rectangular subset of R x R. Each regions is of type Region3D
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDData |
---|
cloneProperties, getLocation, getProperty, getPropertyKeys, print, setLocation, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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-file
IOException
- thrown if parsing of xml-file failed
org.apache.xmlbeans.XmlException
- thrown if parsing of xml-file failedMethod Detail |
---|
public 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 remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |