HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
OP_OpTypeId.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: OP Library (C++)
7
*
8
* COMMENTS: Enums for OP_Node
9
*
10
*/
11
12
#ifndef __OP_OpTypeId_h__
13
#define __OP_OpTypeId_h__
14
15
#include "
OP_API.h
"
16
#include <
UT/UT_WorkBuffer.h
>
17
18
enum
OP_OpTypeId
19
{
20
INVALID_OPTYPE_ID
= -1,
21
OBJ_OPTYPE_ID
= 0,
22
SOP_OPTYPE_ID
,
23
CHOPNET_OPTYPE_ID
,
24
CHOP_OPTYPE_ID
,
25
ROP_OPTYPE_ID
,
26
SHOP_OPTYPE_ID
,
27
COP2_OPTYPE_ID
,
28
COP2NET_OPTYPE_ID
,
29
VOP_OPTYPE_ID
,
30
VOPNET_OPTYPE_ID
,
31
DOP_OPTYPE_ID
,
32
TOP_OPTYPE_ID
,
33
TOPNET_OPTYPE_ID
,
34
LOP_OPTYPE_ID
,
35
COP_OPTYPE_ID
,
36
MGR_OPTYPE_ID
,
37
DIR_OPTYPE_ID
,
38
DATA_OPTYPE_ID
,
39
NUM_MANAGERS
40
};
41
42
OP_API
extern
const
char
*
OPtypeIdToString
(
OP_OpTypeId
type
);
43
44
// UTformat support.
45
static
inline
size_t
46
format
(
char
*
buffer
,
size_t
buffer_size,
const
OP_OpTypeId
&
v
)
47
{
48
UT_WorkBuffer
eventtext;
49
eventtext.
sprintf
(
"%s (%d)"
,
OPtypeIdToString
(v), (
int
)(v));
50
if
(!buffer)
51
return
eventtext.
length
();
52
else
53
{
54
size_t
len =
std::min
(
size_t
(eventtext.
length
()), buffer_size);
55
::memcpy(buffer, eventtext.
buffer
(), len);
56
return
len;
57
}
58
}
59
60
#endif
VOP_OPTYPE_ID
Definition:
OP_OpTypeId.h:29
UT_WorkBuffer::length
SYS_FORCE_INLINE exint length() const
Definition:
UT_WorkBuffer.h:429
UT_WorkBuffer
Definition:
UT_WorkBuffer.h:74
DOP_OPTYPE_ID
Definition:
OP_OpTypeId.h:31
v
const GLdouble * v
Definition:
glcorearb.h:837
DATA_OPTYPE_ID
Definition:
OP_OpTypeId.h:38
CHOPNET_OPTYPE_ID
Definition:
OP_OpTypeId.h:23
ROP_OPTYPE_ID
Definition:
OP_OpTypeId.h:25
UT_WorkBuffer::buffer
SYS_FORCE_INLINE const char * buffer() const
Definition:
UT_WorkBuffer.h:169
ImageBufAlgo::min
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
OP_API.h
COP_OPTYPE_ID
Definition:
OP_OpTypeId.h:35
TOPNET_OPTYPE_ID
Definition:
OP_OpTypeId.h:33
NUM_MANAGERS
Definition:
OP_OpTypeId.h:39
SHOP_OPTYPE_ID
Definition:
OP_OpTypeId.h:26
OBJ_OPTYPE_ID
Definition:
OP_OpTypeId.h:21
buffer
Definition:
core.h:760
UT_WorkBuffer.h
MGR_OPTYPE_ID
Definition:
OP_OpTypeId.h:36
LOP_OPTYPE_ID
Definition:
OP_OpTypeId.h:34
format
GLint GLint GLsizei GLint GLenum format
Definition:
glcorearb.h:108
OP_OpTypeId
OP_OpTypeId
Definition:
OP_OpTypeId.h:18
OPtypeIdToString
OP_API const char * OPtypeIdToString(OP_OpTypeId type)
SOP_OPTYPE_ID
Definition:
OP_OpTypeId.h:22
VOPNET_OPTYPE_ID
Definition:
OP_OpTypeId.h:30
CHOP_OPTYPE_ID
Definition:
OP_OpTypeId.h:24
UT_WorkBuffer::sprintf
int sprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
INVALID_OPTYPE_ID
Definition:
OP_OpTypeId.h:20
COP2NET_OPTYPE_ID
Definition:
OP_OpTypeId.h:28
OP_API
#define OP_API
Definition:
OP_API.h:10
type
type
Definition:
core.h:1059
COP2_OPTYPE_ID
Definition:
OP_OpTypeId.h:27
TOP_OPTYPE_ID
Definition:
OP_OpTypeId.h:32
DIR_OPTYPE_ID
Definition:
OP_OpTypeId.h:37
OP
OP_OpTypeId.h
Generated on Tue Jan 14 2025 02:41:39 for HDK by
1.8.6