OP/OP_Utils.h File Reference

#include "OP_API.h"
#include "OP_Node.h"

Go to the source code of this file.

Functions

OP_API void OPwarnBadRefs (UT_WorkBuffer &msg, const UT_StringArray &badrefs)
OP_API bool OPconvertOrWarnExternalReferences (OP_Node *node, bool checktoplevelnode, UT_WorkBuffer &err)
OP_API bool OPconvertOrWarnExternalOverrides (OP_Node *node, bool checktoplevelnode, UT_WorkBuffer &err)
OP_API bool OPcheckForVopnetDefinedNodes (OP_Node *node, UT_WorkBuffer &err)
OP_API void OPgetVopSubnetMask (OP_Node *node, UT_String &vopnetmask)
OP_API OP_NodeOPfindOpInput (OP_Node *op, const char *find_op_type, bool include_me=true)
OP_API OP_NodeOPfindOpInput (OP_Node *op, const char **find_op_types, bool include_me=true)
OP_API void OPgetItemBounds (fpreal &x1, fpreal &y1, fpreal &x2, fpreal &y2, const UT_PtrArray< OP_NetworkBoxItem * > &items)
OP_API bool OPcheckForVopnetsUsedOutside (OP_Node *node, OP_NodeList *badvopnets)


Function Documentation

OP_API bool OPcheckForVopnetDefinedNodes ( OP_Node node,
UT_WorkBuffer err 
)

Looks for any nodes inside the specified operator that are defined by VOP Networks outside the provided node. REtrns true if no such nodes are found. Otherwise it puts an error message in the err buffer and returns false.

OP_API bool OPcheckForVopnetsUsedOutside ( OP_Node node,
OP_NodeList badvopnets 
)

Looks for any VOP Networks inside the specified node which define operator types that are instantiated outside the node. If it returns false, the badvopnets array will be filled with the VOP Networks that are used outside the root node.

OP_API bool OPconvertOrWarnExternalOverrides ( OP_Node node,
bool  checktoplevelnode,
UT_WorkBuffer err 
)

OP_API bool OPconvertOrWarnExternalReferences ( OP_Node node,
bool  checktoplevelnode,
UT_WorkBuffer err 
)

OP_API OP_Node* OPfindOpInput ( OP_Node op,
const char **  find_op_types,
bool  include_me = true 
)

OP_API OP_Node* OPfindOpInput ( OP_Node op,
const char *  find_op_type,
bool  include_me = true 
)

OP_API void OPgetItemBounds ( fpreal x1,
fpreal y1,
fpreal x2,
fpreal y2,
const UT_PtrArray< OP_NetworkBoxItem * > &  items 
)

Returns coordinates specifying the smallest possible bounding box around the items in 'items'. Takes each item's height and width into consideration.

OP_API void OPgetVopSubnetMask ( OP_Node node,
UT_String vopnetmask 
)

OP_API void OPwarnBadRefs ( UT_WorkBuffer msg,
const UT_StringArray badrefs 
)


Generated on Wed May 23 00:10:20 2012 for HDK by  doxygen 1.5.9