12 #ifndef __GT_DARandom__
13 #define __GT_DARandom__
36 {
return "GT_DARandom"; }
42 {
return myTupleSize; }
44 {
return sizeof(*this); }
69 { myMin =
min; myMax =
max; }
An array of random values.
GT_Size entries() const override
SYS_FORCE_INLINE T * SYSconst_cast(const T *foo)
virtual fpreal32 getF32(GT_Offset offset, int idx=0) const =0
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
GT_Storage getStorage() const override
GT_Offset getStringIndex(GT_Offset, int) const override
Abstract data class for an array of float, int or string data.
GT_Type getTypeInfo() const override
UT_IntrusivePtr< GT_DataArray > GT_DataArrayHandle
const char * className() const override
GT_Offset getDictIndex(GT_Offset, int) const override
void getIndexedStrings(UT_StringArray &, UT_IntArray &) const override
int64 getMemoryUsage() const override
void getIndexedDicts(UT_Array< UT_OptionsHolder > &, UT_IntArray &) const override
GT_Size getDictIndexCount() const override
GT_DataArrayHandle harden() const override
void setRange(fpreal min=0, fpreal max=1)
The random numbers generated will be fit to this range.
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
virtual uint8 getU8(GT_Offset offset, int idx=0) const =0
GT_Size getTupleSize() const override
GT_Size getStringIndexCount() const override
virtual int32 getI32(GT_Offset offset, int idx=0) const =0
virtual GT_String getS(GT_Offset offset, int idx=0) const =0