OpenCMISS-Zinc C++ API Documentation
|
A description of field parameters to define at a node. More...
#include <nodetemplate.hpp>
Public Member Functions | |
Nodetemplate (cmzn_nodetemplate_id node_template_id) | |
Nodetemplate (const Nodetemplate &nodeTemplate) | |
Nodetemplate & | operator= (const Nodetemplate &nodeTemplate) |
bool | isValid () const |
cmzn_nodetemplate_id | getId () const |
int | defineField (const Field &field) |
int | defineFieldFromNode (const Field &field, const Node &node) |
Timesequence | getTimesequence (const Field &field) |
int | setTimesequence (const Field &field, const Timesequence ×equence) |
int | getValueNumberOfVersions (const Field &field, int componentNumber, Node::ValueLabel valueLabel) |
int | setValueNumberOfVersions (const Field &field, int componentNumber, Node::ValueLabel valueLabel, int numberOfVersions) |
int | removeField (const Field &field) |
int | undefineField (const Field &field) |
A description of field parameters to define at a node.
A description of field parameters to define at a node (incl. value/derivative types, versions), used as a template for creating new nodes in a nodeset, or merging into a node to define or undefine fields on it.
|
inline |
Define the field on the node_template with just a single node value per field component with no time variation. Replaces any existing definition (or undefine state) of the field in the template. Per-component derivatives and multiple versions can be added subsequently.
field | The field to define. May be finite_element, stored_string or stored_mesh_location type only. |
|
inline |
Define the field on the node template based on its definition in the supplied node. Replaces any existing definition (or undefine state) in the template. If the field is not defined on the node it is removed as a defined/undefined field in the template.
field | The field to define. May be finite_element, stored_string or stored_mesh_location type only. |
node | The node to obtain the field definition from. |
|
inline |
Return the C handle of the Nodetemplate object.
|
inline |
Returns the time sequence defined for field in node_template, if any.
field | The field to get time sequence for. May be finite_element type only. |
|
inline |
Get the number of value/derivative parameters under a given node value label for a field component in the node template.
field | The field to query value/derivative parameters for. Must be finite_element type only. |
componentNumber | The component from 1 to the number of field components, or -1 to get the number of versions if consistent for all components. |
valueLabel | The label of the node value/derivative to query. |
|
inline |
Check if this is a valid Nodetemplate object.
|
inline |
Removes field from list of fields to define or undefine in node template.
field | The field to remove. |
|
inline |
Defines variation of all nodal values/derivatives * versions with the supplied time sequence for all components of the field in the node template. Hence there will be as many of each parameter as times in the time sequence.
field | The field to define versions for. May be finite_element type only. |
timesequence | Time sequence object defining the number of times for which field parameters are stored, and the times they are for (increasing). |
node_field_creator | Optionally defines different versions and/or derivative types. If it is NULL then a single nodal value for each component will be defined. |
|
inline |
Sets the number of value/derivative parameters under a given node value label for a field component in the node template. Must have first called cmzn_nodetemplate_define_field() for field. Note that a field is initially defined with a single VALUE label version, which may be changed using this function, including passing 0 versions to remove storage for the VALUE.
field | The field to define value/derivative parameters for. Must be finite_element type only. |
componentNumber | The component from 1 to the number of field components, or -1 to define identically for all components. |
valueLabel | The label of the node value/derivative to define. |
numberOfVersions | The number of versions of the derivative/value label to store. Can be 0 to request no parameters be stored. |
|
inline |
Marks field to be undefined when next merged into an existing node. Has no effect on newly created nodes. Removes field from define list if present.
field | The field to undefine. May be finite_element, stored_string or stored_mesh_location type only. |