WireBox.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 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 GAZEBO_RENDERING_WIREBOX_HH_
19 #define GAZEBO_RENDERING_WIREBOX_HH_
20 
21 #include <memory>
22 #include <ignition/math/Box.hh>
23 
24 #include "gazebo/math/Box.hh"
26 #include "gazebo/util/system.hh"
27 
28 namespace gazebo
29 {
30  namespace rendering
31  {
32  class WireBoxPrivate;
33 
36 
39  class GZ_RENDERING_VISIBLE WireBox
40  {
45  public: explicit WireBox(VisualPtr _parent, const math::Box &_box)
46  GAZEBO_DEPRECATED(8.0);
47 
51  public: explicit WireBox(VisualPtr _parent,
52  const ignition::math::Box &_box);
53 
55  public: ~WireBox();
56 
60  public: void Init(const math::Box &_box) GAZEBO_DEPRECATED(8.0);
61 
64  public: void Init(const ignition::math::Box &_box);
65 
68  public: void SetVisible(bool _visible);
69 
73  public: bool GetVisible() const GAZEBO_DEPRECATED(8.0);
74 
77  public: bool Visible() const;
78 
82  public: math::Box GetBox() const GAZEBO_DEPRECATED(8.0);
83 
86  public: ignition::math::Box Box() const;
87 
90  private: std::unique_ptr<WireBoxPrivate> dataPtr;
91  };
93  }
94 }
95 #endif
Mathematical representation of a box and related functions.
Definition: Box.hh:41
#define GAZEBO_DEPRECATED(version)
Definition: system.hh:302
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:113
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Draws a wireframe box.
Definition: WireBox.hh:39