HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Reverse.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: The Primitive SOP
9  *
10  */
11 
12 #ifndef __SOP_Reverse_h__
13 #define __SOP_Reverse_h__
14 
15 #include "SOP_API.h"
16 #include "SOP_Reverse.proto.h"
17 #include <GEO/GEO_PrimTypeCompat.h>
18 class GA_Primitive;
19 class GD_Primitive;
20 
21 #include "SOP_Node.h"
22 
24 {
25 public:
26  virtual OP_ERROR cookInputGroups(OP_Context &context,
27  int alone = 0) override;
28 
29  static PRM_Template *buildTemplates();
30  const SOP_NodeVerb *cookVerb() const override;
31  static OP_Node *myConstructor(OP_Network *, const char *,
32  OP_Operator *);
33 
34  void SET_VERTEX(int i) { setInt("vtxsort", 0, 0, i); }
35 
36 protected:
37  SOP_Reverse(OP_Network *, const char *, OP_Operator *);
38  virtual ~SOP_Reverse();
39 
40  virtual OP_ERROR cookMySop(OP_Context &context) override;
41  virtual const char *inputLabel(unsigned idx) const override;
42 };
43 
44 #endif
virtual const SOP_NodeVerb * cookVerb() const
Definition: SOP_Node.h:886
virtual const char * inputLabel(unsigned idx) const
UT_ErrorSeverity
Definition: UT_Error.h:25
void SET_VERTEX(int i)
Definition: SOP_Reverse.h:34
png_uint_32 i
Definition: png.h:2877
virtual OP_ERROR cookInputGroups(OP_Context &context, int alone=0)
Contains transitional objects to provide some backward compatibility for code that references old GEO...
void setInt(int parmi, int vectori, fpreal t, exint value)
#define SOP_API
Definition: SOP_API.h:10
virtual OP_ERROR cookMySop(OP_Context &context)=0