|
||||||||
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
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
Field Summary | |
---|---|
(package private) java.util.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 y coordinate of the domain of this region set. |
private double |
zMin
Minimal z coordinate of the domain of this region set. |
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(java.lang.String filename)
Construct a set of 3D-regions from a xml-file that was written by the write method of this class. |
|
MTBRegion3DSet(java.util.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 |
(package private) de.unihalle.informatik.MiToBo_xml.MTBXMLRegion3DSetType |
toXMLType()
Construct an xml-representation of this set of 3D-regions. |
void |
write(java.lang.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 |
Field Detail |
---|
java.util.Vector<MTBRegion3D> regionSet
private double xMax
private double xMin
private double yMax
private double yMin
private double zMax
private double zMin
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(de.unihalle.informatik.MiToBo_xml.MTBXMLRegion3DSetType xmlregion3Dset)
public MTBRegion3DSet(java.lang.String filename) throws org.apache.xmlbeans.XmlException, java.io.IOException
write
method of this class.
(These xml-files conform to xml-scheme MTBXMLRegion3DSet.xsd defined for MiToBo)
filename
- path to the xml-file
java.io.IOException
- thrown if parsing of xml-file failed
org.apache.xmlbeans.XmlException
- thrown if parsing of xml-file failedpublic MTBRegion3DSet(java.util.Vector<MTBRegion3D> regions, double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
Method Detail |
---|
public boolean add(MTBRegion3D region)
region
- region to addpublic void clear()
public MTBRegion3D elementAt(int i)
public MTBRegion3D get(int i)
public double getXmax()
public double getXmin()
public double getYmax()
public double getYmin()
public double getZmax()
public double getZmin()
public void removeElementAt(int i)
i
- index of region to removepublic void setElementAt(MTBRegion3D region, int i)
i
- index of region to removepublic int size()
de.unihalle.informatik.MiToBo_xml.MTBXMLRegion3DSetType toXMLType()
public void write(java.lang.String filename) throws java.io.IOException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException, de.unihalle.informatik.Alida.exceptions.ALDOperatorException
java.io.IOException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |