34 #ifndef CARTODATA_VOLUME_VOLUMEPROXY_H
35 #define CARTODATA_VOLUME_VOLUMEPROXY_H
48 template <
typename T >
54 explicit VolumeProxy(
int sizeX = 1,
int sizeY = 1,
int sizeZ = 1,
56 explicit VolumeProxy(
const std::vector<int> & size );
65 std::vector<int>
getSize()
const;
69 void setVoxelSize(
float vx,
float vy = 1.,
float vz = 1.,
float vt = 1. );
87 template <
typename T >
97 template <
typename T >
107 template <
typename T >
117 template <
typename T >
127 template <
typename T >
137 template <
typename T >
150 #if !defined(__sun__) || !defined(_CHAR_IS_SIGNED)
Object reference(Object &value)
VolumeProxy is the base class for volumes.
VolumeProxy(int sizeX=1, int sizeY=1, int sizeZ=1, int sizeT=1)
VolumeProxy< T > & operator=(const VolumeProxy< T > &other)
std::vector< float > getVoxelSize() const
get the voxel size from the header, with 4 values defaulting to 1.mm if not present
std::vector< int > getSize() const
get the 4 dimensions in a vector
void setVoxelSize(float vx, float vy=1., float vz=1., float vt=1.)
virtual void copyHeaderFrom(const PropertySet &other)
copy properties from other to this, avoiding forbidden properties like size.