OpenCMISS-Zinc C++ API Documentation
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Pages
fieldsceneviewerprojection.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_FIELDSCENEVIEWERPROJECTION_HPP__
10 #define CMZN_FIELDSCENEVIEWERPROJECTION_HPP__
11 
12 #include "zinc/fieldsceneviewerprojection.h"
13 #include "zinc/field.hpp"
14 #include "zinc/fieldmodule.hpp"
15 #include "zinc/sceneviewer.hpp"
16 #include "zinc/types/scenecoordinatesystem.hpp"
17 
18 namespace OpenCMISS
19 {
20 namespace Zinc
21 {
22 class FieldSceneviewerProjection : public Field
39 {
40 private:
41  // takes ownership of C handle, responsibility for destroying it
42  explicit FieldSceneviewerProjection(cmzn_field_id field_id) : Field(field_id)
43  { }
44 
45  friend FieldSceneviewerProjection Fieldmodule::createFieldSceneviewerProjection(
46  const Sceneviewer& sceneviewer, Scenecoordinatesystem fromCoordinateSystem,
47  Scenecoordinatesystem toCoordinateSystem);
48 
49 public:
50 
51  FieldSceneviewerProjection() : Field(0)
52  { }
53 
54 };
55 
57  const Sceneviewer& sceneviewer, Scenecoordinatesystem fromCoordinateSystem,
58  Scenecoordinatesystem toCoordinateSystem)
59 {
60  return FieldSceneviewerProjection(cmzn_fieldmodule_create_field_sceneviewer_projection(id,
61  sceneviewer.getId(), static_cast<cmzn_scenecoordinatesystem>(fromCoordinateSystem),
62  static_cast<cmzn_scenecoordinatesystem>(toCoordinateSystem)));
63 }
64 
65 }
66 }
67 
68 #endif
69 
cmzn_sceneviewer_id getId() const
Definition: sceneviewer.hpp:449
Scenecoordinatesystem
Definition: scenecoordinatesystem.hpp:26
FieldSceneviewerProjection createFieldSceneviewerProjection(const Sceneviewer &sceneviewer, Scenecoordinatesystem fromCoordinateSystem, Scenecoordinatesystem toCoordinateSystem)
Definition: fieldsceneviewerprojection.hpp:56
A field whose values are the 4x4 transformation matrix mapping coordinates between two scene coordina...
Definition: fieldsceneviewerprojection.hpp:38
The Zinc sceneviewer is responsible for rendering the graphical Scene.
Definition: sceneviewer.hpp:261