#include <VOP_AutoConvert.h>

Public Member Functions | |
| VOP_AutoConvert (OP_Network *net) | |
| virtual | ~VOP_AutoConvert () |
| virtual void | getPathWithSubnet (UT_String &str) const |
| Returns the path of this node relative to its getCreator(). | |
| virtual void | getOuterCode (UT_String &codestr) |
| virtual void | getCode (UT_String &codestr, VOP_CodeVarMapperContext *context=NULL) |
| virtual OP_Network * | getParentNetwork () const |
| Returns the network that is our parent. | |
| virtual OP_Input * | getInputReference (unsigned idx, int grow=1) |
| virtual OP_Input * | getInputReferenceConst (unsigned idx) const |
| void | hookupBetween (VOP_Node *input_node, VOP_Node *output_node, int input_idx, bool tell_nodes) |
| virtual bool | isConnected (int inputidx, bool recursive) |
| virtual unsigned | getNumVisibleInputs () const |
| virtual unsigned | getNumVisibleOutputs () const |
| virtual const char * | inputLabel (unsigned idx) const |
| virtual const char * | outputLabel (unsigned idx) const |
Static Public Member Functions | |
| static bool | canAutoconvert (VOP_Type intype, VOP_Type outtype) |
| static void | initConversions (void) |
| static const char * | getAutoConvertOpName (VOP_Type from_type, VOP_Type to_type) |
Protected Member Functions | |
| virtual void | getInputNameSubclass (UT_String &in, int idx) const |
| virtual int | getInputFromNameSubclass (const UT_String &in) const |
| virtual VOP_Type | getInputTypeSubclass (int idx) |
| virtual void | getOutputNameSubclass (UT_String &out, int idx) const |
| virtual VOP_Type | getOutputTypeSubclass (int idx) |
Static Protected Member Functions | |
| static void | getConversionBetween (VOP_Type intype, VOP_Type outtype, string &out) |
Definition at line 36 of file VOP_AutoConvert.h.
| VOP_AutoConvert::VOP_AutoConvert | ( | OP_Network * | net | ) |
| virtual VOP_AutoConvert::~VOP_AutoConvert | ( | ) | [virtual] |
| static const char* VOP_AutoConvert::getAutoConvertOpName | ( | VOP_Type | from_type, | |
| VOP_Type | to_type | |||
| ) | [static] |
| virtual void VOP_AutoConvert::getCode | ( | UT_String & | codestr, | |
| VOP_CodeVarMapperContext * | context = NULL | |||
| ) | [virtual] |
Reimplemented from VOP_Node.
| static void VOP_AutoConvert::getConversionBetween | ( | VOP_Type | intype, | |
| VOP_Type | outtype, | |||
| string & | out | |||
| ) | [static, protected] |
| virtual int VOP_AutoConvert::getInputFromNameSubclass | ( | const UT_String & | in | ) | const [protected, virtual] |
Reimplemented from VOP_Node.
| virtual void VOP_AutoConvert::getInputNameSubclass | ( | UT_String & | in, | |
| int | idx | |||
| ) | const [protected, virtual] |
Returns the variable name associated with a given input number. Implementers of this function should also implement the reverse function.
Reimplemented from VOP_Node.
| virtual OP_Input* VOP_AutoConvert::getInputReference | ( | unsigned | idx, | |
| int | grow = 1 | |||
| ) | [virtual] |
Reimplemented from OP_Node.
| virtual OP_Input* VOP_AutoConvert::getInputReferenceConst | ( | unsigned | idx | ) | const [virtual] |
Reimplemented from OP_Node.
| virtual VOP_Type VOP_AutoConvert::getInputTypeSubclass | ( | int | idx | ) | [protected, virtual] |
Reimplemented from VOP_Node.
| virtual unsigned VOP_AutoConvert::getNumVisibleInputs | ( | ) | const [virtual] |
Number of input connectors that should be visible on a node. This is only used by VOPs and DOPs. All other OPs return maxInputs() here.
Reimplemented from OP_Node.
| virtual unsigned VOP_AutoConvert::getNumVisibleOutputs | ( | ) | const [virtual] |
Number of output connections that should be visible on a node tile. Only used by VOPs and DOPs.
Reimplemented from OP_Node.
| virtual void VOP_AutoConvert::getOuterCode | ( | UT_String & | codestr | ) | [virtual] |
Reimplemented from VOP_Node.
| virtual void VOP_AutoConvert::getOutputNameSubclass | ( | UT_String & | out, | |
| int | idx | |||
| ) | const [protected, virtual] |
Functions to get information about our operator outputs. These functions are used for variable name replacement and for creating output labels on the op tiles.
Reimplemented from VOP_Node.
| virtual VOP_Type VOP_AutoConvert::getOutputTypeSubclass | ( | int | idx | ) | [protected, virtual] |
Reimplemented from VOP_Node.
| virtual OP_Network* VOP_AutoConvert::getParentNetwork | ( | ) | const [virtual] |
| virtual void VOP_AutoConvert::getPathWithSubnet | ( | UT_String & | str | ) | const [virtual] |
| void VOP_AutoConvert::hookupBetween | ( | VOP_Node * | input_node, | |
| VOP_Node * | output_node, | |||
| int | input_idx, | |||
| bool | tell_nodes | |||
| ) |
| static void VOP_AutoConvert::initConversions | ( | void | ) | [static] |
| virtual const char* VOP_AutoConvert::inputLabel | ( | unsigned | idx | ) | const [virtual] |
Reimplemented from OP_Node.
| virtual bool VOP_AutoConvert::isConnected | ( | int | inputidx, | |
| bool | recursive | |||
| ) | [virtual] |
Return our input node for the give index. If recursive is true and we are in a subnet and the direct input for inputidx is a subnet input node, travel up the parent chain until no longer in a subnet or the input node is not a subnet input node. Basically, we want to know if we are connected to anything meaningful.
Reimplemented from VOP_Node.
| virtual const char* VOP_AutoConvert::outputLabel | ( | unsigned | idx | ) | const [virtual] |
Reimplemented from OP_Node.
1.5.9