10 #ifndef CMZN_ELEMENTFIELDTEMPLATE_HPP__ 11 #define CMZN_ELEMENTFIELDTEMPLATE_HPP__ 13 #include "opencmiss/zinc/elementfieldtemplate.h" 14 #include "opencmiss/zinc/elementbasis.hpp" 15 #include "opencmiss/zinc/node.hpp" 43 cmzn_elementfieldtemplate_id id;
52 id(elementfieldtemplate_id)
56 id(cmzn_elementfieldtemplate_access(elementfieldtemplate.id))
61 cmzn_elementfieldtemplate_id temp_id = cmzn_elementfieldtemplate_access(elementfieldemplate.id);
63 cmzn_elementfieldtemplate_destroy(&(this->
id));
70 cmzn_elementfieldtemplate_destroy(&(this->
id));
124 return (0 != this->
id);
132 cmzn_elementfieldtemplate_id
getId()
const 146 return Elementbasis(cmzn_elementfieldtemplate_get_elementbasis(this->
id));
158 return cmzn_elementfieldtemplate_get_function_number_of_terms(this->
id, functionNumber);
175 return cmzn_elementfieldtemplate_set_function_number_of_terms(this->
id, functionNumber, newNumberOfTerms);
185 return cmzn_elementfieldtemplate_get_number_of_functions(this->
id);
195 return cmzn_elementfieldtemplate_get_number_of_local_nodes(this->
id);
208 return cmzn_elementfieldtemplate_set_number_of_local_nodes(this->
id, number);
218 return cmzn_elementfieldtemplate_get_number_of_local_scale_factors(this->
id);
232 return cmzn_elementfieldtemplate_set_number_of_local_scale_factors(this->
id, number);
242 return static_cast<ParameterMappingMode>(cmzn_elementfieldtemplate_get_parameter_mapping_mode(this->
id));
258 return cmzn_elementfieldtemplate_set_parameter_mapping_mode(this->
id,
259 static_cast<cmzn_elementfieldtemplate_parameter_mapping_mode>(mode));
273 return cmzn_elementfieldtemplate_get_scale_factor_identifier(this->
id, localScaleFactorIndex);
302 return cmzn_elementfieldtemplate_set_scale_factor_identifier(this->
id, localScaleFactorIndex, identifier);
316 cmzn_elementfieldtemplate_get_scale_factor_type(this->
id, localScaleFactorIndex));
333 return cmzn_elementfieldtemplate_set_scale_factor_type(this->
id,
334 localScaleFactorIndex, static_cast<cmzn_elementfieldtemplate_scale_factor_type>(type));
348 return cmzn_elementfieldtemplate_get_term_local_node_index(this->
id, functionNumber, term);
361 return static_cast<Node::ValueLabel>(cmzn_elementfieldtemplate_get_term_node_value_label(this->
id, functionNumber, term));
374 return cmzn_elementfieldtemplate_get_term_node_version(this->
id, functionNumber, term);
391 return cmzn_elementfieldtemplate_set_term_node_parameter(this->
id, functionNumber, term,
392 localNodeIndex, static_cast<cmzn_node_value_label>(nodeValueLabel), version);
407 int getTermScaling(
int functionNumber,
int term,
int indexesCount,
int *indexesOut)
const 409 return cmzn_elementfieldtemplate_get_term_scaling(this->
id, functionNumber, term, indexesCount, indexesOut);
426 int setTermScaling(
int functionNumber,
int term,
int indexesCount,
const int *indexesIn)
428 return cmzn_elementfieldtemplate_set_term_scaling(this->
id, functionNumber, term, indexesCount, indexesIn);
444 return cmzn_elementfieldtemplate_validate(this->
id);
int getTermScaling(int functionNumber, int term, int indexesCount, int *indexesOut) const
Definition: elementfieldtemplate.hpp:407
int getNumberOfLocalNodes() const
Definition: elementfieldtemplate.hpp:193
int setNumberOfLocalNodes(int number)
Definition: elementfieldtemplate.hpp:206
int setTermNodeParameter(int functionNumber, int term, int localNodeIndex, Node::ValueLabel nodeValueLabel, int version)
Definition: elementfieldtemplate.hpp:389
ValueLabel
Definition: node.hpp:80
A set of basis functions that can apply over an element of a given dimension.
Definition: elementbasis.hpp:28
Definition: elementfieldtemplate.hpp:78
Definition: elementfieldtemplate.hpp:107
int setScaleFactorIdentifier(int localScaleFactorIndex, int identifier)
Definition: elementfieldtemplate.hpp:300
ScaleFactorType getScaleFactorType(int localScaleFactorIndex) const
Definition: elementfieldtemplate.hpp:313
Definition: elementfieldtemplate.hpp:105
Node::ValueLabel getTermNodeValueLabel(int functionNumber, int term) const
Definition: elementfieldtemplate.hpp:359
Elementbasis getElementbasis() const
Definition: elementfieldtemplate.hpp:144
Definition: elementfieldtemplate.hpp:113
Definition: elementfieldtemplate.hpp:109
Definition: elementfieldtemplate.hpp:101
int getNumberOfLocalScaleFactors() const
Definition: elementfieldtemplate.hpp:216
int getFunctionNumberOfTerms(int functionNumber) const
Definition: elementfieldtemplate.hpp:156
Definition: elementfieldtemplate.hpp:103
int setScaleFactorType(int localScaleFactorIndex, ScaleFactorType type)
Definition: elementfieldtemplate.hpp:331
int getNumberOfFunctions() const
Definition: elementfieldtemplate.hpp:183
int setFunctionNumberOfTerms(int functionNumber, int newNumberOfTerms)
Definition: elementfieldtemplate.hpp:173
int getTermNodeVersion(int functionNumber, int term) const
Definition: elementfieldtemplate.hpp:372
int setTermScaling(int functionNumber, int term, int indexesCount, const int *indexesIn)
Definition: elementfieldtemplate.hpp:426
int setNumberOfLocalScaleFactors(int number)
Definition: elementfieldtemplate.hpp:230
ParameterMappingMode
Definition: elementfieldtemplate.hpp:76
ParameterMappingMode getParameterMappingMode() const
Definition: elementfieldtemplate.hpp:240
bool isValid() const
Definition: elementfieldtemplate.hpp:122
int getScaleFactorIdentifier(int localScaleFactorIndex) const
Definition: elementfieldtemplate.hpp:271
int getTermLocalNodeIndex(int functionNumber, int term) const
Definition: elementfieldtemplate.hpp:346
The OpenCMISS namespace.
Definition: context.hpp:20
bool validate()
Definition: elementfieldtemplate.hpp:442
ScaleFactorType
Definition: elementfieldtemplate.hpp:99
Definition: elementfieldtemplate.hpp:80
cmzn_elementfieldtemplate_id getId() const
Definition: elementfieldtemplate.hpp:132
Definition: elementfieldtemplate.hpp:111
A template defining field parameter mapping and interpolation over an element chart.
Definition: elementfieldtemplate.hpp:39
Definition: elementfieldtemplate.hpp:82
int setParameterMappingMode(ParameterMappingMode mode)
Definition: elementfieldtemplate.hpp:256
Definition: elementfieldtemplate.hpp:84