50 #ifndef VSI_ELEMENT_HH_
51 #define VSI_ELEMENT_HH_
67 #define ELEMENT_FLAG_NO_DELETE 0x1
68 #define ELEMENT_FLAG_SKIP_TOOLBOX 0x2
88 QString
name ()
const {
return name_; };
91 const QString &
category ()
const {
return category_; };
100 const QVector<Input *> &
inputs ()
const {
return inputs_; };
103 const QVector<Output *> &
outputs ()
const {
return outputs_; };
106 const QVector <Function*> &
functions ()
const {
return functions_; };
115 unsigned int flags ()
const {
return flags_; };
118 QString
precode ()
const {
return precode_; };
121 QString
code ()
const {
return code_; };
142 QVector <Input*> inputs_;
143 QVector <Output*> outputs_;
144 QVector <Function*> functions_;
unsigned int getNewId()
Returns an unused id number.
const QString & shortDescription() const
Short description.
const QVector< Input * > & inputs() const
Inputs.
const QString & longDescription() const
Long description.
Element(Context *_context, QString _name)
Constructor.
const QString & category() const
Element category.
const QVector< Output * > & outputs() const
Outputs.
Context * context() const
Context of element.
QString name() const
Element name.
void setMinId(unsigned int _id)
sets the minimum for an unused id
Output * dataOut()
Scenegraph output.
QString precode() const
Precode segment.
unsigned int flags() const
Flags.
QString code() const
Code segment.
Input * dataIn()
Scenegraph input.
const QVector< Function * > & functions() const
Functions.