RixDeepTexture::DeepImage Class Reference

RixDeepTexture::DeepImage Class Referenceabstract

#include <RixDeepTexture.h>

Public Member Functions

virtual const char * GetName ()=0
 
virtual int GetNumChan ()=0
 return the number of channels in this image
 
virtual int GetWidth ()=0
 return the width of this image in pixels
 
virtual int GetHeight ()=0
 return the height of this image in pixels
 
virtual int GetTileWidth ()=0
 return the width of the tiles in this image, in pixels
 
virtual int GetTileHeight ()=0
 return the height of the tiles in this image, in pixels
 
virtual int GetNP (float *NP)=0
 copy the projection matrix from this image to NP.
 
virtual int GetNl (float *Nl)=0
 copy the light-space matrix from this image to Nl.
 
virtual Compression GetCompression ()=0
 return the compression type of this image.
 
virtual DataType GetDataType ()=0
 return the data type of this image.
 
virtual DeepMetadataGetMetadata ()=0
 
virtual int SetPixelData (int x, int y, int numPoints, float *data)=0
 
virtual int SetPixel (int x, int y, DeepPixel *pix)=0
 
virtual int GetPixel (int x, int y, DeepPixel *pix)=0
 
virtual int Eval (int x, int y, float z, float *data)=0
 
virtual int GetZRange (int x, int y, float *min, float *max)=0
 
virtual int GetMeanDepth (int x, int y, float *mean, float *alpha)=0
 

Protected Member Functions

virtual ~DeepImage ()
 Internal only.
 

Detailed Description

DeepImage

This object allows the manipulation of the DeepPixel data contained within this image object.

Member Function Documentation

virtual int RixDeepTexture::DeepImage::Eval ( int  x,
int  y,
float  z,
float *  data 
)
pure virtual

Look up the pixel's interpolated value at depth z, and put the result in data. Data must point at float storage large enough to encompass the number of channels in the image.

virtual int RixDeepTexture::DeepImage::GetMeanDepth ( int  x,
int  y,
float *  mean,
float *  alpha 
)
pure virtual

Computes the mean depth found in the pixel and the overall coverage. This is useful for displaying deep images.

virtual DeepMetadata* RixDeepTexture::DeepImage::GetMetadata ( )
pure virtual

Get a handle to the image-specific metadata. May be null on older files.

virtual const char* RixDeepTexture::DeepImage::GetName ( )
pure virtual

return the name of this image. The resulting pointer is guaranteed to be valid until DtexClose() is called on the containing file.

virtual int RixDeepTexture::DeepImage::GetPixel ( int  x,
int  y,
DeepPixel pix 
)
pure virtual

Copy the pixel at position x,y into the given DeepPixel. The DeepPixel is resized if necessary, and if the number of channels in pix is different than the number of channels in this image, pix is modified to match. Returns k_ErrNOERR if no error, k_ErrRANGE if the requested pixel outside the image, or k_ErrBADFILE if the file is found to be corrupt.

virtual int RixDeepTexture::DeepImage::GetZRange ( int  x,
int  y,
float *  min,
float *  max 
)
pure virtual

Computes the range over which the specified pixel is defined. If the pixel is non-empty, the range is returned in min and max and the function returns k_ErrNOERR. If the pixel is empty, k_ErrEMPTY is returned and min and max are undefined.

virtual int RixDeepTexture::DeepImage::SetPixel ( int  x,
int  y,
DeepPixel pix 
)
pure virtual

Copy the given pixel into pixel x,y of the specified image. pix must have either the same number of channels as img, or one channel. If pix has any unresolved compression state, k_ErrERR is returned. Take care to call pix->FinishPixel before you use SetPixel.

virtual int RixDeepTexture::DeepImage::SetPixelData ( int  x,
int  y,
int  numPoints,
float *  data 
)
pure virtual

Copy the given pixel data into pixel x, y of the specified image. numPoints indicates how many points there are. data should point to numPoints*(GetNumChan()+1) floats.


The documentation for this class was generated from the following file: