41 using namespace HDK_Sample;
43 int *ROP_Dumper::ifdIndirect = 0;
45 static PRM_Name theFileName(
"file",
"Save to file");
132 printNode(std::ostream &os,
OP_Node *node,
int indent)
135 wbuf.
sprintf(
"%*s", indent,
"");
139 printNode(os, node->
getChild(i), indent+2);
static OP_TemplatePair * getTemplatePair()
Provides access to our parm templates.
GT_API const UT_StringHolder time
static PRM_Template * getROPbaseTemplate()
ROP_Dumper(OP_Network *net, const char *name, OP_Operator *entry)
SYS_FORCE_INLINE const char * buffer() const
#define OP_FLAG_GENERATOR
ROP_RENDER_CODE endRender() override
void close()
Close the stream.
bool addOperator(OP_Operator *op, std::ostream *err=nullptr)
virtual OP_Node * getChild(const char *name, int *hint=0) const
virtual int getNchildren() const
ROP_API PRM_Template theRopTemplates[]
static CH_LocalVariable myVariableList[]
PRM_API const PRM_Type PRM_FILE
bool executePostRenderScript(fpreal ttime)
GLuint const GLchar * name
Portable replacement for std::ofstream.
GLenum GLenum GLsizei void * table
void OUTPUT(UT_String &str, fpreal t)
A convenience method to evaluate our custom file parameter.
static OP_VariablePair * getVariablePair()
Provides access to our variables.
int sprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
static OP_Node * myConstructor(OP_Network *net, const char *name, OP_Operator *op)
Creates an instance of this node.
int startRender(int nframes, fpreal s, fpreal e) override
ROP_RENDER_CODE renderFrame(fpreal time, UT_Interrupt *boss) override
int * allocIndirect(int size=64)
OP_API OP_Director * OPgetDirector()
SYS_FORCE_INLINE const UT_String & getName() const
bool executePreRenderScript(fpreal ttime)
void newDriverOperator(OP_OperatorTable *table)
bool executePreFrameScript(fpreal ttime)
bool executePostFrameScript(fpreal ttime)