![]() |
![]() |
![]() |
cpg-network Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties | Signals |
#define CPG_INTEGRATOR_STATE_CONST (obj) struct CpgIntegratorState; struct CpgIntegratorStateClass; CpgIntegratorState * cpg_integrator_state_new (CpgObject *object
); CpgObject * cpg_integrator_state_get_object (CpgIntegratorState *state
); const GSList * cpg_integrator_state_integrated_properties (CpgIntegratorState *state
); const GSList * cpg_integrator_state_direct_properties (CpgIntegratorState *state
); const GSList * cpg_integrator_state_all_properties (CpgIntegratorState *state
); const GSList * cpg_integrator_state_integrated_link_actions (CpgIntegratorState *state
); const GSList * cpg_integrator_state_direct_link_actions (CpgIntegratorState *state
); const GSList * cpg_integrator_state_inputs (CpgIntegratorState *state
); const GSList * cpg_integrator_state_expressions (CpgIntegratorState *state
); const GSList * cpg_integrator_state_operators (CpgIntegratorState *state
); void cpg_integrator_state_update (CpgIntegratorState *state
); CpgIntegratorStatePrivate;
The integrator state stores information on which properties need to be integrated and how, based on a root object. It automatically tracks changes in the root object and recalculates the properties that need to be integrated.
#define CPG_INTEGRATOR_STATE_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CPG_TYPE_INTEGRATOR_STATE, CpgIntegratorState const))
CpgIntegratorState * cpg_integrator_state_new (CpgObject *object
);
Create a new integrator state for the given object.
|
A CpgObject |
Returns : |
A CpgIntegratorState |
CpgObject * cpg_integrator_state_get_object (CpgIntegratorState *state
);
Get the object of the integrator state.
|
A CpgIntegratorState |
Returns : |
A CpgObject. [transfer none] |
const GSList * cpg_integrator_state_integrated_properties
(CpgIntegratorState *state
);
Get the integrated properties which are acted upon by links.
|
A CpgIntegratorState |
Returns : |
A GSList of CpgProperty. [element-type CpgProperty][transfer none] |
const GSList * cpg_integrator_state_direct_properties
(CpgIntegratorState *state
);
Get non-integrated properties which are acted upon by links.
|
A CpgIntegratorState |
Returns : |
A GSList of CpgProperty. [element-type CpgProperty][transfer none] |
const GSList * cpg_integrator_state_all_properties (CpgIntegratorState *state
);
Get the link actions that act on non-integrated properties.
|
A CpgIntegratorState |
Returns : |
A GSList of CpgProperty. [element-type CpgProperty][transfer none] |
const GSList * cpg_integrator_state_integrated_link_actions
(CpgIntegratorState *state
);
Get the link actions that act on integrated properties.
|
A CpgIntegratorState |
Returns : |
A GSList of CpgLinkAction. [element-type CpgLinkAction][transfer none] |
const GSList * cpg_integrator_state_direct_link_actions
(CpgIntegratorState *state
);
Get the link actions that act on non-integrated properties.
|
A CpgIntegratorState |
Returns : |
A GSList of CpgLinkAction. [element-type CpgLinkAction][transfer none] |
const GSList * cpg_integrator_state_inputs (CpgIntegratorState *state
);
Get the input states.
|
A CpgIntegratorState |
Returns : |
A GSList of CpgInput. [element-type CpgInput][transfer none] |
const GSList * cpg_integrator_state_expressions (CpgIntegratorState *state
);
Get the expressions in the network.
|
A CpgIntegratorState |
Returns : |
A GSList of CpgExpression. [element-type CpgExpression][transfer none] |
const GSList * cpg_integrator_state_operators (CpgIntegratorState *state
);
void cpg_integrator_state_update (CpgIntegratorState *state
);
Update the integrator state. This recursively goes through all the objects contained in the associated "object" and collects the links and properties that need to be integrated.
|
A CpgIntegratorState |
"object"
property"object" CpgObject* : Read / Write / Construct Only
The object which is integrated
"updated"
signalvoid user_function (CpgIntegratorState *arg0,
gpointer user_data) : Run Last
Emitted when an integrator step has been performed
|
user data set when the signal handler was connected. |