HDK
 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 {
22 {
27 };
28 
29 enum
30 {
39 };
40 }
41 
42 using namespace sop_uvlayout_private;
43 
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
UT_ErrorSeverity
Definition: UT_Error.h:25
GLuint const GLchar * name
Definition: glcorearb.h:786
#define SOP_API
Definition: SOP_API.h:10