@ALDParametrizedClass public class MTBSurface3D extends Object
Modifier and Type | Field and Description |
---|---|
private int |
id
ID of the region (uniqueness is not guaranteed nor checked!)
|
private Vector<MTBPoint3D> |
points
Points belonging to the region
|
Constructor and Description |
---|
MTBSurface3D(Vector<MTBPoint3D> points) |
MTBSurface3D(Vector<MTBPoint3D> points,
int id) |
Modifier and Type | Method and Description |
---|---|
void |
addPoint(MTBPoint3D p)
Append a 3D point to the region.
|
double |
getArea() |
int |
getID()
Return the ID of the region.
|
Vector<MTBPoint3D> |
getPoints()
Return the points which are included in the 3D region.
|
void |
setID(int id)
Set the ID of the region.
|
void |
setPoints(Vector<MTBPoint3D> points)
set points of this surface
|
@ALDClassParameter(label="list of points") private Vector<MTBPoint3D> points
private int id
public MTBSurface3D(Vector<MTBPoint3D> points)
points
- public MTBSurface3D(Vector<MTBPoint3D> points, int id)
points
- id
- public void addPoint(MTBPoint3D p)
p
- point to addpublic void setID(int id)
id
- region IDpublic int getID()
public void setPoints(Vector<MTBPoint3D> points)
points
- public Vector<MTBPoint3D> getPoints()
public double getArea()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.