OpenCMISS-Zinc C++ API Documentation
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 "opencmiss/zinc/fieldfibres.h"
13 #include "opencmiss/zinc/field.hpp"
14 #include "opencmiss/zinc/fieldmodule.hpp"
15 
16 namespace OpenCMISS
17 {
18 namespace Zinc
19 {
20 class FieldFibreAxes : public Field
45 {
46 private:
47  // takes ownership of C handle, and responsibility for destroying it
48  explicit FieldFibreAxes(cmzn_field_id field_id) : Field(field_id)
49  { }
50 
51  friend FieldFibreAxes Fieldmodule::createFieldFibreAxes(const Field& fibreField, const Field& coordinateField);
52 
53 public:
54 
55  FieldFibreAxes() : Field(0)
56  { }
57 
58 };
59 
60 inline FieldFibreAxes Fieldmodule::createFieldFibreAxes(const Field& fibreField, const Field& coordinateField)
61 {
62  return FieldFibreAxes(cmzn_fieldmodule_create_field_fibre_axes(id,
63  fibreField.getId(), coordinateField.getId()));
64 }
65 
66 } // namespace Zinc
67 }
68 
69 #endif
A "fibre axes" field type which returns a 9-component (3 x 3 vector) field representing an orthonorma...
Definition: fieldfibres.hpp:44
Base field type: an abstraction of a mathematical field.
Definition: field.hpp:51
cmzn_field_id getId() const
Definition: field.hpp:103
The OpenCMISS namespace.
Definition: context.hpp:20
FieldFibreAxes createFieldFibreAxes(const Field &fibreField, const Field &coordinateField)
Definition: fieldfibres.hpp:60