18 #ifndef IMG_FILE_FILTER_H
19 #define IMG_FILE_FILTER_H
35 bool isPassThrough()
const override {
return true; }
37 {
return myFileToFilter->isTopFirst(); }
39 {
return myFileToFilter->isLeftFirst(); }
41 IMG_File *
getBaseFile()
const override {
return myFileToFilter; }
43 void randomReadAccessRequired()
override;
48 { IMG_File::computeCommonData(); }
50 int getDeepPixelSamples(
int x,
int y)
override;
51 bool getDeepPixelPlaneData(
int x,
int y,
53 float *
data)
override;
54 bool getDeepPixelData(
int x,
int y,
float *
const *
data)
override;
55 bool readDeepPixelData(
int x,
int y,
57 bool writeDeepPixelData(
int x,
int y,
68 int readScanline(
int scanline,
void *
data)
override;
69 int writeScanline(
int scanline,
const void *
data)
override;
71 void checkpoint()
override;
72 int closeFile()
override;
79 bool writeToScanline(
int y,
const void *
data,
85 { myFileToFilter->getAdditionalInfo(text); }
90 imageTextureOptions()
const override;
91 void clearImageTextureOptions()
override;
92 bool setImageTextureOptions(
const UT_Options &options)
override;
93 void setWriteTag(
const char *tag,
94 int n,
const char *
const *
v)
override;
97 IMG_File *myFileToFilter;
IMG_Stat & getInputStat()
UT_UniquePtr< IMG_FileFilter > IMG_FileFilterPtr
void getAdditionalInfo(UT_String &text) override
Describes the format and layout of a single plane in an image The plane specifies the format and name...
int isTopFirst() const override
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
virtual int finishFilter()
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
const IMG_Stat & getInputStat() const
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
void setFileToFilter(IMG_File *file)
void computeCommonData() override
int isLeftFirst() const override
A map of string to various well defined value types.
__hostdev__ constexpr T pi()
Pi constant taken from Boost to match old behaviour.
Contains the details of a specific image file, used by IMG_File. This class contains all the high-lev...
IMG_File * getBaseFile() const override