24#ifndef _SB_IMAGE_DATA_ACCESSOR_H_
25#define _SB_IMAGE_DATA_ACCESSOR_H_
60class SoDEPRECATED Region
169 double getVoxel(
int x,
int y,
int z = 0,
int t = 0,
int c = 0 );
181 bool setVoxel(
double value,
int x,
int y,
int z = 0,
int t = 0,
int c = 0 );
198 bool getRow( std::vector<double>& values,
int y,
int z = 0,
int t = 0,
int c = 0 );
215 bool setRow(
const std::vector<double>& values,
int y,
int z = 0,
int t = 0,
int c = 0 );
232 bool getColumn( std::vector<double>& values,
int x,
int z = 0,
int t = 0,
int c = 0 );
249 bool setColumn(
const std::vector<double>& values,
int x,
int z = 0,
int t = 0,
int c = 0 );
298 template <
typename IMAGE_TYPE,
typename REGION>
306 template <
typename IMAGE_TYPE>
310 static bool checkRegionConsistency(
const Region& region );
valueRef operator=(valueRef newValue)
Sets this field to newValue.
void getSize(float &sizeX, float &sizeY, float &sizeZ) const
Gets box size.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> 3D box class.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> 4D box class.
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> List of channel to ext...
A region must be an ordered set with a first voxel and for each voxel a next voxel,...
virtual SbVec4i32 getSize() const =0
Returns dimensions of the region.
virtual uint64_t getNumVoxel() const =0
Returns number of voxels contained in the region.
virtual SbVec4i32 getPosition(uint64_t i) const =0
Returns position of the ith voxel in the region.
virtual SbBox4i32 getExtent() const =0
Returns extent of the region in image space.
Region representing a 3D box.
virtual SbVec4i32 getPosition(uint64_t i) const
Returns position of the ith voxel of the region.
SubVolumeRegion(const SbBox3i32 &subVolume)
Constructor.
virtual SbBox4i32 getExtent() const
Returns extent of region.
virtual uint64_t getNumVoxel() const
Returns number of voxels contained in the region.
virtual SbVec4i32 getSize() const
Returns the dimensions of the region.
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Class used to retrieve...
double getVoxel(int x, int y, int z=0, int t=0, int c=0)
Returns value of voxel at specified position.
SbImageDataVoxel getVoxel(const SbVec4i32 &pos)
Returns voxel at specified position.
static SubVolumeRegion createFullRegion(SoImageDataAdapter *image)
Helper to create a SubVolumeRegion corresponding to the whole region of the given image.
static SubVolumeRegion createSliceRegion(SoImageDataAdapter *image, uint32_t sliceNumber)
Helper to create a SubVolumeRegion corresponding to one slice of the given image.
bool setRow(const SoCpuBufferObject *values, int y, int z=0, int t=0, int c=0)
Set values to a row at specified coordinates.
SoMemoryDataAdapter * copyRegion(const Region ®ion)
Returns an SoMemoryDataAdapter corresponding to the requested region.
bool getRow(std::vector< double > &values, int y, int z=0, int t=0, int c=0)
Alternate method to getRow( SoCpuBufferObject* values, int y, int z, int t, int c ).
SoMemoryDataAdapter * copyRegion(const Region ®ion, const SbChannelList &channels)
Returns an SoMemoryDataAdapter corresponding to the requested region.
bool setVoxel(double value, int x, int y, int z=0, int t=0, int c=0)
Set the value of voxel at specified coordinates.
bool setColumn(const SoCpuBufferObject *values, int x, int z=0, int t=0, int c=0)
Set values to a column at specified coordinates.
bool getColumn(SoCpuBufferObject *values, int x, int z=0, int t=0, int c=0)
Get values of the full column at specified coordinates.
bool setRow(const std::vector< double > &values, int y, int z=0, int t=0, int c=0)
Alternate method to setRow( const SoCpuBufferObject* values, int y, int z, int t, int c ).
bool setColumn(const std::vector< double > &values, int x, int z=0, int t=0, int c=0)
Alternate method to setColumn( const SoCpuBufferObject* values, int x, int z, int t,...
SoImageDataAdapter * getImageAdapter() const
Returns the SoImageDataAdapter associated with this DataAccessor.
bool getColumn(std::vector< double > &values, int x, int z=0, int t=0, int c=0)
Alternate method to getColumn( SoCpuBufferObject* values, int x, int z, int t, int c ).
bool getRow(SoCpuBufferObject *values, int y, int z=0, int t=0, int c=0)
Get values of the full row at specified coordinates.
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Utility class used to ...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> CPU buffer objec...
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Abstract base class fo...
<a href="IconLegend.html"><img src="extIP.gif" alt="ImageViz" border="0"></a> Image data adapter for...