HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_BlendShapes-2.0.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_BlendShapes-2.0.h (C++)
7  *
8  * COMMENTS: dynamic blend SOP version 2
9  *
10  */
11 
12 
13 #ifndef __SOP_BlendShapes2_h__
14 #define __SOP_BlendShapes2_h__
15 
16 #include "SOP_API.h"
17 #include "SOP_Node.h"
18 
20 {
21 public:
22  SOP_BlendShapes2(OP_Network *net, const char *name, OP_Operator *entry);
23  ~SOP_BlendShapes2() override;
24 
26  int alone = 0) override;
27 
28  static OP_Node *myConstructor(OP_Network *net,
29  const char *name, OP_Operator *entry);
30  static PRM_Template *buildTemplates();
31  void syncNodeVersion(
32  const char *old_version,
33  const char *cur_version,
34  bool *node_deleted) override;
35  bool updateParmsFlags() override;
36 
37  const SOP_NodeVerb* cookVerb() const override;
38 
39  void setSelectionOverride(bool selection_override);
40  void setBlendValue(int i, float value, fpreal t);
41  void setBlendAlias(int i, const char *alias);
42  void removeBlend(int i);
43 
44 protected:
45  bool load(UT_IStream &is, const char *extension,
46  const char *path=0) override;
47  OP_ERROR cookMySop(OP_Context &context) override;
48  const char *inputLabel(unsigned) const override;
49 
50  OP_ERROR lockMyInputs(OP_Context &context);
51  void unlockMyInputs();
52 
53 private:
54 
55  static int updateChannelNames(void *data, int index, fpreal t,
56  const PRM_Template * );
57 };
58 
59 #endif
virtual bool updateParmsFlags()
virtual const SOP_NodeVerb * cookVerb() const
Definition: SOP_Node.h:909
void syncNodeVersion(const char *old_version, const char *current_version, bool *node_deleted) override
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
virtual const char * inputLabel(unsigned idx) const
UT_ErrorSeverity
Definition: UT_Error.h:25
bool load(UT_IStream &is, const char *extension, const char *path=0) override
GLuint const GLchar * name
Definition: glcorearb.h:786
virtual OP_ERROR cookInputGroups(OP_Context &context, int alone=0)
GLdouble t
Definition: glad.h:2397
fpreal64 fpreal
Definition: SYS_Types.h:277
GLuint index
Definition: glcorearb.h:786
#define SOP_API
Definition: SOP_API.h:10
Definition: core.h:1131
virtual OP_ERROR cookMySop(OP_Context &context)=0
OIIO_UTIL_API std::string extension(string_view filepath, bool include_dot=true) noexcept
Definition: format.h:895