OpenCMISS-Zinc C++ API Documentation
|
A description of field parameters to define at a node. More...
#include <node.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 | 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 | 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 |
Defines the field on the node_template with just a single node value per field component with no time variation. 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 |
Return the C handle of the Nodetemplate object.
|
inline |
Gets 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 maximum number of versions in any component. |
valueLabel | The label of the node value/derivative to query. |
|
inline |
Check if this is a valid Nodetemplate object.
|
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. Limitation: Zinc is currently limited to having either 0 versions for a derivative label (but at least 1 for the VALUE), or the same positive number of versions for all value/derivative perameters. Callers should assume this will be fixed in a future release, and therefore set the number of versions independently for each value/derivative. For now the largest number of versions set for any value/derivative will be the amount of storage set aside per-field-component, and the field will need to be undefined then re-defined to reduce the number of versions.
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 value to define. Can be 0 to request no parameters be stored, however the storage allocated may be greater. |
|
inline |
Sets field to be undefined when next merged into an existing node. Has no effect on newly created nodes. It is illegal to define and undefine the same field in a node template.
field | The field to undefine. May be finite_element, stored_string or stored_mesh_location type only. |