Ignition Rendering

API Reference

0.1.0
OgreNode.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_OGRE_OGRENODE_HH_
18 #define IGNITION_RENDERING_OGRE_OGRENODE_HH_
19 
23 
24 namespace Ogre
25 {
26  class SceneNode;
27 }
28 
29 namespace ignition
30 {
31  namespace rendering
32  {
33  class IGNITION_RENDERING_OGRE_VISIBLE OgreNode :
34  public BaseNode<OgreObject>
35  {
36  protected: OgreNode();
37 
38  public: virtual ~OgreNode();
39 
40  public: virtual bool HasParent() const;
41 
42  public: virtual VisualPtr Parent() const;
43 
44  public: virtual Ogre::SceneNode *Node() const;
45 
46  public: virtual void Destroy();
47 
48  protected: virtual math::Pose3d RawLocalPose() const;
49 
50  protected: virtual void SetRawLocalPose(const math::Pose3d &_Pose3d);
51 
52  protected: virtual math::Vector3d RawLocalPosition() const;
53 
54  protected: virtual void SetRawLocalPosition(
55  const math::Vector3d &_position);
56 
57  protected: virtual math::Quaterniond RawLocalRotation() const;
58 
59  protected: virtual void SetRawLocalRotation(
60  const math::Quaterniond &_rotation);
61 
62  protected: virtual void SetParent(OgreVisualPtr _parent);
63 
64  protected: virtual void Load();
65 
66  protected: virtual void Init();
67 
68  protected: OgreVisualPtr parent;
69 
71 
72  private: friend class OgreVisual;
73  };
74  }
75 }
76 #endif
OgreVisualPtr parent
Definition: OgreNode.hh:68
Represents a single posable node in the scene graph.
Definition: Node.hh:34
Definition: OgreNode.hh:33
Definition: OgreVisual.hh:28
Ogre::SceneNode * ogreNode
Definition: OgreNode.hh:70
Definition: ArrowVisual.hh:22
Definition: BaseNode.hh:28