HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SHOP_VariableInput.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: SHOP_VariableInput.h ( SHOP Library, C++)
7  *
8  * COMMENTS: A node which takes variable numbers of inputs
9  */
10 
11 #ifndef __SHOP_VariableInput__
12 #define __SHOP_VariableInput__
13 
14 #include "SHOP_API.h"
15 #include "SHOP_Node.h"
16 
18 public:
19  SHOP_VariableInput(OP_Network *dad, const char *name,
20  OP_Operator *entry, SHOP_TYPE shader_type=SHOP_SURFACE)
21  : SHOP_Node(dad, name, entry, shader_type)
22  {
23  }
24  ~SHOP_VariableInput() override;
25 
26  unsigned getNumVisibleInputs() const override;
27  void opChanged(OP_EventType reason, void *data=0) override;
28  virtual void ensureParametersAreValid();
29 
30 protected:
31  virtual void preOpChanged(OP_EventType, void *)
32  { }
33 
37 };
38 
39 #endif
40 
static int theLatestOpChangedId
virtual unsigned getNumVisibleInputs() const
virtual void preOpChanged(OP_EventType, void *)
#define SHOP_API
Definition: SHOP_API.h:10
SHOP_TYPE
void opChanged(OP_EventType reason, void *data=0) override
SHOP_VariableInput(OP_Network *dad, const char *name, OP_Operator *entry, SHOP_TYPE shader_type=SHOP_SURFACE)
GLuint const GLchar * name
Definition: glcorearb.h:786
static SHOP_Node * theOriginalOpChanged
OP_EventType
Definition: OP_Value.h:22
Definition: format.h:895