120 int inputs,
int outputs);
158 bool abort_on_impossible =
false)
const;
162 void setNumberOfInputs(
int inputs);
165 void setNumberOfOutputs(
int outputs);
175 void setInputIsNull(
OP_InputIdx input,
bool is_null);
177 void setOutputIsNull(
OP_OutputIdx output,
bool is_null);
180 int getNumberOfInputs()
const;
182 int getNumberOfOutputs()
const;
205 bool hasCableInput()
const;
207 bool hasCableOutput()
const;
243 return myInputIsNull;
248 return myOutputIsNull;
258 return myOutputTypes;
275 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.
GLint GLint GLsizei GLint GLenum format
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.
COP_API bool COPtypeIsAttribute(COP_Type t)
COP_API size_t UTformatBuffer(char *buffer, size_t buffer_size, const UT_Array< COP_Signature > &v)
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_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).