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  ~DOP_Operator() override;
49 
51  { return &myOperatorInfo; }
52  const OP_SpecificData *getOpSpecificData() const override
53  { return &myOperatorInfo; }
54 
56  int verbose,
57  UT_WorkBuffer &text) override;
58 
59  bool wantsInputEditor() const override;
60 
61  unsigned maxOutputs() override;
62 
63 private:
64  DOP_OperatorInfo myOperatorInfo;
65 };
66 
67 #endif
GLbitfield flags
Definition: glcorearb.h:1596
std::function< OP_Ptr(OP_Network *, const char *, OP_Operator *)> OP_Constructor
Definition: OP_Operator.h:107
const OP_SpecificData * getOpSpecificData() const override
Definition: DOP_Operator.h:52
OP_SpecificData * getOpSpecificData() override
Definition: DOP_Operator.h:50
#define DOP_API
Definition: DOP_API.h:10
GLuint const GLchar * name
Definition: glcorearb.h:786
virtual unsigned maxOutputs()
Definition: OP_Operator.h:417
virtual bool wantsInputEditor() const
virtual void getOperatorSpecificInfoText(int verbose, UT_WorkBuffer &text)