Interface
OmniTool
Description
interface Omni.Tool : GObject.Object
An analysis tool instance.
Classes implementing this interface may expose properties to enable customization of tool parameters. The following property type is handled specially:
- A property of type
Omni.LinkArrayis presented to the user as a field to specify filtering criteria of input ports, which is then resolved to specific input ports when instantiating the tool instance.
A session configuration stores the filtering criteria instead of the resolved Omni.LinkArray. As such, this type of property is not
required to be variant-compatible.
A property of this type must have an Omni.LinkPolicy assigned to it.
The remaining property types must be GLib.Variant or other
variant-compatible fundamental types.
The properites of type GVariant are assumed non-nullable. They
must have non-null default values. Wrap them with a maybe type (m*) to
make them optional.
Variant-compatible Types
The following value types are considered variant-compatible:
G_TYPE_* |
C | Variant Type |
|---|---|---|
BOOLEAN |
gboolean |
b |
BYTES |
GBytes * |
may |
DOUBLE |
gdouble |
d |
INT |
gint |
i |
INT64 |
gint64 |
x |
STRING |
char * |
ms |
STRV |
char ** |
as |
UCHAR |
guchar/guint8 |
y |
UINT |
guint |
u |
UINT64 |
guint64 |
t |
VARIANT |
GVariant * |
* |
Prerequisite
In order to implement Tool, your type must inherit fromGObject.
Instance methods
omni_tool_add_to_pipeline
Add components to a pipeline, using information from the object’s
properties and the link outputs provided by OmniLink:output-set.
Interface structure
struct OmniToolIface {
gchar** (* list_active_port_properties) (
OmniTool* self,
gint* result_length1,
GError** error
);
void (* modify_links) (
OmniTool* self,
GError** error
);
void (* add_to_pipeline) (
OmniTool* self,
OmniPipelineBuilder* builder,
GError** error
);
}
No description available.
Interface members
list_active_port_properties |
|
No description available. |
|
modify_links |
|
No description available. |
|
add_to_pipeline |
|
No description available. |
Virtual methods
Omni.Tool.add_to_pipeline
Add components to a pipeline, using information from the object’s
properties and the link outputs provided by OmniLink:output-set.