All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VisualPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2013 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 
18 #ifndef _VISUAL_PRIVATE_HH_
19 #define _VISUAL_PRIVATE_HH_
20 
21 #include <string>
22 #include <utility>
23 #include <list>
24 #include <vector>
25 
26 #include <sdf/sdf.hh>
27 
28 #include "gazebo/msgs/msgs.hh"
29 #include "gazebo/common/Event.hh"
30 #include "gazebo/math/Box.hh"
31 #include "gazebo/math/Pose.hh"
33 #include "gazebo/math/Vector3.hh"
34 #include "gazebo/math/Vector2d.hh"
35 
38 
39 namespace Ogre
40 {
41  class MovableObject;
42  class SceneNode;
43  class StaticGeometry;
44  class RibbonTrail;
45  class AnimationState;
46  class SkeletonInstance;
47 }
48 
49 namespace gazebo
50 {
51  namespace rendering
52  {
53  class WireBox;
54 
57  {
59  public: ScenePtr scene;
60 
62  public: Ogre::SceneNode *sceneNode;
63 
65  public: VisualPtr parent;
66 
68  public: sdf::ElementPtr sdf;
69 
71  public: std::string myMaterialName;
72 
74  public: std::string origMaterialName;
75 
77  public: float transparency;
78 
81  public: bool isStatic;
82 
84  public: Ogre::StaticGeometry *staticGeom;
85 
87  public: bool visible;
88 
90  public: Ogre::RibbonTrail *ribbonTrail;
91 
93  public: Ogre::SkeletonInstance *skeleton;
94 
97 
99  public: std::list<DynamicLines*> lines;
100 
102  public: std::list< std::pair<DynamicLines*, unsigned int> > lineVertices;
103 
105  public: std::string name;
106 
108  public: std::vector<VisualPtr> children;
109 
111  public: Ogre::AnimationState *animState;
112 
115 
117  public: boost::function<void()> onAnimationComplete;
118 
120  public: bool useRTShader;
121 
123  public: bool initialized;
124 
127 
129  public: uint32_t id;
130 
132  public: static uint32_t visualIdCount;
133 
136 
138  public: bool lighting;
139 
141  public: std::vector<VisualPluginPtr> plugins;
142  };
144  }
145 }
146 #endif