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, openAsVolumepublic PolygonBasedVolumeOfInterest()
public PolygonBasedVolumeOfInterest(java.lang.String maxVOIFileName)
throws java.io.IOException
java.io.IOExceptionpublic boolean contains(double x,
double y,
double z)
VolumeOfInterestcontains in class VolumeOfInterestx - world coordinate xy - world coordinate yz - world coordinate zpublic void readConfigFile(java.lang.String filename)
throws java.io.IOException
ConfigFileParserreadConfigFile in interface ConfigFileParserfilename - the file namejava.io.IOException - may happen during readingpublic boolean getSuccess()
ConfigFileParsergetSuccess in interface ConfigFileParserpublic void prepareForSerialization()
SafeSerializableprepareForSerialization in interface SafeSerializable