102 int inputs,
int outputs);
128 bool abort_on_impossible =
false)
const;
132 void setNumberOfInputs(
int inputs);
135 void setNumberOfOutputs(
int outputs);
145 void setInputIsNull(
OP_InputIdx input,
bool is_null);
147 void setOutputIsNull(
OP_OutputIdx output,
bool is_null);
150 int getNumberOfInputs()
const;
152 int getNumberOfOutputs()
const;
175 bool hasCableInput()
const;
211 return myInputIsNull;
216 return myOutputIsNull;
226 return myOutputTypes;
243 friend class COP_OperatorInfo;
void setLabel(const UT_StringHolder &label)
Changes label for this signature.
const UT_Array< bool > & getInputNullStates() const
Returns the array of input null states.
void setName(const UT_StringHolder &name)
Changes name of this signature.
GLuint GLsizei const GLchar * label
const UT_StringHolder & getName() const
Returns the internal name of this signature.
UT_StringHolder myName
The signature's internal name.
COP_API COP_Type COPtype(const COP_PortData &, int index=0)
Type of data that was output by a COP_Verb.
COP_API bool COPtypeIsLayerOrUndef(COP_Type t)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
COP_API bool COPtypeIsConvertible(COP_Type src, COP_Type dst)
Returns true if src is implicitly convertible to dst.
GLint GLint GLsizei GLint GLenum GLenum type
COP_Signature()
same as COP_Signature("default", "Default")
COP_API bool COPtypeIsGeo(COP_Type t)
UT_Array< COP_Type > myOutputTypes
List of output types for this signature.
COP_API bool COPtypeIsApexConvertible(COP_Type src, COP_Type dst)
COP_API bool COPtypeIsLayer(COP_Type t)
Returns true if this is a layer type.
GLuint const GLchar * name
const UT_Array< COP_Type > & getOutputTypes() const
Returns the array of this signature's output types.
UT_StringHolder myLabel
The signature's label.
COP_API COP_Type COPtypeFromLabel(const char *label)
Returns a type corresponding to the given English label.
const UT_Array< COP_Type > & getInputTypes() const
Returns the array of this signature's input types.
COP_API size_t format(char *buffer, size_t buffer_size, const UT_Array< COP_Signature > &v)
COP_Type
Types of basic data that are passed around a COP network.
const UT_StringHolder & getLabel() const
Returns the English label for this signature.
UT_Array< bool > myInputIsNull
Flag for each input indicating whether it's null (unconnected).
UT_Array< COP_Type > myInputTypes
List of input types for this signature.
COP_API int COPtypeChannels(const COP_Type t)
Returns the number of channels for a type.
COP_API const char * COPtypeLabel(COP_Type t)
Returns the English label for a type.
const UT_Array< bool > & getOutputNullStates() const
Returns the array of output null states.
COP_API bool COPtypeIsVDB(COP_Type t)
UT_Array< bool > myOutputIsNull
Flag for each output indicating whether it's null (unconnected).