-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSOP_Neutron.h
61 lines (44 loc) · 1.36 KB
/
SOP_Neutron.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* Copyright (c) 2017
* Daniel Elliott All rights reserved.
*
*
*----------------------------------------------------------------------------
* Netron SOP
*/
#ifndef __SOP_Neutron_h__
#define __SOP_Neutron_h__
#include <SOP/SOP_Node.h>
#include <iostream>
namespace Neutron {
class SOP_Neutron : public SOP_Node
{
public:
SOP_Neutron(OP_Network *net, const char *name, OP_Operator *op);
virtual ~SOP_Neutron();
static CH_LocalVariable myVariables[];
static PRM_Template myTemplateList[];
static OP_Node *myConstructor(OP_Network*, const char *,
OP_Operator *);
protected:
/// Update disable and hidden states of parameters based on the value
/// of other parameters.
// virtual bool updateParmsFlags();
//virtual const char *inputLabel(unsigned idx) const;
/// Method to cook geometry for the SOP
virtual OP_ERROR cookMySop(OP_Context &context);
virtual OP_ERROR cookMyGuide1(OP_Context &context);
private:
//callback has to be static
static int recompileShader(void *data, int index,
float time, const PRM_Template *tplate );
UT_String aname = UT_String("__fluid__");
GA_RWHandleS attrib;
GA_RWHandleI uniqueIndex;
int handle = -1;
bool initialized = false;
fpreal last = 0.0f;
GU_Detail *cachedGDP;
};
} // End HDK_Sample namespace
#endif