OpenCMISS-Zinc 3.0.0 Release C++ API Documentation
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Pages
fieldfibres.hpp
Go to the documentation of this file.
1 
4 /* OpenCMISS-Zinc Library
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9 #ifndef CMZN_FIELDFIBRES_HPP__
10 #define CMZN_FIELDFIBRES_HPP__
11 
12 #include "zinc/fieldfibres.h"
13 #include "zinc/field.hpp"
14 #include "zinc/fieldmodule.hpp"
15 
16 namespace OpenCMISS
17 {
18 namespace Zinc
19 {
20 class FieldFibreAxes : public Field
43 {
44 private:
45  // takes ownership of C handle, and responsibility for destroying it
46  explicit FieldFibreAxes(cmzn_field_id field_id) : Field(field_id)
47  { }
48 
49  friend FieldFibreAxes Fieldmodule::createFieldFibreAxes(const Field& fibreField, const Field& coordinateField);
50 
51 public:
52 
53  FieldFibreAxes() : Field(0)
54  { }
55 
56 };
57 
58 inline FieldFibreAxes Fieldmodule::createFieldFibreAxes(const Field& fibreField, const Field& coordinateField)
59 {
60  return FieldFibreAxes(cmzn_fieldmodule_create_field_fibre_axes(id,
61  fibreField.getId(), coordinateField.getId()));
62 }
63 
64 } // namespace Zinc
65 }
66 
67 #endif
A "fibre axes" field type which returns a 9-component (3 x 3 vector) field representing an orthonorma...
Definition: fieldfibres.hpp:42
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:46
cmzn_field_id getId() const
Definition: field.hpp:98
FieldFibreAxes createFieldFibreAxes(const Field &fibreField, const Field &coordinateField)
Definition: fieldfibres.hpp:58