84 virtual void setValue(
int32 i);
85 virtual void setValue(
int64 i);
92 virtual void setValue(
const int32 ip[],
exint n);
93 virtual void setValue(
const int64 ip[],
exint n);
95 virtual void setValue(
const char *s);
96 virtual void setValue(
const UI_Value &v);
98 void setPointerValue(
void *p);
99 void stringPrintf(
const char *fmt, ...);
118 virtual void enable(
bool state);
119 virtual void visible(
bool state);
120 virtual void override(
bool state,
int);
121 virtual void open(
bool state);
122 virtual void refresh();
126 bool areAnyFeelClientsOpen()
const;
135 virtual void rangeCheck();
138 int save(std::ostream &os)
const;
168 exint getArrayLength()
const;
174 bool check_dup =
false);
176 bool check_dup =
false);
181 void removeAllInterests();
185 const char *getString()
const;
186 void setString(
char *sp);
190 void expandEnvironment();
192 operator const char *()
const;
193 operator bool()
const;
194 operator int32()
const;
195 operator int64()
const;
198 operator void *()
const;
220 const char *
className()
const override {
return "UI_Value"; }
223 int getNumInterested()
const;
227 void dumpInterests(std::ostream &os,
228 const char *prefix = 0)
const;
239 bool isTraced()
const {
return myTraceLevel != TL_NONE; }
282 : myClientId(who->getProxyId())
288 ui_Client(
const ui_Client& copy) =
delete;
289 ui_Client&
operator=(
const ui_Client& copy) =
delete;
291 ui_Client(ui_Client&&
src) =
default;
294 bool isEqual(
int id) {
return myClientId ==
id; }
295 int getClientId() {
return myClientId; }
296 UI_Object * getClient() {
return myClientId; }
304 using ui_ClientList = std::deque<ui_Client>;
306 using ui_ClientListIter = ui_ClientList::iterator;
309 ui_ClientListIter ibegin() {
return myInterests->begin(); }
311 ui_ClientListIter iend() {
return myInterests->end(); }
315 TraceLevel myTraceLevel:2;
316 ui_ClientListPtr myInterests;
317 const char* myFormat;
326 return myInterests ?
int(myInterests->size()) : 0;
332 if (!myInterests || i < 0 || i >= myInterests->size())
335 return (*myInterests)[i].getClient();
341 if (min_value > max_value)
347 if (myValue.d < min_value)
348 myValue.d = min_value;
349 else if (myValue.d > max_value)
354 if (myValue.i < min_value)
355 myValue.i = (
int)min_value;
356 else if (myValue.i > max_value)
357 myValue.i = (
int)max_value;
361 for (
exint i = 1, n = myValue.a[0]; i < n; ++i)
363 if (myValue.a[n] < min_value)
364 myValue.a[
n] = min_value;
365 else if (myValue.a[n] > max_value)
371 for (
exint i = 1, n = myValue.a[0]; i < n; ++i)
373 if (myValue.j[n] < (
int)min_value)
374 myValue.j[n] = (
int)min_value;
constexpr auto max_value() -> T
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
friend std::ostream & operator<<(std::ostream &os, const UI_Value &v)
GLenum GLuint GLsizei bufsize
void operator=(const UI_Value &v)
UI_Object * getInterest(int index) const
virtual void setTraceLevel(TraceLevel tl)
const char * getFormat() const
void setFormat(const char *fmt)
GLboolean GLboolean GLboolean GLboolean a
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
void operator=(fpreal64 f)
TraceLevel getTraceLevel() const
void operator=(fpreal32 f)
constexpr auto in(type t, int set) -> bool
__hostdev__ float getValue(uint32_t i) const
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
virtual void handleEvent(UI_Event *event)
void operator=(const char *s)
virtual int isVector() const
GLint GLint GLsizei GLint GLenum format
UI_API size_t UTformatBuffer(char *buffer, size_t buffer_size, const UI_ValueType &v)
int save(std::ostream &os) const
SYS_FORCE_INLINE UI_ValueType getType() const
void clampValue(fpreal min_value, fpreal max_value)
const char * className() const override
LeafData & operator=(const LeafData &)=delete
int getNumInterested() const
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
virtual void deleteReferences(UI_Object *to_whom)
void(UI_Object::* UI_EventMethod)(UI_Event *)
void operator=(const UT_Color &c)