HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  ~SOP_Each() override;
22 
23  bool updateParmsFlags() override;
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  OP_ERROR cookMySop(OP_Context &context) override;
32 
33  const char *inputLabel(unsigned idx) const override;
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); }
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:837
virtual const char * inputLabel(unsigned idx) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
fpreal evalFloat(int pi, int vi, fpreal t) const
UT_ErrorSeverity
Definition: UT_Error.h:25
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
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
fpreal ATTRIBTOL(fpreal t)
Definition: SOP_Each.h:49
void ATTRIBVAL(UT_Vector3D &v, fpreal t)
Definition: SOP_Each.h:43
fpreal64 fpreal
Definition: SYS_Types.h:277
#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
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663