The Context class represents the current frame soft rendering context. This class is the base class for the rendering context from which ports, attributes and rendering parameters can be fetched. An instance of this class is directly accessible in the scripting environment.
More...
|
|
InputPort | input (int idx=0) const |
| retrieve specific input port More...
|
|
OutputPort | output (int idx=0) const |
| Retrieve specific output port. More...
|
|
|
Attribute | attribute (const String &name) |
| Retrieve a specific attribute in the current context. This method is supplied as an utility function that will parse every module in search of specified attribute. More...
|
|
Attribute | attribute (const String &name, const QVariant &defAttr) |
| Retrieve a specific attribute in the current context. This method is supplied as an utility function that will parse every module in search of specified attribute. More...
|
|
Attribute | attribute (const String &name, QObject defAttr) |
| Retrieve a specific attribute in the current context This method is supplied as an utility function that will parse every module in search of specified attribute. More...
|
|
Attribute | localAttribute (const String &name) |
| Retrieve a specific local attribute in current scripting module. This method will only search the local module if it does export its attributes. More...
|
|
Attribute | localAttribute (const String &name, const QVariant &defAttr) |
| Retrieve a specific local attribute in current scripting module. This method will only search the local module if it does export its attributes. More...
|
|
Attribute | localAttribute (const String &name, QObject defAttr) |
| Retrieve a specific local attribute in current scripting module. This method will only search the local module if it does export its attributes. More...
|
|
|
Module | module (const int idx=0) |
| Retrieve a specific module in the current rendering context. Attributes can be fetched from the module. Such an approach is faster if you know which module you want to get attributes from. More...
|
|
Module | module (const String &name) |
| Retrieve a specific module in the current rendering context. Attributes can be fetched from the module. Such an approach is faster if you know which module you want to get attributes from. More...
|
|
QList< QObject * > | modules () |
| Retrieve all modules. More...
|
|
QList< QObject * > | modules (const String &typeName) |
| Retrieve all modules of specific type name. More...
|
|
void | passThrough () |
| Copy input image directly to output port without modifications. This function is called per default when user script is empty. More...
|
|
|
Matrix4x4 | viewMatrix () |
| Retrieve camera view matrix at the current frame. More...
|
|
Matrix4x4 | viewMatrixAt (double frame) |
| Retrieve camera view matrix at specified frame. More...
|
|
Matrix4x4 | perspectiveMatrix () |
| Retrieve camera perspective matrix at the current frame. More...
|
|
The Context class represents the current frame soft rendering context. This class is the base class for the rendering context from which ports, attributes and rendering parameters can be fetched. An instance of this class is directly accessible in the scripting environment.
◆ attribute [1/3]
Attribute Context::attribute |
( |
const String & |
name | ) |
|
|
slot |
Retrieve a specific attribute in the current context. This method is supplied as an utility function that will parse every module in search of specified attribute.
- Parameters
-
- Returns
- Attribute, or null if not found
◆ attribute [2/3]
Attribute Context::attribute |
( |
const String & |
name, |
|
|
const QVariant & |
defAttr |
|
) |
| |
|
slot |
Retrieve a specific attribute in the current context. This method is supplied as an utility function that will parse every module in search of specified attribute.
- Parameters
-
name | Name of attribute |
defAttr | Default value for attribute if not found |
- Returns
- Attribute, or Attribute linking to defAttr if not found
◆ attribute [3/3]
Attribute Context::attribute |
( |
const String & |
name, |
|
|
QObject |
defAttr |
|
) |
| |
|
slot |
Retrieve a specific attribute in the current context This method is supplied as an utility function that will parse every module in search of specified attribute.
- Parameters
-
name | Name of attribute |
defAttr | Default value for attribute if not found |
- Returns
- Attribute, or Attribute linking to defAttr if not found
◆ input
InputPort Context::input |
( |
int |
idx = 0 | ) |
const |
|
slot |
retrieve specific input port
- Parameters
-
idx | Index of port [ 0, nInput - 1 ] |
- Returns
- InputPort
◆ localAttribute [1/3]
Attribute Context::localAttribute |
( |
const String & |
name | ) |
|
|
slot |
Retrieve a specific local attribute in current scripting module. This method will only search the local module if it does export its attributes.
- Parameters
-
- Returns
- Attribute, or null if not found
◆ localAttribute [2/3]
Attribute Context::localAttribute |
( |
const String & |
name, |
|
|
const QVariant & |
defAttr |
|
) |
| |
|
slot |
Retrieve a specific local attribute in current scripting module. This method will only search the local module if it does export its attributes.
- Parameters
-
name | Name of attribute |
defAttr | Default value for attribute if not found |
- Returns
- Attribute, or Attribute linking to defAttr if not found
◆ localAttribute [3/3]
Attribute Context::localAttribute |
( |
const String & |
name, |
|
|
QObject |
defAttr |
|
) |
| |
|
slot |
Retrieve a specific local attribute in current scripting module. This method will only search the local module if it does export its attributes.
- Parameters
-
name | Name of attribute |
defAttr | Default value for attribute if not found |
- Returns
- Attribute, or Attribute linking to defAttr if not found
◆ module [1/2]
Module Context::module |
( |
const int |
idx = 0 | ) |
|
|
slot |
Retrieve a specific module in the current rendering context. Attributes can be fetched from the module. Such an approach is faster if you know which module you want to get attributes from.
- Parameters
-
- Returns
- Module
◆ module [2/2]
Module Context::module |
( |
const String & |
name | ) |
|
|
slot |
Retrieve a specific module in the current rendering context. Attributes can be fetched from the module. Such an approach is faster if you know which module you want to get attributes from.
- Parameters
-
- Returns
- Module
◆ modules [1/2]
QList<QObject *> Context::modules |
( |
| ) |
|
|
slot |
Retrieve all modules.
- Returns
- QList of modules
◆ modules [2/2]
QList<QObject *> Context::modules |
( |
const String & |
typeName | ) |
|
|
slot |
Retrieve all modules of specific type name.
- Parameters
-
typeName | Type name of modules |
- Returns
- QList of modules
◆ output
Retrieve specific output port.
- Parameters
-
idx | Index of port [ 0, nOutput - 1 ] |
- Returns
- OutputPort
◆ passThrough
void Context::passThrough |
( |
| ) |
|
|
slot |
Copy input image directly to output port without modifications. This function is called per default when user script is empty.
◆ perspectiveMatrix
Retrieve camera perspective matrix at the current frame.
- Returns
- Matrix4x4
◆ viewMatrix
Retrieve camera view matrix at the current frame.
- Returns
- Matrix4x4
◆ viewMatrixAt
Matrix4x4 Context::viewMatrixAt |
( |
double |
frame | ) |
|
|
slot |
Retrieve camera view matrix at specified frame.
- Parameters
-
- Returns
- Matrix4x4
◆ currentFrame
double Context::currentFrame |
|
read |
◆ designAspectRatio
double Context::designAspectRatio |
|
read |
◆ designFieldChartX
double Context::designFieldChartX |
|
read |
◆ designFieldChartY
double Context::designFieldChartY |
|
read |
◆ designFieldChartZ
double Context::designFieldChartZ |
|
read |
◆ nInputs
◆ nModules
◆ nOutputs
◆ resX
◆ resY