Ignition Rendering

API Reference

0.1.0
Node.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 #ifndef IGNITION_RENDERING_NODE_HH_
18 #define IGNITION_RENDERING_NODE_HH_
19 
20 #include <string>
21 #include <ignition/math/Pose3.hh>
22 #include <ignition/math/Quaternion.hh>
23 
26 #include "ignition/rendering/Export.hh"
27 
28 namespace ignition
29 {
30  namespace rendering
31  {
34  class IGNITION_RENDERING_VISIBLE Node :
35  public virtual Object
36  {
38  public: virtual ~Node() { }
39 
42  public: virtual bool HasParent() const = 0;
43 
46  public: virtual VisualPtr Parent() const = 0;
47 
50  public: virtual void RemoveParent() = 0;
51 
54  public: virtual math::Pose3d LocalPose() const = 0;
55 
58  public: virtual void SetLocalPose(const math::Pose3d &_pose) = 0;
59 
62  public: virtual math::Vector3d LocalPosition() const = 0;
63 
68  public: virtual void SetLocalPosition(double _x, double _y,
69  double _z) = 0;
70 
73  public: virtual void SetLocalPosition(
74  const math::Vector3d &_position) = 0;
75 
78  public: virtual math::Quaterniond LocalRotation() const = 0;
79 
84  public: virtual void SetLocalRotation(double _r, double _p,
85  double _y) = 0;
86 
92  public: virtual void SetLocalRotation(double _w, double _x, double _y,
93  double _z) = 0;
94 
97  public: virtual void SetLocalRotation(
98  const math::Quaterniond &_rotation) = 0;
99 
102  public: virtual math::Pose3d WorldPose() const = 0;
103 
106  public: virtual void SetWorldPose(const math::Pose3d &_pose) = 0;
107 
110  public: virtual math::Vector3d WorldPosition() const = 0;
111 
116  public: virtual void SetWorldPosition(double _x, double _y,
117  double _z) = 0;
118 
121  public: virtual void SetWorldPosition(
122  const math::Vector3d &_position) = 0;
123 
126  public: virtual math::Quaterniond WorldRotation() const = 0;
127 
132  public: virtual void SetWorldRotation(double _r, double _p,
133  double _y) = 0;
134 
140  public: virtual void SetWorldRotation(double _w, double _x, double _y,
141  double _z) = 0;
142 
145  public: virtual void SetWorldRotation(
146  const math::Quaterniond &_rotation) = 0;
147 
150  public: virtual math::Pose3d WorldToLocal(
151  const math::Pose3d &_pose) const = 0;
152 
155  public: virtual math::Vector3d Origin() const = 0;
156 
162  public: virtual void SetOrigin(double _x, double _y, double _z) = 0;
163 
167  public: virtual void SetOrigin(const math::Vector3d &_origin) = 0;
168  };
169  }
170 }
171 #endif
Represents a single posable node in the scene graph.
Definition: Node.hh:34
virtual ~Node()
Deconstructor.
Definition: Node.hh:38
Definition: ArrowVisual.hh:22
Represents an object present in the scene graph. This includes sub-meshes, materials, render targets, as well as posable nodes.
Definition: Object.hh:31