@ALDParametrizedClass
public class MTBSurface3DSet
extends de.unihalle.informatik.Alida.operator.ALDData
Modifier and Type | Field and Description |
---|---|
(package private) Vector<MTBSurface3D> |
surfaceSet
The set of surfaces 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 |
---|
MTBSurface3DSet(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(MTBSurface3D surface)
Append a region (at the end) to the set of regions
|
void |
clear()
Remove all regions from this set
|
MTBSurface3D |
elementAt(int i)
Get a region by index
|
MTBSurface3D |
get(int i)
Get a region by index
|
MTBImage |
getSurfaceImage()
draw surfaces into an image with the surface ids as labels
|
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(MTBSurface3D region,
int i)
Set the i-th region from the set
|
int |
size()
Get the number of regions of this region set
|
@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 surfaces") Vector<MTBSurface3D> surfaceSet
public MTBSurface3DSet(double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
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 MTBSurface3D get(int i)
public MTBSurface3D elementAt(int i)
public boolean add(MTBSurface3D surface)
region
- region to addpublic void setElementAt(MTBSurface3D region, int i)
i
- index of region to removepublic void removeElementAt(int i)
i
- index of region to removepublic MTBImage getSurfaceImage()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.