HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_BlendShapes.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.h (C++)
7  *
8  * COMMENTS: dynamic blend SOP
9  *
10  */
11 
12 
13 #ifndef __SOP_BlendShapes_h__
14 #define __SOP_BlendShapes_h__
15 
16 #include "SOP_API.h"
17 #include "SOP_Node.h"
18 
20 {
21 public:
22  SOP_BlendShapes(OP_Network *net, const char *name, OP_Operator *entry);
23  virtual ~SOP_BlendShapes();
24 
25  virtual OP_ERROR cookInputGroups(OP_Context &context,
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  virtual bool updateParmsFlags() override;
32 
33  virtual const SOP_NodeVerb* cookVerb() const override;
34 
35  void setSelectionOverride(bool selection_override);
36  void setBlendValue(int i, float value, fpreal t);
37  void setBlendAlias(int i, const char *alias);
38  void removeBlend(int i);
39 
40 protected:
41  virtual bool load(UT_IStream &is, const char *extension,
42  const char *path=0) override;
43  virtual OP_ERROR cookMySop(OP_Context &context) override;
44  virtual const char *inputLabel(unsigned) const override;
45 
46  OP_ERROR lockMyInputs(OP_Context &context);
47  void unlockMyInputs();
48 
49 private:
50 
51  static int updateChannelNames(void *data, int index, fpreal t,
52  const PRM_Template * );
53 };
54 
55 #endif
56 
virtual bool updateParmsFlags()
virtual const SOP_NodeVerb * cookVerb() const
Definition: SOP_Node.h:889
GLsizei const GLchar *const * path
Definition: glcorearb.h:3340
virtual const char * inputLabel(unsigned idx) const
UT_ErrorSeverity
Definition: UT_Error.h:25
png_uint_32 i
Definition: png.h:2877
virtual bool load(UT_IStream &is, const char *extension, const char *path=0) override
GLboolean * data
Definition: glcorearb.h:130
GLuint const GLchar * name
Definition: glcorearb.h:785
virtual OP_ERROR cookInputGroups(OP_Context &context, int alone=0)
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:269
GLuint index
Definition: glcorearb.h:785
#define SOP_API
Definition: SOP_API.h:10
virtual OP_ERROR cookMySop(OP_Context &context)=0