Gazebo Rendering

API Reference

7.4.2
gz/rendering/BoundingBox.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 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 GZ_RENDERING_BOUNDINGBOX_HH_
18 #define GZ_RENDERING_BOUNDINGBOX_HH_
19 
20 #include <memory>
21 #include <vector>
22 
23 #include <gz/utils/SuppressWarning.hh>
24 #include <gz/math/Vector3.hh>
25 #include <gz/math/Quaternion.hh>
26 
27 #include "gz/rendering/config.hh"
28 #include "gz/rendering/Export.hh"
29 
30 namespace gz
31 {
32 namespace rendering
33 {
34 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
35  class BoundingBoxPrivate;
36 
39  class GZ_RENDERING_VISIBLE BoundingBox
40  {
42  public: BoundingBox();
43 
46  public: BoundingBox(const BoundingBox &_box);
47 
50  public: BoundingBox(BoundingBox &&_box) noexcept;
51 
53  public: virtual ~BoundingBox();
54 
58  public: BoundingBox &operator=(BoundingBox &&_box);
59 
63  public: BoundingBox &operator=(const BoundingBox &_box);
64 
68  public: const math::Vector3d &Center() const;
69 
74  public: void SetCenter(const math::Vector3d &_center);
75 
79  public: const math::Vector3d &Size() const;
80 
84  public: void SetSize(const math::Vector3d &_size);
85 
88  public: const math::Quaterniond &Orientation() const;
89 
93  public: void SetOrientation(const math::Quaterniond &_orientation);
94 
105  public: const std::vector<math::Vector3d> &Vertices3D() const;
106 
109  public: uint32_t Label() const;
110 
113  public: void SetLabel(uint32_t _label);
114 
117  GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
118  private: std::unique_ptr<BoundingBoxPrivate> dataPtr;
119  GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
120  };
121 }
122 }
123 }
124 #endif