HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_Each.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_Each.h ( SOP Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __SOP_Each__
12 #define __SOP_Each__
13 
14 #include "SOP_API.h"
15 #include "SOP_Node.h"
16 
17 class SOP_API SOP_Each : public SOP_Node
18 {
19 public:
20  SOP_Each(OP_Network *net, const char *name, OP_Operator *entry);
21  virtual ~SOP_Each();
22 
23  virtual bool updateParmsFlags();
24 
25  static OP_Node *myConstructor(OP_Network *net,
26  const char *name,
27  OP_Operator *entry);
28  static PRM_Template myTemplateList[];
29 
30 protected:
31  virtual OP_ERROR cookMySop(OP_Context &context);
32 
33  virtual const char *inputLabel(unsigned idx) const;
34 
35  bool FEEDBACK()
36  { return evalInt("feedback", 0, 0); }
37  void FORPATH(UT_String &str, fpreal t)
38  { evalString(str, "forpath", 0, t); }
39  void GROUP(UT_String &str, fpreal t)
40  { evalString(str, "group", 0, t); }
41  void ATTRIB(UT_String &str, fpreal t)
42  { evalString(str, "attrib", 0, t); }
44  {
45  v.x() = evalFloat("attribval", 0, t);
46  v.y() = evalFloat("attribval", 1, t);
47  v.z() = evalFloat("attribval", 2, t);
48  }
50  { return evalFloat("attribtol", 0, t); }
51  bool EACHPOINT(fpreal t)
52  { return evalInt("eachpoint", 0, t); }
53 
54  // Id of the forsop we were last registered to so we can
55  // unregister.
57 
58 private:
59 };
60 
61 
62 #endif
virtual bool updateParmsFlags()
void FORPATH(UT_String &str, fpreal t)
Definition: SOP_Each.h:37
int myLastForSOP
Definition: SOP_Each.h:56
const GLdouble * v
Definition: glcorearb.h:836
virtual const char * inputLabel(unsigned idx) const
fpreal evalFloat(int pi, int vi, fpreal t) const
UT_ErrorSeverity
Definition: UT_Error.h:25
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:581
bool EACHPOINT(fpreal t)
Definition: SOP_Each.h:51
void GROUP(UT_String &str, fpreal t)
Definition: SOP_Each.h:39
bool FEEDBACK()
Definition: SOP_Each.h:35
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
void evalString(UT_String &val, int pi, int vi, fpreal t) const
GLuint const GLchar * name
Definition: glcorearb.h:785
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:583
double fpreal
Definition: SYS_Types.h:263
fpreal ATTRIBTOL(fpreal t)
Definition: SOP_Each.h:49
void ATTRIBVAL(UT_Vector3D &v, fpreal t)
Definition: SOP_Each.h:43
#define SOP_API
Definition: SOP_API.h:10
void ATTRIB(UT_String &str, fpreal t)
Definition: SOP_Each.h:41
exint evalInt(int pi, int vi, fpreal t) const
virtual OP_ERROR cookMySop(OP_Context &context)=0