#include <stdint.h>
#include <stdlib.h>
#include <string.h>
using namespace HDK_Sample;
void
{
"hdk_customvop",
"Custom VOP",
0,
0
);
}
{
}
{
};
{
createAndGetOperatorTable();
}
SOP_CustomVop::~SOP_CustomVop()
{
}
const char *
{
}
{
}
{
public:
name,
label,
0,
"invalid",
NULL,
{
}
};
SOP_CustomVop::createAndGetOperatorTable()
{
}
{
}
{
}
static PRM_Name vopPlugInputs(
"inputs",
"Inputs");
static PRM_Name vopPlugInpName(
"inpplug#",
"Input Name #");
static PRM_Name vopPlugOutputs(
"outputs",
"Outputs");
static PRM_Name vopPlugOutName(
"outplug#",
"Output Name #");
vopPlugInpTemplate[] =
{
};
vopPlugOutTemplate[] =
{
};
{
};
{
addOpInterest(this, &VOP_CustomVop::nodeEventHandler);
}
VOP_CustomVop::~VOP_CustomVop()
{
}
bool
{
return false;
setInt(vopPlugInputs.getToken(), 0,
t,
n);
for (
int i = 0; i <
n; i++)
{
plugname.
sprintf(
"input%d", i + 1);
vopPlugInpName.getToken(), &i, 0,
t);
}
setInt(vopPlugOutputs.getToken(), 0,
t,
n);
for (
int i = 0; i <
n; i++)
{
plugname.
sprintf(
"output%d", i + 1);
vopPlugOutName.getToken(), &i, 0,
t);
}
return true;
}
const char *
{
int i = idx;
else
}
const char *
{
int i = idx;
else
}
unsigned
{
}
unsigned
{
}
void
{
}
int
{
{
return i;
}
return -1;
}
void
{
}
void
{
}
void
{
}
void
{
}
void
VOP_CustomVop::nodeEventHandler(
{
switch (type)
{
static_cast<VOP_CustomVop*
>(callee)->handleParmChanged((
int)(intptr_t)data);
break;
default:
break;
}
}
void
VOP_CustomVop::handleParmChanged(int parm_index)
{
}
bool
{
return (dynamic_cast<sop_CustomVopOperator *>(op) != NULL);
}