26 UT_SMALLOBJECT_CLEANPAGES_OFF, 250,
27 UT_SMALLOBJECT_THREADSAFE_ON>
42 int64 getMemoryUsage(
bool inclusive)
const;
57 bool isCompatible(
const TIL_Plane &)
const;
61 const char *
getName()
const {
return myName; }
62 void setName(
const char *name);
64 bool isAlphaPlane()
const;
65 bool isColorPlane()
const;
66 bool isPointPlane()
const;
67 bool isNormalPlane()
const;
68 bool isDepthPlane()
const;
69 bool isGeometricPlane()
const;
78 { myTypeInfo = (
unsigned char)typeinfo; }
83 void setArraySize(
int n);
87 void setVectorSize(
int n);
91 {
return (i>=0 && i<myVectorSize) ? mySubName[i] : 0; }
93 void setSubName(
const char *subname,
int i);
94 int hasElement(
const char *planename);
102 {
return (i>=0 && i<myVectorSize) ? myPlaneMask[i]:0; }
104 void setPlaneMask(
int enable,
int i);
105 void copyPlaneMask(
const TIL_Plane &plane);
107 {
for(
int i=myVectorSize; i--;) myPlaneMask[i]=(
char)enable; }
109 bool isScoped()
const;
110 bool isPartiallyScoped()
const;
111 bool scopeMatches(
const TIL_Plane &plane)
const;
114 int getArrayMask(
int i)
const;
115 void setArrayMask(
int start,
int end,
int step);
118 bool isConstantPlane()
const;
119 bool isConstantComponent(
int i)
const;
120 bool isAnyComponentConstant()
const;
121 void setConstantFlag(
int i,
bool enable);
124 int usesBlackWhitePoints()
const;
126 unsigned int &
w)
const
127 { b = myBlackPoint; w = myWhitePoint; }
128 void getBlackWhitePoints(
float &
b,
float &
w)
const;
129 void setBlackWhitePoints(
unsigned int b,
unsigned int w);
131 void debugPrint(std::ostream &os)
const;
132 int64 getMemSize()
const;
138 myOCIOColorSpace = ocio;
143 unsigned getHash()
const;
150 unsigned short myArraySize;
151 unsigned char myFormat;
152 unsigned char myTypeInfo;
153 unsigned char myVectorSize;
159 int myArrayMaskStart;
170 unsigned int myBlackPoint;
171 unsigned int myWhitePoint;
172 unsigned int myNameAlloc :1,
int operator==(const TIL_Plane &eq) const
Class which writes ASCII or binary JSON streams.
int getPlaneMask(int i) const
void getBlackWhitePoints(unsigned int &b, unsigned int &w) const
int operator!=(const TIL_Plane &eq) const
const UT_StringHolder & getOCIOColorSpace() const
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
const char * getName() const
GLint GLint GLsizei GLint GLenum format
void setTypeInfo(TIL_TypeInfo typeinfo)
const char * getSubName(int i) const
#define PLANE_MAX_VECTOR_SIZE
TIL_DataFormat getFormat() const
GLuint const GLchar * name
TIL_TypeInfo getTypeInfo() const
GLboolean GLboolean GLboolean b
LeafData & operator=(const LeafData &)=delete
PXL_ColorSpace getColorSpace() const
GLubyte GLubyte GLubyte GLubyte w
int getVectorSize() const
void setColorSpace(PXL_ColorSpace cs, const UT_StringHolder &ocio=UT_StringHolder())
void setScoped(int enable)