|
||||||||||
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.MTBContour2DSet
@ALDParametrizedClass public class MTBContour2DSet
A set of 2D contours living in a common domain which is a rectangular subset of R x R. Each contours is of type Contour2D
Constructor Summary | |
---|---|
MTBContour2DSet()
Standard constructor. |
|
MTBContour2DSet(double xMin,
double yMin,
double xMax,
double yMax)
Construct an empty set of contours with given extent of domain. |
Method Summary | |
---|---|
boolean |
add(MTBContour2D contour)
Append a contour (at the end) to the set of contours. |
MTBContour2DSet |
clone()
|
MTBContour2D |
elementAt(int i)
Get a contour by index. |
de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DType |
getContour2DAsXml(MTBContour2D contour,
de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DType xmlC)
Copy the information of contour into the corresponding xml
element xmlContour . |
MTBContour2D |
getContour2DFromXml(de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DType xmlContour)
Get a new MTBContour2D from the information of the
xmlContour . |
double |
getXMax()
Get the maximal x-coordinate of the domain of this contour set. |
double |
getXMin()
Get the minimal x-coordinate of the domain of this contour set. |
double |
getYMax()
Get the maximal y-coordinate of the domain of this contour set. |
double |
getYMin()
Get the minimal y-coordinate of the domain of this contour set. |
void |
read(de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DSetType xmlContourSet)
Read a contour set from an xml object xmlContourSet and set the MTB
polygon set accordingly. |
void |
read(String filename)
Read a contour set from an xml file filename and set the MTB
polygon set accordingly. |
void |
removeElementAt(int i)
Delete the i-th contour from the set |
void |
setElementAt(MTBContour2D contour,
int i)
Set the i-th contour from the set. |
int |
size()
Get the number of contours of this contour set |
de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DSetType |
toXMLType()
|
void |
write(String filename)
Write this contour set into XML file filename.xml
Additionally, its processing history is written. |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDData |
---|
cloneProperties, getLocation, getProperty, getPropertyKeys, print, setLocation, setProperty |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MTBContour2DSet()
public MTBContour2DSet(double xMin, double yMin, double xMax, double yMax)
xMin
- minimal x-coordinate of the domainyMin
- minimal y-coordinate of the domainxMax
- maximal x-coordinate of the domainyMax
- maximal y-coordinate of the domainMethod Detail |
---|
public MTBContour2DSet clone()
clone
in class Object
public int size()
public MTBContour2D elementAt(int i)
public double getXMin()
public double getXMax()
public double getYMin()
public double getYMax()
public boolean add(MTBContour2D contour)
contour
- contour to addpublic void setElementAt(MTBContour2D contour, int i)
contour
- new contour elementi
- index of the new contourpublic void removeElementAt(int i)
i
- index of contour to removepublic void read(String filename) throws IOException, org.apache.xmlbeans.XmlException
filename
and set the MTB
polygon set accordingly. The processing history is read also if available.
WARNING: currently assume filename WITHOUT extension.
filename
- Filename to read from, WITHOUT extension (for the moment).
IOException
org.apache.xmlbeans.XmlException
public void read(de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DSetType xmlContourSet) throws IOException, org.apache.xmlbeans.XmlException
xmlContourSet
and set the MTB
polygon set accordingly.
WARNING: currently assume filename WITHOUT extension.
filename
- Filename to read from, WITHOUT extension (for the moment).
IOException
org.apache.xmlbeans.XmlException
public void write(String filename) throws de.unihalle.informatik.Alida.exceptions.ALDException
filename.xml
Additionally, its processing history is written.
WARNING: currently assume filename WITHOUT extension.
filename
- Filename to write to, WITHOUT extension (for the moment)
de.unihalle.informatik.Alida.exceptions.ALDException
public de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DSetType toXMLType()
public de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DType getContour2DAsXml(MTBContour2D contour, de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DType xmlC)
contour
into the corresponding xml
element xmlContour
. If xmlContour
is null, a new
obejct is created, otherwise the passed object filled.
public MTBContour2D getContour2DFromXml(de.unihalle.informatik.MiToBo_xml.MTBXMLContour2DType xmlContour)
MTBContour2D
from the information of the
xmlContour
.
xmlContour
- xml contour object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |