The VolumeData class is responsible for handling the underlying
storage as well as marrying together the concepts of array-coordinates
and world-coordinates. The class itself is a fairly simple aggregation of
the Numpy array class (to handle the basic storage and provide a huge
library of functionality) and the _VDCoordinateFrame class (to marry up
the concept of array-coordinates and world-coordinates).
|
__init__(self,
N=None,
resolution=None,
origin=None)
This function creates a new VolumeData object. |
|
|
|
_get_CoordinateFrame(self) |
|
|
bool
|
IsCompatible(self,
vd)
This function can be used to test whether vd is compatible with this
VolumeData. |
|
|
iterable< float, 3 >
|
ToArrayCoordinate(self,
world)
Converts the specified world-coordinate to the corresponding
array-coordinate. |
|
|
iterable< iterable< float, 3 > >
|
ToArrayCoordinateL(self,
worldCoordinates)
Converts the specified set of world-coordinates to the corresponding
array-coordinates. |
|
|
iterable< float, 3 >
|
ToWorldCoordinate(self,
array)
Converts the specified array-coordinate to the corresponding
world-coordinate. |
|
|
iterable< iterable< float, 3 > >
|
ToWorldCoordinateL(self,
arrayCoordinates)
Converts the specified set of array-coordinates to the corresponding
world-coordinates. |
|
|
bool
|
InBounds(self,
world)
Tests whether the world-coordinate corresponds to a position that is
within the bounds of the array-coordinates. |
|
|
iterator< iterable< int, 3 > >
|
ArrayCoordinates(self)
This function returns an iterator which allows the array-coordinates
corresponding to this VolumeData to be traversed. |
|
|
iterable< iterable< int, 3 > >
|
|
iterator< iterable< float, 3 > >
|
WorldCoordinates(self)
This function returns an iterator which allows the world-coordinates
corresponding to this VolumeData to be traversed. |
|
|
iterable< iterable< float, 3 > >
|
|
iterator< tuple< iterable< int, 3 >, iterable<
float, 3 > > >
|
Coordinates(self)
This function returns an iterator which allows the array-coordinates
and world-coordinates corresponding to this VolumeData to be
traversed. |
|
|
numpy.array
|
getData(self)
This function allows access to the underlying data. |
|
|
|
setData(self,
data)
This function allows the underlying data to be set. |
|
|
|
__iadd__(self,
rhs)
__iadd__, __isub__, __imul__, __idiv__: These functions perform the
standard mathematic operations on this VolumeData. |
|
|
|
__isub__(self,
rhs)
see __iadd__ docstring |
|
|
|
__imul__(self,
rhs)
see __iadd__ docstring |
|
|
|
__idiv__(self,
rhs)
see __iadd__ docstring |
|
|
float
|
getAtArrayCoordinate(self,
array,
interpolationOrder=0,
oobMethod=' constant ' ,
oobConstant=0.0)
This function is used to retrieve values from this VolumeData object
using array-coordinates. |
|
|
iterable< float >
|
getAtArrayCoordinateL(self,
arrayCoordinates,
interpolationOrder=0,
oobMethod=' constant ' ,
oobConstant=0.0)
This function can be used to retrieve a large number of values at
specified array-coordinates. |
|
|
float
|
getAtWorldCoordinate(self,
world,
interpolationOrder=0,
oobMethod=' constant ' ,
oobConstant=0.0)
This function is used to retrieve values from this VolumeData object
using world-coordinates. |
|
|
iterable< float >
|
getAtWorldCoordinateL(self,
worldCoordinates,
interpolationOrder=0,
oobMethod=' constant ' ,
oobConstant=0.0)
This function can be used to retrieve a large number of values at
specified world-coordinates. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|