geometry.object
Interface DistanceMap

All Known Implementing Classes:
DistanceMap2D, DistanceMap3D

public interface DistanceMap

A shape's distance map holds for every node in the shape the information about the distance from the node to the shape contour.


Method Summary
 double getAverageDistance()
          Get the average distance from each pixel/voxel in the shape to the contour.
 double getDistance(Index index)
          Get the distance from the specified coordinates to the contour
 java.lang.Object getDistanceMap()
           
 void setDistanceMap(java.lang.Object distancemap)
          set the distance map.
 

Method Detail

getDistance

double getDistance(Index index)
Get the distance from the specified coordinates to the contour

Parameters:
index - the index to get the distance to the contour for
Returns:
the distance from the specified coordinates to the contour

setDistanceMap

void setDistanceMap(java.lang.Object distancemap)
set the distance map.

Parameters:
distancemap - the distance map to set.

getDistanceMap

java.lang.Object getDistanceMap()

getAverageDistance

double getAverageDistance()
Get the average distance from each pixel/voxel in the shape to the contour.

Returns:
the average distance from each pixel/voxel to the contour