The Module class refers to a specific module linked in the current rendering context. If a module exports its attributes, it is possible to fetch them using methods from this class. Modules can be accessed through the Context.
More...
#include <ScriptInterface.h>
|
|
InputPort | input (int idx=0) |
| retrieve specific input port More...
|
|
|
SCR_AttributeWrapper * | attribute (const String &name) |
| Retrieve attribute of specific name in current module. More...
|
|
SCR_AttributeWrapper * | attribute (const String &name, const QVariant &defAttr) |
| Retrieve attribute of specific name in current module. More...
|
|
SCR_AttributeWrapper * | attribute (const String &name, QObject defAttr) |
| Retrieve attribute of specific name in current module. More...
|
|
The Module class refers to a specific module linked in the current rendering context. If a module exports its attributes, it is possible to fetch them using methods from this class. Modules can be accessed through the Context.
attr1 = module.attribute( "name" );
attr2 = module.attribute(
"name",
new Point3d() );
SCR_AttributeWrapper* Module::attribute |
( |
const String & |
name | ) |
|
|
slot |
Retrieve attribute of specific name in current module.
- Parameters
-
- Returns
- Attribute, or null if not found
SCR_AttributeWrapper* Module::attribute |
( |
const String & |
name, |
|
|
const QVariant & |
defAttr |
|
) |
| |
|
slot |
Retrieve attribute of specific name in current module.
- Parameters
-
name | Name of attribute |
defAttr | Default value for attribute if not found |
- Returns
- Attribute, or Attribute linking to defAttr if not found
SCR_AttributeWrapper* Module::attribute |
( |
const String & |
name, |
|
|
QObject |
defAttr |
|
) |
| |
|
slot |
Retrieve attribute of specific name in current module.
- Parameters
-
name | Name of attribute |
defAttr | Default value for attribute if not found |
- Returns
- Attribute, or Attribute linking to defAttr if not found
retrieve specific input port
- Parameters
-
idx | Index of port [ 0, nInput - 1 ] |
- Returns
- InputPort
Type name of current module.
The documentation for this class was generated from the following file: