HDK
|
#include <PXL_Raster.h>
Public Types | |
enum | Visualization { Visualization::NONE, Visualization::SDF, Visualization::RANDOMID, Visualization::IMAGECOORD, Visualization::HUENML, Visualization::HUEVEL } |
Protected Member Functions | |
virtual void | initialize () |
bool | allocRaster (int alloc_mem=1) |
void | freeRaster () |
void | applyLUT8 (const PXL_Raster *src, float *lptr[4], exint comp, float lscale, float lshift, exint size) |
void | applyLUT16 (const PXL_Raster *src, float *lptr[4], exint comp, float lscale, float lshift, exint size) |
virtual void | attemptRealloc (int64 size) |
Additional Inherited Members | |
Static Public Member Functions inherited from UT_SmallObject< PXL_Raster, UT_SMALLOBJECT_CLEANPAGES_OFF, 250, UT_SMALLOBJECT_THREADSAFE_ON > | |
static void * | operator new (size_t size) |
Regular new/delete operators. More... | |
static void | operator delete (void *p, size_t size) |
Regular new/delete operators. More... | |
static void * | operator new (size_t, void *p) |
static void | operator delete (void *, void *) |
Definition at line 36 of file PXL_Raster.h.
|
strong |
Enumerator | |
---|---|
NONE | |
SDF | |
RANDOMID | |
IMAGECOORD | |
HUENML | |
HUEVEL |
Definition at line 53 of file PXL_Raster.h.
PXL_Raster::PXL_Raster | ( | ) |
PXL_Raster::PXL_Raster | ( | const PXL_Raster & | ) |
PXL_Raster::PXL_Raster | ( | const PXL_Raster & | , |
exint | x1, | ||
exint | y1, | ||
exint | x2, | ||
exint | y2 | ||
) |
PXL_Raster::PXL_Raster | ( | PXL_Packing | p, |
PXL_DataFormat | f, | ||
exint | xres = 0 , |
||
exint | yres = 0 , |
||
int | clear = 0 , |
||
int | alloc = 1 |
||
) |
|
virtual |
void PXL_Raster::addInterest | ( | void * | callerData, |
void(*)(PXL_Raster *, void *) | changeCB | ||
) |
|
protected |
void PXL_Raster::applyLUT | ( | const PXL_Raster * | src, |
float * | lptr[4], | ||
exint | comp, | ||
float | lstart, | ||
float | lend | ||
) |
|
protected |
|
protected |
int PXL_Raster::areComponentsRenderable | ( | ) | const |
Reimplemented in TIL_Raster.
bool PXL_Raster::clampAlpha | ( | ) |
void PXL_Raster::clearTextureID | ( | ) |
void PXL_Raster::convert8Bit | ( | unsigned | b, |
unsigned | w | ||
) |
|
virtual |
Copy over all the information and data from the src. This allocates a new raster (rather than doing a shallow copy).
Reimplemented in TIL_Raster.
|
virtual |
copies only the raster properties (res, type, etc), not the data, nor does this method allocate memory for a raster.
Reimplemented in TIL_Raster.
void PXL_Raster::dither | ( | const UT_DimRect & | crop | ) |
void PXL_Raster::dither | ( | ) |
void PXL_Raster::flipVertical | ( | ) |
|
protected |
|
inline |
Colorspace this raster requires for correct display.
Definition at line 135 of file PXL_Raster.h.
|
inline |
Gamma that must be applied to this raster to get accurate color. Only valid for PXL_CS_LINEAR, PXL_CS_GAMMA2_2, and PXL_CS_CUSTOM_GAMMA.
Definition at line 139 of file PXL_Raster.h.
|
inline |
OCIO colorspace name, valid for PXL_CS_OCIO.
Definition at line 141 of file PXL_Raster.h.
exint PXL_Raster::getCorrectedXres | ( | ) | const |
exint PXL_Raster::getCorrectedYres | ( | ) | const |
|
inline |
Definition at line 147 of file PXL_Raster.h.
|
inline |
Definition at line 253 of file PXL_Raster.h.
|
inline |
Definition at line 119 of file PXL_Raster.h.
|
virtual |
Reimplemented in TIL_Raster.
int64 PXL_Raster::getNonInterleavedSize | ( | ) | const |
|
inline |
Definition at line 122 of file PXL_Raster.h.
|
inline |
Definition at line 116 of file PXL_Raster.h.
|
inline |
Definition at line 142 of file PXL_Raster.h.
|
inline |
Definition at line 143 of file PXL_Raster.h.
|
inline |
Definition at line 120 of file PXL_Raster.h.
|
inline |
Definition at line 162 of file PXL_Raster.h.
|
inline |
Definition at line 165 of file PXL_Raster.h.
|
inline |
Definition at line 249 of file PXL_Raster.h.
void PXL_Raster::getRange | ( | float & | min, |
float & | max, | ||
float | black = 0.0f , |
||
float | white = 1.0f , |
||
exint | comp = -1 , |
||
bool | ignore_farthest = false |
||
) | const |
|
inline |
Definition at line 169 of file PXL_Raster.h.
|
inline |
Definition at line 127 of file PXL_Raster.h.
|
inline |
Definition at line 118 of file PXL_Raster.h.
|
inline |
Definition at line 117 of file PXL_Raster.h.
void* PXL_Raster::getTextureID | ( | ) | const |
|
inline |
Definition at line 86 of file PXL_Raster.h.
|
inline |
Definition at line 114 of file PXL_Raster.h.
|
inline |
Definition at line 115 of file PXL_Raster.h.
bool PXL_Raster::hasAlpha | ( | ) | const |
|
inline |
Definition at line 149 of file PXL_Raster.h.
void PXL_Raster::init | ( | ) |
|
protectedvirtual |
Reimplemented in TIL_Raster.
void PXL_Raster::insert | ( | const PXL_Raster & | from, |
exint | x, | ||
exint | y | ||
) |
bool PXL_Raster::isInterleaved | ( | ) | const |
|
inline |
Definition at line 128 of file PXL_Raster.h.
|
inline |
Definition at line 112 of file PXL_Raster.h.
bool PXL_Raster::load | ( | UT_IStream & | is | ) |
|
inline |
Definition at line 260 of file PXL_Raster.h.
|
delete |
Assignment disallowed, use copy() instead.
bool PXL_Raster::premultiply | ( | const PXL_Raster * | other = nullptr | ) |
bool PXL_Raster::promoteRGBToRGBA | ( | UT_UniquePtr< PXL_Raster > & | dest, |
fpreal | alpha = 1.0 |
||
) | const |
void PXL_Raster::removeInterest | ( | ) |
Reimplemented in TIL_Raster.
void PXL_Raster::setColorSpace | ( | PXL_ColorSpace | space, |
fpreal | custom_gamma = 0.0 |
||
) |
Colorspace that this raster is in. Changing the color space does not affect the image values stored in this raster, only how they are interpreted. custom_gamma must be specified for PXL_CS_CUSTOM_GAMMA.
void PXL_Raster::setDataWindow | ( | const UT_DimRect & | new_rect | ) |
|
inline |
Definition at line 251 of file PXL_Raster.h.
void PXL_Raster::setFormat | ( | PXL_DataFormat | f | ) |
|
inline |
Definition at line 258 of file PXL_Raster.h.
void PXL_Raster::setOCIOColorSpace | ( | const UT_StringHolder & | space | ) |
void PXL_Raster::setOCIODisplayView | ( | const UT_StringHolder & | baked_display, |
const UT_StringHolder & | baked_view | ||
) |
void PXL_Raster::setOCIOParms | ( | const UT_StringHolder & | color_space, |
const UT_StringHolder & | baked_display, | ||
const UT_StringHolder & | baked_view | ||
) |
void PXL_Raster::setPacking | ( | PXL_Packing | p | ) |
Definition at line 255 of file PXL_Raster.h.
|
inline |
Visualization of the raster, which does not affect the raster but is hint for how to display it.
Definition at line 85 of file PXL_Raster.h.
void* PXL_Raster::steal | ( | ) |
void PXL_Raster::streakEdges | ( | exint | x1, |
exint | y1, | ||
exint | x2, | ||
exint | y2, | ||
PXL_StreakComponents | streak_comps = PXL_STREAK_ALL |
||
) |
bool PXL_Raster::unpremultiply | ( | const PXL_Raster * | other = nullptr | ) |
|
protected |
Definition at line 309 of file PXL_Raster.h.
|
protected |
Definition at line 306 of file PXL_Raster.h.
|
protected |
Definition at line 315 of file PXL_Raster.h.
|
protected |
Definition at line 314 of file PXL_Raster.h.
|
protected |
Definition at line 296 of file PXL_Raster.h.
|
protected |
Definition at line 297 of file PXL_Raster.h.
|
protected |
Definition at line 299 of file PXL_Raster.h.
|
protected |
Definition at line 317 of file PXL_Raster.h.
|
protected |
Definition at line 294 of file PXL_Raster.h.
|
protected |
Definition at line 312 of file PXL_Raster.h.
|
protected |
Definition at line 300 of file PXL_Raster.h.
|
protected |
Definition at line 301 of file PXL_Raster.h.
|
protected |
Definition at line 295 of file PXL_Raster.h.
|
protected |
Definition at line 310 of file PXL_Raster.h.
|
protected |
Definition at line 308 of file PXL_Raster.h.
|
protected |
Definition at line 302 of file PXL_Raster.h.
|
protected |
Definition at line 305 of file PXL_Raster.h.
|
protected |
Definition at line 307 of file PXL_Raster.h.
|
protected |
Definition at line 304 of file PXL_Raster.h.
|
protected |
Definition at line 313 of file PXL_Raster.h.
|
protected |
Definition at line 298 of file PXL_Raster.h.
|
protected |
Definition at line 306 of file PXL_Raster.h.
|
protected |
Definition at line 311 of file PXL_Raster.h.
|
protected |
Definition at line 303 of file PXL_Raster.h.
|
protected |
Definition at line 303 of file PXL_Raster.h.