de.unihalle.informatik.MiToBo.core.datatypes
Class MTBRegion3DSet

java.lang.Object
  extended by de.unihalle.informatik.Alida.operator.ALDData
      extended by de.unihalle.informatik.MiToBo.core.datatypes.MTBRegion3DSet
All Implemented Interfaces:
MTBRegionSetInterface

@ALDParametrizedClass
public class MTBRegion3DSet
extends de.unihalle.informatik.Alida.operator.ALDData
implements MTBRegionSetInterface

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

Author:
Stefan Posch

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

MTBRegion3DSet

public 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

public 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

public 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


MTBRegion3DSet

public MTBRegion3DSet(de.unihalle.informatik.MiToBo_xml.MTBXMLRegion3DSetType xmlregion3Dset)
Construct set of 3D-regions from an xml-representation


MTBRegion3DSet

public MTBRegion3DSet(String filename)
               throws org.apache.xmlbeans.XmlException,
                      IOException
Construct a set of 3D-regions from a xml-file that was written by the write method of this class. (These xml-files conform to xml-scheme MTBXMLRegion3DSet.xsd defined for MiToBo)

Parameters:
filename - path to the xml-file
Throws:
IOException - thrown if parsing of xml-file failed
org.apache.xmlbeans.XmlException - thrown if parsing of xml-file failed
Method Detail

toXMLType

public de.unihalle.informatik.MiToBo_xml.MTBXMLRegion3DSetType toXMLType()
Construct an xml-representation of this set of 3D-regions.


write

public void write(String filename)
           throws IOException,
                  de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException,
                  de.unihalle.informatik.Alida.exceptions.ALDOperatorException
Write this set of 3D-regions to disk in XML format using MiToBo's xml-scheme MTBRegion3DSet.xsd

Throws:
IOException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException

getXmin

public double getXmin()

getXmax

public double getXmax()

getYmin

public double getYmin()

getYmax

public double getYmax()

getZmin

public double getZmin()

getZmax

public double getZmax()

size

public int size()
Get the number of regions of this region set

Returns:
number of regions

clear

public void clear()
Remove all regions from this set


get

public MTBRegion3D get(int i)
Get a region by index

Returns:
i-th region

elementAt

public MTBRegion3D elementAt(int i)
Get a region by index

Returns:
i-th region

add

public boolean add(MTBRegion3D region)
Append a region (at the end) to the set of regions.

Parameters:
region - region to add

setElementAt

public void setElementAt(MTBRegion3D region,
                         int i)
Set the i-th region from the set

Parameters:
i - index of region to remove

removeElementAt

public void removeElementAt(int i)
Delete the i-th region from the set

Parameters:
i - index of region to remove


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.