public class PolygonBasedVolumeOfInterest extends VolumeOfInterest implements ConfigFileParser, SafeSerializable
Constructor and Description |
---|
PolygonBasedVolumeOfInterest() |
PolygonBasedVolumeOfInterest(java.lang.String maxVOIFileName) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double x,
double y,
double z)
Tests whether a given coordinate in world coordinates is within the VOI.
|
boolean |
getSuccess()
is true if the reading was successful.
|
void |
prepareForSerialization()
Sets all data objects in the serialized object to null which do not implement the Serializable interface.
|
void |
readConfigFile(java.lang.String filename)
Reads the configuration from the file denoted by filename
|
getVolumes, openAsVolume
public PolygonBasedVolumeOfInterest()
public PolygonBasedVolumeOfInterest(java.lang.String maxVOIFileName) throws java.io.IOException
java.io.IOException
public boolean contains(double x, double y, double z)
VolumeOfInterest
contains
in class VolumeOfInterest
x
- world coordinate xy
- world coordinate yz
- world coordinate zpublic void readConfigFile(java.lang.String filename) throws java.io.IOException
ConfigFileParser
readConfigFile
in interface ConfigFileParser
filename
- the file namejava.io.IOException
- may happen during readingpublic boolean getSuccess()
ConfigFileParser
getSuccess
in interface ConfigFileParser
public void prepareForSerialization()
SafeSerializable
prepareForSerialization
in interface SafeSerializable