9 #ifndef CMZN_NODETEMPLATE_HPP__ 10 #define CMZN_NODETEMPLATE_HPP__ 12 #include "opencmiss/zinc/nodetemplate.h" 13 #include "opencmiss/zinc/field.hpp" 14 #include "opencmiss/zinc/node.hpp" 15 #include "opencmiss/zinc/timesequence.hpp" 33 cmzn_nodetemplate_id id;
41 explicit Nodetemplate(cmzn_nodetemplate_id node_template_id) :
46 id(cmzn_nodetemplate_access(nodeTemplate.id))
51 cmzn_nodetemplate_id temp_id = cmzn_nodetemplate_access(nodeTemplate.id);
54 cmzn_nodetemplate_destroy(&
id);
64 cmzn_nodetemplate_destroy(&
id);
83 cmzn_nodetemplate_id
getId()
const 100 return cmzn_nodetemplate_define_field(
id, field.
getId());
117 return cmzn_nodetemplate_define_field_from_node(
id, field.
getId(), node.
getId());
148 return cmzn_nodetemplate_set_timesequence(
id, field.
getId(), timesequence.
getId());
170 return cmzn_nodetemplate_get_value_number_of_versions(
id, field.
getId(),
171 componentNumber,
static_cast<cmzn_node_value_label
>(valueLabel));
195 return cmzn_nodetemplate_set_value_number_of_versions(
id, field.
getId(),
196 componentNumber,
static_cast<cmzn_node_value_label
>(valueLabel), numberOfVersions);
207 return cmzn_nodetemplate_remove_field(
id, field.
getId());
219 return cmzn_nodetemplate_undefine_field(
id, field.
getId());
223 inline int Node::merge(
const Nodetemplate& nodeTemplate)
225 return cmzn_node_merge(
id, nodeTemplate.
getId());
231 #endif // CMZN_NODETEMPLATE_HPP__ int setTimesequence(const Field &field, const Timesequence ×equence)
Definition: nodetemplate.hpp:146
cmzn_nodetemplate_id getId() const
Definition: nodetemplate.hpp:83
int setValueNumberOfVersions(const Field &field, int componentNumber, Node::ValueLabel valueLabel, int numberOfVersions)
Definition: nodetemplate.hpp:192
A description of field parameters to define at a node.
Definition: nodetemplate.hpp:29
ValueLabel
Definition: node.hpp:80
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:51
int removeField(const Field &field)
Definition: nodetemplate.hpp:205
bool isValid() const
Definition: nodetemplate.hpp:73
int undefineField(const Field &field)
Definition: nodetemplate.hpp:217
int getValueNumberOfVersions(const Field &field, int componentNumber, Node::ValueLabel valueLabel)
Definition: nodetemplate.hpp:167
cmzn_field_id getId() const
Definition: field.hpp:103
Timesequence getTimesequence(const Field &field)
Definition: nodetemplate.hpp:127
cmzn_node_id getId() const
Definition: node.hpp:136
int defineField(const Field &field)
Definition: nodetemplate.hpp:98
A non-decreasing list of times at which nodal parameters can be stored.
Definition: timesequence.hpp:35
cmzn_timesequence_id getId() const
Definition: timesequence.hpp:88
The OpenCMISS namespace.
Definition: context.hpp:20
Point object used to represent finite element nodes.
Definition: node.hpp:34
int defineFieldFromNode(const Field &field, const Node &node)
Definition: nodetemplate.hpp:115