geometry/shape/utility.h
Go to the documentation of this file.
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2011-2014, Willow Garage, Inc.
5  * Copyright (c) 2014-2016, Open Source Robotics Foundation
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * * Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  * * Redistributions in binary form must reproduce the above
15  * copyright notice, this list of conditions and the following
16  * disclaimer in the documentation and/or other materials provided
17  * with the distribution.
18  * * Neither the name of Open Source Robotics Foundation nor the names of its
19  * contributors may be used to endorse or promote products derived
20  * from this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33  * POSSIBILITY OF SUCH DAMAGE.
34  */
35 
38 #ifndef FCL_GEOMETRY_SHAPE_UTILITY_H
39 #define FCL_GEOMETRY_SHAPE_UTILITY_H
40 
41 // This header shouldn't be included by any bounding volumen class (e.g.,
42 // AABB and OBB) nor geometric shapes (e.g., Box and Sphere).
43 
44 #include "fcl/common/types.h"
45 
46 #include "fcl/math/bv/AABB.h"
47 #include "fcl/math/bv/kDOP.h"
48 #include "fcl/math/bv/kIOS.h"
49 #include "fcl/math/bv/OBB.h"
50 #include "fcl/math/bv/OBBRSS.h"
51 #include "fcl/math/bv/RSS.h"
52 
53 #include "fcl/geometry/shape/box.h"
54 
55 namespace fcl
56 {
57 
59 template <typename BV, typename Shape>
60 FCL_EXPORT
61 void computeBV(const Shape& s, const Transform3<typename BV::S>& tf, BV& bv);
62 
64 template <typename S>
65 FCL_EXPORT
66 void constructBox(const AABB<S>& bv, Box<S>& box, Transform3<S>& tf);
67 
68 template <typename S>
69 FCL_EXPORT
70 void constructBox(const OBB<S>& bv, Box<S>& box, Transform3<S>& tf);
71 
72 template <typename S>
73 FCL_EXPORT
74 void constructBox(const OBBRSS<S>& bv, Box<S>& box, Transform3<S>& tf);
75 
76 template <typename S>
77 FCL_EXPORT
78 void constructBox(const kIOS<S>& bv, Box<S>& box, Transform3<S>& tf);
79 
80 template <typename S>
81 FCL_EXPORT
82 void constructBox(const RSS<S>& bv, Box<S>& box, Transform3<S>& tf);
83 
84 template <typename S>
85 FCL_EXPORT
86 void constructBox(const KDOP<S, 16>& bv, Box<S>& box, Transform3<S>& tf);
87 
88 template <typename S>
89 FCL_EXPORT
90 void constructBox(const KDOP<S, 18>& bv, Box<S>& box, Transform3<S>& tf);
91 
92 template <typename S>
93 FCL_EXPORT
94 void constructBox(const KDOP<S, 24>& bv, Box<S>& box, Transform3<S>& tf);
95 
96 template <typename S>
97 FCL_EXPORT
98 void constructBox(const AABB<S>& bv, const Transform3<S>& tf_bv, Box<S>& box, Transform3<S>& tf);
99 
100 template <typename S>
101 FCL_EXPORT
102 void constructBox(const OBB<S>& bv, const Transform3<S>& tf_bv, Box<S>& box, Transform3<S>& tf);
103 
104 template <typename S>
105 FCL_EXPORT
106 void constructBox(const OBBRSS<S>& bv, const Transform3<S>& tf_bv, Box<S>& box, Transform3<S>& tf);
107 
108 template <typename S>
109 FCL_EXPORT
110 void constructBox(const kIOS<S>& bv, const Transform3<S>& tf_bv, Box<S>& box, Transform3<S>& tf);
111 
112 template <typename S>
113 FCL_EXPORT
114 void constructBox(const RSS<S>& bv, const Transform3<S>& tf_bv, Box<S>& box, Transform3<S>& tf);
115 
116 template <typename S>
117 FCL_EXPORT
118 void constructBox(const KDOP<S, 16>& bv, const Transform3<S>& tf_bv, Box<S>& box, Transform3<S>& tf);
119 
120 template <typename S>
121 FCL_EXPORT
122 void constructBox(const KDOP<S, 18>& bv, const Transform3<S>& tf_bv, Box<S>& box, Transform3<S>& tf);
123 
124 template <typename S>
125 FCL_EXPORT
126 void constructBox(const KDOP<S, 24>& bv, const Transform3<S>& tf_bv, Box<S>& box, Transform3<S>& tf);
127 
128 } // namespace fcl
129 
131 
132 #endif
utility-inl.h
types.h
fcl::computeBV
FCL_EXPORT void computeBV(const Shape &s, const Transform3< typename BV::S > &tf, BV &bv)
calculate a bounding volume for a shape in a specific configuration
Definition: geometry/shape/utility-inl.h:1056
box.h
OBBRSS.h
fcl::constructBox
template void constructBox(const OBB< double > &bv, Box< double > &box, Transform3< double > &tf)
kDOP.h
OBB.h
AABB.h
RSS.h
kIOS.h
fcl
Main namespace.
Definition: broadphase_bruteforce-inl.h:45


fcl
Author(s):
autogenerated on Sat Sep 11 2021 02:37:42