HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DOP_Operator.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: DOP_Operator.h ( DOP Library, C++)
7  *
8  * COMMENTS: Special class which has additional knowledge about the operator
9  * being described.
10  */
11 
12 #ifndef __DOP_Operator__
13 #define __DOP_Operator__
14 
15 #include "DOP_API.h"
16 #include "DOP_OperatorInfo.h"
17 #include <OP/OP_Operator.h>
18 
19 
20 #define DOP_MAX_NUMINPUTS 10
21 #define DOP_MAX_NUMOUTPUTS 4
22 
23 
24 
26 public:
27  DOP_Operator(const char *name,
28  const char *english,
29  OP_Constructor construct,
30  PRM_Template *templates,
31  unsigned min_sources,
32  unsigned max_sources,
33  CH_LocalVariable *variables,
34  unsigned flags,
35  unsigned num_outputs);
36 
37  DOP_Operator(const char *name,
38  const char *english,
39  OP_Constructor construct,
40  PRM_Template *templates,
41  const char *child_table_name,
42  unsigned min_sources,
43  unsigned max_sources,
44  CH_LocalVariable *variables,
45  unsigned flags,
46  unsigned num_outputs);
47 
48  virtual ~DOP_Operator();
49 
51  { return &myOperatorInfo; }
52  virtual const OP_SpecificData *getOpSpecificData() const
53  { return &myOperatorInfo; }
54 
55  virtual void getOperatorSpecificInfoText(
56  int verbose,
57  UT_WorkBuffer &text);
58 
59  virtual bool wantsInputEditor() const;
60 
61  virtual unsigned maxOutputs();
62 
63 private:
64  DOP_OperatorInfo myOperatorInfo;
65 };
66 
67 #endif
GLbitfield flags
Definition: glcorearb.h:1595
#define DOP_API
Definition: DOP_API.h:10
GLuint const GLchar * name
Definition: glcorearb.h:785
OP_Node *(* OP_Constructor)(OP_Network *, const char *, OP_Operator *)
Definition: OP_Operator.h:90
virtual const OP_SpecificData * getOpSpecificData() const
Definition: DOP_Operator.h:52
virtual OP_SpecificData * getOpSpecificData()
Definition: DOP_Operator.h:50
virtual unsigned maxOutputs()
Definition: OP_Operator.h:386
virtual bool wantsInputEditor() const
virtual void getOperatorSpecificInfoText(int verbose, UT_WorkBuffer &text)