10 #ifndef CMZN_FIELD_HPP__ 11 #define CMZN_FIELD_HPP__ 13 #include "opencmiss/zinc/field.h" 20 class Differentialoperator;
22 class Fieldassignment;
25 class FieldEdgeDiscontinuity;
26 class FieldEigenvalues;
27 class FieldElementGroup;
28 class FieldFindMeshLocation;
29 class FieldFiniteElement;
32 class FieldImagefilterBinaryThreshold;
33 class FieldImagefilterDiscreteGaussian;
34 class FieldImagefilterHistogram;
35 class FieldImagefilterThreshold;
36 class FieldMeshIntegral;
38 class FieldStoredMeshLocation;
39 class FieldStoredString;
63 explicit Field(cmzn_field_id field_id) : id(field_id)
66 Field(
const Field& field) : id(cmzn_field_access(field.id))
71 cmzn_field_id temp_id = cmzn_field_access(field.id);
74 cmzn_field_destroy(&
id);
84 cmzn_field_destroy(&
id);
270 return cmzn_field_is_managed(
id);
287 return cmzn_field_set_managed(
id, value);
303 return cmzn_field_get_component_name(
id, componentNumber);
316 return cmzn_field_set_component_name(
id, componentNumber, name);
327 return cmzn_field_get_coordinate_system_focus(
id);
340 return cmzn_field_set_coordinate_system_focus(
id, focus);
351 cmzn_field_get_coordinate_system_type(
id));
365 return cmzn_field_set_coordinate_system_type(
id,
366 static_cast<cmzn_field_coordinate_system_type>(coordinateSystemType));
376 return cmzn_field_get_number_of_components(
id);
387 return cmzn_field_get_name(
id);
399 return cmzn_field_set_name(
id, name);
409 return cmzn_field_get_number_of_source_fields(
id);
422 return Field(cmzn_field_get_source_field(
id, index));
433 return cmzn_field_is_type_coordinate(
id);
447 return cmzn_field_set_type_coordinate(
id, value);
457 return static_cast<ValueType>(cmzn_field_get_value_type(
id));
480 int coordinatesCount,
const double *coordinatesIn);
522 double *coordinatesOut);
569 const Fieldcache& cache,
int valuesCount,
double *valuesOut);
714 inline bool operator==(
const Field& a,
const Field& b)
728 cmzn_fielditerator_id id;
741 id(cmzn_fielditerator_access(fielditerator.id))
746 cmzn_fielditerator_id temp_id = cmzn_fielditerator_access(fielditerator.id);
749 cmzn_fielditerator_destroy(&
id);
759 cmzn_fielditerator_destroy(&
id);
782 return Field(cmzn_fielditerator_next(
id));
int evaluateDerivative(const Differentialoperator&differentialOperator, const Fieldcache &cache, int valuesCount, double *valuesOut)
Definition: fieldcache.hpp:226
Definition: field.hpp:115
Definition: field.hpp:132
Definition: field.hpp:226
A single finite element from a mesh.
Definition: element.hpp:34
FieldNodeGroup castNodeGroup()
Definition: fieldsubobjectgroup.hpp:106
bool isValid() const
Definition: field.hpp:93
A real-valued interpolated field.
Definition: fieldfiniteelement.hpp:31
FieldImagefilterDiscreteGaussian castImagefilterDiscreteGaussian()
Definition: fieldimageprocessing.hpp:765
ChangeFlag
Definition: field.hpp:111
Definition: field.hpp:117
Definition: field.hpp:163
Element evaluateMeshLocation(const Fieldcache &cache, int coordinatesCount, double *coordinatesOut)
Definition: fieldcache.hpp:209
A field which defines a subset of elements from a master mesh.
Definition: fieldsubobjectgroup.hpp:31
char * getName()
Definition: field.hpp:385
FieldElementGroup castElementGroup()
Definition: fieldsubobjectgroup.hpp:95
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:51
int assignReal(const Fieldcache &cache, int valuesCount, const double *valuesIn)
Definition: fieldcache.hpp:199
Definition: field.hpp:121
FieldStoredString castStoredString()
Definition: fieldfiniteelement.hpp:549
FieldFindMeshLocation castFindMeshLocation()
Definition: fieldfiniteelement.hpp:519
CoordinateSystemType getCoordinateSystemType()
Definition: field.hpp:348
FieldComponent castComponent()
Definition: fieldcomposite.hpp:167
bool isTypeCoordinate()
Definition: field.hpp:431
Definition: field.hpp:220
int setCoordinateSystemFocus(double focus)
Definition: field.hpp:338
int setName(const char *name)
Definition: field.hpp:397
Definition: field.hpp:212
Fieldassignment createFieldassignment(const Field &sourceField)
Definition: fieldassignment.hpp:192
Field getSourceField(int index)
Definition: field.hpp:420
Definition: field.hpp:245
FieldImage castImage()
Definition: fieldimage.hpp:580
Definition: field.hpp:155
int getNumberOfComponents()
Definition: field.hpp:374
Describes the derivative of a field to evaluate.
Definition: differentialoperator.hpp:26
FieldFiniteElement castFiniteElement()
Definition: fieldfiniteelement.hpp:489
Definition: field.hpp:216
int assignString(const Fieldcache &cache, const char *stringValue)
Definition: fieldcache.hpp:204
Object for assigning values of a field from a source field.
Definition: fieldassignment.hpp:44
A field which defines a subset of nodes from a master nodeset.
Definition: fieldsubobjectgroup.hpp:64
A field which stores and returns string values at nodes.
Definition: fieldfiniteelement.hpp:401
Definition: field.hpp:153
char * getComponentName(int componentNumber)
Definition: field.hpp:301
A field returning one or more components of a source field in a specified order.
Definition: fieldcomposite.hpp:54
Definition: field.hpp:113
Image processing derived field type performing the ITK discrete gaussian filter.
Definition: fieldimageprocessing.hpp:226
FieldEdgeDiscontinuity castEdgeDiscontinuity()
Definition: fieldfiniteelement.hpp:501
A field calculating the integral over a mesh.
Definition: fieldmeshoperators.hpp:33
Parameters for smoothing a field.
Definition: fieldsmoothing.hpp:28
char * evaluateString(const Fieldcache &cache)
Definition: fieldcache.hpp:221
Definition: field.hpp:222
cmzn_field_id getId() const
Definition: field.hpp:103
A field measuring discontinuity between surface elements.
Definition: fieldfiniteelement.hpp:144
An image-based field giving the pixel colour/intensity values.
Definition: fieldimage.hpp:31
bool isDefinedAtLocation(const Fieldcache &cache)
Definition: fieldcache.hpp:233
A field storing locations within a mesh.
Definition: fieldfiniteelement.hpp:383
Definition: field.hpp:125
int setManaged(bool value)
Definition: field.hpp:285
int DomainTypes
Definition: field.hpp:233
DomainType
Definition: field.hpp:210
Definition: field.hpp:157
Definition: field.hpp:243
int ChangeFlags
Definition: field.hpp:142
CoordinateSystemType
Definition: field.hpp:151
Field next()
Definition: field.hpp:780
FieldGroup castGroup()
Definition: fieldgroup.hpp:365
Definition: field.hpp:241
bool isValid() const
Definition: field.hpp:768
FieldImagefilterHistogram castImagefilterHistogram()
Definition: fieldimageprocessing.hpp:786
int assignMeshLocation(const Fieldcache &cache, const Element &element, int coordinatesCount, const double *coordinatesIn)
Definition: fieldcache.hpp:192
Image processing derived field type performing the ITK threshold filter.
Definition: fieldimageprocessing.hpp:569
int smooth(const Fieldsmoothing &fieldsmoothing)
Definition: fieldsmoothing.hpp:124
FieldMeshIntegral castMeshIntegral()
Definition: fieldmeshoperators.hpp:182
FieldStoredMeshLocation castStoredMeshLocation()
Definition: fieldfiniteelement.hpp:538
Container/manager of fields and domains within a region.
Definition: fieldmodule.hpp:135
Cache for setting domain locations at which fields are evaluated or assigned.
Definition: fieldcache.hpp:33
int setTypeCoordinate(bool value)
Definition: field.hpp:445
int setComponentName(int componentNumber, const char *name)
Definition: field.hpp:314
Definition: field.hpp:218
ValueType
Definition: field.hpp:239
Definition: field.hpp:185
bool isManaged()
Definition: field.hpp:268
Image processing derived field type performing the ITK histogram field.
Definition: fieldimageprocessing.hpp:302
ValueType getValueType()
Definition: field.hpp:455
Definition: field.hpp:134
A generic group field used for grouping local subobjects.
Definition: fieldgroup.hpp:35
Image processing derived field type performing the ITK binary threshold filter.
Definition: fieldimageprocessing.hpp:80
double getCoordinateSystemFocus()
Definition: field.hpp:325
Definition: field.hpp:247
Definition: field.hpp:224
Definition: field.hpp:119
The OpenCMISS namespace.
Definition: context.hpp:20
FieldEigenvalues castEigenvalues()
Definition: fieldmatrixoperators.hpp:213
Definition: field.hpp:128
Definition: field.hpp:214
Definition: field.hpp:169
int getNumberOfSourceFields()
Definition: field.hpp:407
FieldImagefilterBinaryThreshold castImagefilterBinaryThreshold()
Definition: fieldimageprocessing.hpp:724
Definition: field.hpp:177
int evaluateReal(const Fieldcache &cache, int valuesCount, double *valuesOut)
Definition: fieldcache.hpp:216
int setCoordinateSystemType(CoordinateSystemType coordinateSystemType)
Definition: field.hpp:363
An iterator for looping through all the fields in a fieldmodule.
Definition: field.hpp:724
FieldImagefilterThreshold castImagefilterThreshold()
Definition: fieldimageprocessing.hpp:824
A field calculating the eigenvalues.
Definition: fieldmatrixoperators.hpp:50
A field that computes the location in a mesh.
Definition: fieldfiniteelement.hpp:282
Fieldmodule getFieldmodule() const
Definition: fieldmodule.hpp:1786