HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PolyKnit.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: Polygonal knitting filter. (C++)
7  *
8  * COMMENTS:
9  */
10 
11 
12 #ifndef __SOP_PolyKnit_h__
13 #define __SOP_PolyKnit_h__
14 
15 #include "SOP_API.h"
16 
17 #include <UT/UT_IntArray.h>
18 
19 #include "SOP_Node.h"
20 
22 {
23 public:
24  SOP_PolyKnit(OP_Network *net, const char *, OP_Operator *entry);
25  ~SOP_PolyKnit() override;
26 
27 // virtual OP_ERROR cookInputGroups(OP_Context &context, int alone = 0);
28 
29  bool updateParmsFlags() override;
30 
31  static OP_Node *myConstructor(OP_Network *net, const char *name,
32  OP_Operator *entry);
33  static PRM_Template myTemplateList[];
34 
36  fpreal t)
37  { setString(str, meaning, 0, 0, t); }
39  { evalString(str, 0, 0, t); }
40 
41 protected:
42  OP_ERROR cookMySop(OP_Context &context) override;
43  const char *inputLabel(unsigned idx) const override;
44 
45 private:
46  // getPointGroup is in public because state needs it
47  int COLLAPSEQUADS() { return evalInt(1, 0, 0); }
48  int REMOVEDEGENERATE() { return evalInt(2, 0, 0); }
49  int FLIP() { return evalInt(3, 0, 0); }
50  int UNIQUEPOINTS() { return evalInt(4, 0, 0); }
51  int UPDATENORMALS() { return evalInt(5, 0, 0); }
52  int KEEPORIGINAL() { return evalInt(6, 0, 0); }
53 
54  GU_Detail *mySource;
55 };
56 
57 #endif
virtual bool updateParmsFlags()
void getPointGroup(UT_String &str, fpreal t)
Definition: SOP_PolyKnit.h:38
CH_StringMeaning
void setPointGroup(UT_String &str, CH_StringMeaning meaning, fpreal t)
Definition: SOP_PolyKnit.h:35
virtual const char * inputLabel(unsigned idx) const
UT_ErrorSeverity
Definition: UT_Error.h:25
void setString(const UT_StringRef &val, CH_StringMeaning meaning, int parmi, int vectori, fpreal t)
void evalString(UT_String &val, int pi, int vi, fpreal t) const
GLuint const GLchar * name
Definition: glcorearb.h:786
GLdouble t
Definition: glad.h:2397
fpreal64 fpreal
Definition: SYS_Types.h:277
#define SOP_API
Definition: SOP_API.h:10
exint evalInt(int pi, int vi, fpreal t) const
virtual OP_ERROR cookMySop(OP_Context &context)=0