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
SOP_UVLayout.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: SOP library (C++)
7
*
8
* COMMENTS: UVLayout SOP
9
*/
10
11
12
#ifndef __SOP_UVLayout_h__
13
#define __SOP_UVLayout_h__
14
15
#include "
SOP_API.h
"
16
#include <
GU/GU_UVPack.h
>
17
18
#include "
SOP_Node.h
"
19
20
namespace
sop_uvlayout_private {
21
enum
SOP_PackingMethod
22
{
23
SOP_SINGLE_FRAME
= 0,
24
SOP_MULTI_FRAMES
,
25
SOP_FROM_ATTRIBUTE
,
26
SOP_CURRENT_FRAME
27
};
28
29
enum
30
{
31
SOP_LAYOUT_GROUP_INDEX
= 0,
32
SOP_LAYOUT_PACKING_INDEX
,
33
SOP_LAYOUT_SCALE_INDEX
,
34
SOP_LAYOUT_PADDING_INDEX
,
35
SOP_LAYOUT_PADDINGBOUNDARY_INDEX
,
36
SOP_LAYOUT_CORRECT_AREAS
,
37
SOP_LAYOUT_AXISALIGNISLANDS_INDEX
,
38
SOP_LAYOUT_OPTIMIZE_WASTED_SPACE
39
};
40
}
41
42
using namespace
sop_uvlayout_private;
43
44
class
SOP_API
SOP_UVLayout
:
public
SOP_Node
45
{
46
public
:
47
SOP_UVLayout
(
OP_Network
*net,
const
char
*
name
,
48
OP_Operator
*op);
49
50
int
isRefInput(
unsigned
int
i)
const override
;
51
52
OP_ERROR
cookInputGroups(
OP_Context
&context,
53
int
alone = 0)
override
;
54
55
bool
updateParmsFlags()
override
;
56
57
void
syncNodeVersion(
58
const
char
*old_version,
59
const
char
*cur_version,
60
bool
*node_deleted)
override
;
61
62
static
OP_Node
*myConstructor(
OP_Network
*,
const
char
*,
63
OP_Operator
*);
64
65
static
PRM_Template
myTemplateList[];
66
67
protected
:
68
const
char
*inputLabel(
unsigned
idx)
const override
;
69
70
OP_ERROR
cookMySop(
OP_Context
&context)
override
;
71
72
private
:
73
const
74
GA_PrimitiveGroup
*myGroup;
75
int
PACKMETHOD();
76
float
SCALE();
77
int
PADDING();
78
bool
PADDINGBOUNDARY();
79
bool
CORRECTAREAS();
80
bool
AXISALIGNISLANDS();
81
bool
OPTIMIZEWASTEDSPACE();
82
};
83
84
#endif
sop_uvlayout_private::SOP_LAYOUT_OPTIMIZE_WASTED_SPACE
Definition:
SOP_UVLayout.h:38
GA_PrimitiveGroup
Definition:
GA_ElementGroup.h:74
SOP_UVLayout
Definition:
SOP_UVLayout.h:44
UT_ErrorSeverity
UT_ErrorSeverity
Definition:
UT_Error.h:25
sop_uvlayout_private::SOP_LAYOUT_PACKING_INDEX
Definition:
SOP_UVLayout.h:32
PRM_Template
Definition:
PRM_Template.h:49
SOP_API.h
OP_Context
Definition:
OP_Context.h:44
GU_UVPack.h
OP_Operator
Definition:
OP_Operator.h:142
sop_uvlayout_private::SOP_FROM_ATTRIBUTE
Definition:
SOP_UVLayout.h:25
sop_uvlayout_private::SOP_CURRENT_FRAME
Definition:
SOP_UVLayout.h:26
sop_uvlayout_private::SOP_LAYOUT_CORRECT_AREAS
Definition:
SOP_UVLayout.h:36
OP_Node
Definition:
OP_Node.h:503
sop_uvlayout_private::SOP_LAYOUT_PADDING_INDEX
Definition:
SOP_UVLayout.h:34
sop_uvlayout_private::SOP_LAYOUT_AXISALIGNISLANDS_INDEX
Definition:
SOP_UVLayout.h:37
sop_uvlayout_private::SOP_LAYOUT_SCALE_INDEX
Definition:
SOP_UVLayout.h:33
name
GLuint const GLchar * name
Definition:
glcorearb.h:786
sop_uvlayout_private::SOP_LAYOUT_GROUP_INDEX
Definition:
SOP_UVLayout.h:31
sop_uvlayout_private::SOP_LAYOUT_PADDINGBOUNDARY_INDEX
Definition:
SOP_UVLayout.h:35
SOP_Node.h
SOP_API
#define SOP_API
Definition:
SOP_API.h:10
sop_uvlayout_private::SOP_SINGLE_FRAME
Definition:
SOP_UVLayout.h:23
sop_uvlayout_private::SOP_MULTI_FRAMES
Definition:
SOP_UVLayout.h:24
OP_Network
Definition:
OP_Network.h:152
SOP_Node
Definition:
SOP_Node.h:108
sop_uvlayout_private::SOP_PackingMethod
SOP_PackingMethod
Definition:
SOP_UVLayout.h:21
SOP
SOP_UVLayout.h
Generated on Sun Nov 17 2024 03:03:30 for HDK by
1.8.6