HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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  virtual ~SOP_PolyKnit();
26 
27 // virtual OP_ERROR cookInputGroups(OP_Context &context, int alone = 0);
28 
29  virtual bool updateParmsFlags();
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  virtual OP_ERROR cookMySop (OP_Context &context);
43  virtual const char *inputLabel(unsigned idx) const;
44 
45 private:
46  // getPointGroup is in public because state needs it
47  int COLLAPSEQUADS(void) { return evalInt(1, 0, 0); }
48  int REMOVEDEGENERATE(void) { return evalInt(2, 0, 0); }
49  int FLIP(void) { return evalInt(3, 0, 0); }
50  int UNIQUEPOINTS(void) { return evalInt(4, 0, 0); }
51  int UPDATENORMALS(void) { return evalInt(5, 0, 0); }
52  int KEEPORIGINAL(void) { 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 evalString(UT_String &val, int pi, int vi, fpreal t) const
GLuint const GLchar * name
Definition: glcorearb.h:785
double fpreal
Definition: SYS_Types.h:269
#define SOP_API
Definition: SOP_API.h:10
void setString(const UT_String &val, CH_StringMeaning meaning, int parmi, int vectori, fpreal t)
exint evalInt(int pi, int vi, fpreal t) const
virtual OP_ERROR cookMySop(OP_Context &context)=0