GCC Code Coverage Report


Directory: ./
File: python/doxygen_autodoc/coal/shape/geometric_shapes.h
Date: 2025-05-02 10:16:21
Exec Total Coverage
Lines: 217 244 88.9%
Branches: 123 260 47.3%

Line Branch Exec Source
1 #ifndef DOXYGEN_AUTODOC_COAL_SHAPE_GEOMETRIC_SHAPES_H
2 #define DOXYGEN_AUTODOC_COAL_SHAPE_GEOMETRIC_SHAPES_H
3
4 #include "/root/robotpkg/path/py-coal/work/coal-3.0.1/doc/python/doxygen.hh"
5
6 #include <coal/shape/geometric_shapes.h>
7
8 namespace doxygen {
9
10 template <>
11 struct class_doc_impl< coal::Box >
12 {
13 static inline const char* run ()
14 {
15 return "Center at zero point, axis aligned box. ";
16 }
17 5 static inline const char* attribute (const char* attrib)
18 {
19
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (strcmp(attrib, "halfSide") == 0)
20 5 return "box side half-length ";
21 (void)attrib; // turn off unused parameter warning.
22 return "";
23 }
24 };
25
26 template <>
27 struct constructor_3_impl< coal::Box, coal::Scalar, coal::Scalar, coal::Scalar >
28 {
29 5 static inline const char* doc ()
30 {
31 5 return "";
32 }
33 5 static inline boost::python::detail::keywords<3+1> args ()
34 {
35
6/12
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
✓ Branch 14 taken 5 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 5 times.
✗ Branch 18 not taken.
10 return (boost::python::arg("self"), boost::python::arg("x"), boost::python::arg("y"), boost::python::arg("z"));
36 }
37 };
38
39 template <>
40 struct constructor_1_impl< coal::Box, const coal::Vec3s & >
41 {
42 5 static inline const char* doc ()
43 {
44 5 return "";
45 }
46 5 static inline boost::python::detail::keywords<1+1> args ()
47 {
48
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("side_"));
49 }
50 };
51
52 template <>
53 struct constructor_1_impl< coal::Box, const coal::Box & >
54 {
55 5 static inline const char* doc ()
56 {
57 5 return "";
58 }
59 5 static inline boost::python::detail::keywords<1+1> args ()
60 {
61
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("other"));
62 }
63 };
64
65 template <>
66 struct constructor_0_impl< coal::Box >
67 {
68 5 static inline const char* doc ()
69 {
70 5 return "Default constructor. ";
71 }
72 5 static inline boost::python::detail::keywords<0+1> args ()
73 {
74 5 return (boost::python::arg("self"));
75 }
76 };
77
78 inline const char* member_func_doc ( coal::Box & (coal::Box::*function_ptr) (const coal::Box &))
79 {
80 if (function_ptr == static_cast< coal::Box & (coal::Box::*) (const coal::Box &)>(&coal::Box::operator=))
81 return "";
82 return "";
83 }
84
85 inline boost::python::detail::keywords<2> member_func_args ( coal::Box & (coal::Box::*function_ptr) (const coal::Box &))
86 {
87 if (function_ptr == static_cast< coal::Box & (coal::Box::*) (const coal::Box &)>(&coal::Box::operator=))
88 return (boost::python::arg("self"), boost::python::arg("other"));
89 return (boost::python::arg("self"), boost::python::arg("arg0"));
90 }
91
92 5 inline const char* member_func_doc ( coal::Box * (coal::Box::*function_ptr) () const)
93 {
94
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast< coal::Box * (coal::Box::*) () const>(&coal::Box::clone))
95 5 return "Clone *this into a new coal::Box. ";
96 return "";
97 }
98
99 inline boost::python::detail::keywords<1> member_func_args ( coal::Box * (coal::Box::*function_ptr) () const)
100 {
101 if (function_ptr == static_cast< coal::Box * (coal::Box::*) () const>(&coal::Box::clone))
102 return (boost::python::arg("self"));
103 return (boost::python::arg("self"));
104 }
105
106 inline const char* member_func_doc (void (coal::Box::*function_ptr) ())
107 {
108 if (function_ptr == static_cast<void (coal::Box::*) ()>(&coal::Box::computeLocalAABB))
109 return "Compute coal::AABB. ";
110 return "";
111 }
112
113 inline boost::python::detail::keywords<1> member_func_args (void (coal::Box::*function_ptr) ())
114 {
115 if (function_ptr == static_cast<void (coal::Box::*) ()>(&coal::Box::computeLocalAABB))
116 return (boost::python::arg("self"));
117 return (boost::python::arg("self"));
118 }
119
120 inline const char* member_func_doc ( coal::NODE_TYPE (coal::Box::*function_ptr) () const)
121 {
122 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Box::*) () const>(&coal::Box::getNodeType))
123 return "Get node type: a box. ";
124 return "";
125 }
126
127 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::Box::*function_ptr) () const)
128 {
129 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Box::*) () const>(&coal::Box::getNodeType))
130 return (boost::python::arg("self"));
131 return (boost::python::arg("self"));
132 }
133
134 inline const char* member_func_doc ( coal::Scalar (coal::Box::*function_ptr) () const)
135 {
136 if (function_ptr == static_cast< coal::Scalar (coal::Box::*) () const>(&coal::Box::computeVolume))
137 return "compute the volume ";
138 if (function_ptr == static_cast< coal::Scalar (coal::Box::*) () const>(&coal::Box::minInflationValue))
139 return "";
140 return "";
141 }
142
143 inline boost::python::detail::keywords<1> member_func_args ( coal::Scalar (coal::Box::*function_ptr) () const)
144 {
145 if (function_ptr == static_cast< coal::Scalar (coal::Box::*) () const>(&coal::Box::computeVolume))
146 return (boost::python::arg("self"));
147 if (function_ptr == static_cast< coal::Scalar (coal::Box::*) () const>(&coal::Box::minInflationValue))
148 return (boost::python::arg("self"));
149 return (boost::python::arg("self"));
150 }
151
152 inline const char* member_func_doc ( coal::Matrix3s (coal::Box::*function_ptr) () const)
153 {
154 if (function_ptr == static_cast< coal::Matrix3s (coal::Box::*) () const>(&coal::Box::computeMomentofInertia))
155 return "compute the inertia matrix, related to the origin ";
156 return "";
157 }
158
159 inline boost::python::detail::keywords<1> member_func_args ( coal::Matrix3s (coal::Box::*function_ptr) () const)
160 {
161 if (function_ptr == static_cast< coal::Matrix3s (coal::Box::*) () const>(&coal::Box::computeMomentofInertia))
162 return (boost::python::arg("self"));
163 return (boost::python::arg("self"));
164 }
165
166 inline const char* member_func_doc (std::pair< coal::Box , coal::Transform3s > (coal::Box::*function_ptr) (const coal::Scalar) const)
167 {
168 if (function_ptr == static_cast<std::pair< coal::Box , coal::Transform3s > (coal::Box::*) (const coal::Scalar) const>(&coal::Box::inflated))
169 return "Inflate the box by an amount given by value. This value can be positive or negative but must always >= minInflationValue(). \n"
170 "\n"
171 "\n"
172 "Param\n"
173 " - value of the shape inflation.\n"
174 "\n"
175 "Return: a new inflated box and the related transform to account for the change of shape frame ";
176 return "";
177 }
178
179 inline boost::python::detail::keywords<2> member_func_args (std::pair< coal::Box , coal::Transform3s > (coal::Box::*function_ptr) (const coal::Scalar) const)
180 {
181 if (function_ptr == static_cast<std::pair< coal::Box , coal::Transform3s > (coal::Box::*) (const coal::Scalar) const>(&coal::Box::inflated))
182 return (boost::python::arg("self"), boost::python::arg("value"));
183 return (boost::python::arg("self"), boost::python::arg("arg0"));
184 }
185 } // namespace doxygen
186 #include <coal/shape/geometric_shapes.h>
187
188 namespace doxygen {
189
190 template <>
191 struct class_doc_impl< coal::Capsule >
192 {
193 5 static inline const char* run ()
194 {
195 5 return "coal::Capsule It is $ { x~\in~\mathbb{R}^3, d(x, AB) \leq radius } $ where $ d(x, AB) $ is the distance between the point x and the capsule segment AB, with $ A = (0,0,-halfLength), B = (0,0,halfLength) $. ";
196 }
197 10 static inline const char* attribute (const char* attrib)
198 {
199
2/2
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 5 times.
10 if (strcmp(attrib, "radius") == 0)
200 5 return "Radius of capsule. ";
201
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (strcmp(attrib, "halfLength") == 0)
202 5 return "Half Length along z axis. ";
203 (void)attrib; // turn off unused parameter warning.
204 return "";
205 }
206 };
207
208 template <>
209 struct constructor_0_impl< coal::Capsule >
210 {
211 5 static inline const char* doc ()
212 {
213 5 return "Default constructor. ";
214 }
215 5 static inline boost::python::detail::keywords<0+1> args ()
216 {
217 5 return (boost::python::arg("self"));
218 }
219 };
220
221 template <>
222 struct constructor_2_impl< coal::Capsule, coal::Scalar, coal::Scalar >
223 {
224 5 static inline const char* doc ()
225 {
226 5 return "";
227 }
228 5 static inline boost::python::detail::keywords<2+1> args ()
229 {
230
4/8
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
10 return (boost::python::arg("self"), boost::python::arg("radius_"), boost::python::arg("lz_"));
231 }
232 };
233
234 template <>
235 struct constructor_1_impl< coal::Capsule, const coal::Capsule & >
236 {
237 5 static inline const char* doc ()
238 {
239 5 return "";
240 }
241 5 static inline boost::python::detail::keywords<1+1> args ()
242 {
243
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("other"));
244 }
245 };
246
247 5 inline const char* member_func_doc ( coal::Capsule * (coal::Capsule::*function_ptr) () const)
248 {
249
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast< coal::Capsule * (coal::Capsule::*) () const>(&coal::Capsule::clone))
250 5 return "Clone *this into a new coal::Capsule. ";
251 return "";
252 }
253
254 inline boost::python::detail::keywords<1> member_func_args ( coal::Capsule * (coal::Capsule::*function_ptr) () const)
255 {
256 if (function_ptr == static_cast< coal::Capsule * (coal::Capsule::*) () const>(&coal::Capsule::clone))
257 return (boost::python::arg("self"));
258 return (boost::python::arg("self"));
259 }
260
261 inline const char* member_func_doc (void (coal::Capsule::*function_ptr) ())
262 {
263 if (function_ptr == static_cast<void (coal::Capsule::*) ()>(&coal::Capsule::computeLocalAABB))
264 return "Compute coal::AABB. ";
265 return "";
266 }
267
268 inline boost::python::detail::keywords<1> member_func_args (void (coal::Capsule::*function_ptr) ())
269 {
270 if (function_ptr == static_cast<void (coal::Capsule::*) ()>(&coal::Capsule::computeLocalAABB))
271 return (boost::python::arg("self"));
272 return (boost::python::arg("self"));
273 }
274
275 inline const char* member_func_doc ( coal::NODE_TYPE (coal::Capsule::*function_ptr) () const)
276 {
277 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Capsule::*) () const>(&coal::Capsule::getNodeType))
278 return "Get node type: a capsule. ";
279 return "";
280 }
281
282 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::Capsule::*function_ptr) () const)
283 {
284 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Capsule::*) () const>(&coal::Capsule::getNodeType))
285 return (boost::python::arg("self"));
286 return (boost::python::arg("self"));
287 }
288
289 inline const char* member_func_doc ( coal::Scalar (coal::Capsule::*function_ptr) () const)
290 {
291 if (function_ptr == static_cast< coal::Scalar (coal::Capsule::*) () const>(&coal::Capsule::computeVolume))
292 return "compute the volume ";
293 if (function_ptr == static_cast< coal::Scalar (coal::Capsule::*) () const>(&coal::Capsule::minInflationValue))
294 return "";
295 return "";
296 }
297
298 inline boost::python::detail::keywords<1> member_func_args ( coal::Scalar (coal::Capsule::*function_ptr) () const)
299 {
300 if (function_ptr == static_cast< coal::Scalar (coal::Capsule::*) () const>(&coal::Capsule::computeVolume))
301 return (boost::python::arg("self"));
302 if (function_ptr == static_cast< coal::Scalar (coal::Capsule::*) () const>(&coal::Capsule::minInflationValue))
303 return (boost::python::arg("self"));
304 return (boost::python::arg("self"));
305 }
306
307 inline const char* member_func_doc ( coal::Matrix3s (coal::Capsule::*function_ptr) () const)
308 {
309 if (function_ptr == static_cast< coal::Matrix3s (coal::Capsule::*) () const>(&coal::Capsule::computeMomentofInertia))
310 return "compute the inertia matrix, related to the origin ";
311 return "";
312 }
313
314 inline boost::python::detail::keywords<1> member_func_args ( coal::Matrix3s (coal::Capsule::*function_ptr) () const)
315 {
316 if (function_ptr == static_cast< coal::Matrix3s (coal::Capsule::*) () const>(&coal::Capsule::computeMomentofInertia))
317 return (boost::python::arg("self"));
318 return (boost::python::arg("self"));
319 }
320
321 inline const char* member_func_doc (std::pair< coal::Capsule , coal::Transform3s > (coal::Capsule::*function_ptr) (const coal::Scalar) const)
322 {
323 if (function_ptr == static_cast<std::pair< coal::Capsule , coal::Transform3s > (coal::Capsule::*) (const coal::Scalar) const>(&coal::Capsule::inflated))
324 return "Inflate the capsule by an amount given by value. This value can be positive or negative but must always >= minInflationValue(). \n"
325 "\n"
326 "\n"
327 "Param\n"
328 " - value of the shape inflation.\n"
329 "\n"
330 "Return: a new inflated capsule and the related transform to account for the change of shape frame ";
331 return "";
332 }
333
334 inline boost::python::detail::keywords<2> member_func_args (std::pair< coal::Capsule , coal::Transform3s > (coal::Capsule::*function_ptr) (const coal::Scalar) const)
335 {
336 if (function_ptr == static_cast<std::pair< coal::Capsule , coal::Transform3s > (coal::Capsule::*) (const coal::Scalar) const>(&coal::Capsule::inflated))
337 return (boost::python::arg("self"), boost::python::arg("value"));
338 return (boost::python::arg("self"), boost::python::arg("arg0"));
339 }
340 } // namespace doxygen
341 #include <coal/shape/geometric_shapes.h>
342
343 namespace doxygen {
344
345 template <>
346 struct class_doc_impl< coal::Cone >
347 {
348 5 static inline const char* run ()
349 {
350 5 return "coal::Cone The base of the cone is at $ z = - halfLength $ and the top is at $ z = halfLength $. ";
351 }
352 10 static inline const char* attribute (const char* attrib)
353 {
354
2/2
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 5 times.
10 if (strcmp(attrib, "radius") == 0)
355 5 return "Radius of the cone. ";
356
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (strcmp(attrib, "halfLength") == 0)
357 5 return "Half Length along z axis. ";
358 (void)attrib; // turn off unused parameter warning.
359 return "";
360 }
361 };
362
363 template <>
364 struct constructor_0_impl< coal::Cone >
365 {
366 5 static inline const char* doc ()
367 {
368 5 return "Default constructor. ";
369 }
370 5 static inline boost::python::detail::keywords<0+1> args ()
371 {
372 5 return (boost::python::arg("self"));
373 }
374 };
375
376 template <>
377 struct constructor_2_impl< coal::Cone, coal::Scalar, coal::Scalar >
378 {
379 5 static inline const char* doc ()
380 {
381 5 return "";
382 }
383 5 static inline boost::python::detail::keywords<2+1> args ()
384 {
385
4/8
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
10 return (boost::python::arg("self"), boost::python::arg("radius_"), boost::python::arg("lz_"));
386 }
387 };
388
389 template <>
390 struct constructor_1_impl< coal::Cone, const coal::Cone & >
391 {
392 5 static inline const char* doc ()
393 {
394 5 return "";
395 }
396 5 static inline boost::python::detail::keywords<1+1> args ()
397 {
398
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("other"));
399 }
400 };
401
402 5 inline const char* member_func_doc ( coal::Cone * (coal::Cone::*function_ptr) () const)
403 {
404
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast< coal::Cone * (coal::Cone::*) () const>(&coal::Cone::clone))
405 5 return "Clone *this into a new coal::Cone. ";
406 return "";
407 }
408
409 inline boost::python::detail::keywords<1> member_func_args ( coal::Cone * (coal::Cone::*function_ptr) () const)
410 {
411 if (function_ptr == static_cast< coal::Cone * (coal::Cone::*) () const>(&coal::Cone::clone))
412 return (boost::python::arg("self"));
413 return (boost::python::arg("self"));
414 }
415
416 inline const char* member_func_doc (void (coal::Cone::*function_ptr) ())
417 {
418 if (function_ptr == static_cast<void (coal::Cone::*) ()>(&coal::Cone::computeLocalAABB))
419 return "Compute coal::AABB. ";
420 return "";
421 }
422
423 inline boost::python::detail::keywords<1> member_func_args (void (coal::Cone::*function_ptr) ())
424 {
425 if (function_ptr == static_cast<void (coal::Cone::*) ()>(&coal::Cone::computeLocalAABB))
426 return (boost::python::arg("self"));
427 return (boost::python::arg("self"));
428 }
429
430 inline const char* member_func_doc ( coal::NODE_TYPE (coal::Cone::*function_ptr) () const)
431 {
432 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Cone::*) () const>(&coal::Cone::getNodeType))
433 return "Get node type: a cone. ";
434 return "";
435 }
436
437 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::Cone::*function_ptr) () const)
438 {
439 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Cone::*) () const>(&coal::Cone::getNodeType))
440 return (boost::python::arg("self"));
441 return (boost::python::arg("self"));
442 }
443
444 inline const char* member_func_doc ( coal::Scalar (coal::Cone::*function_ptr) () const)
445 {
446 if (function_ptr == static_cast< coal::Scalar (coal::Cone::*) () const>(&coal::Cone::computeVolume))
447 return "compute the volume ";
448 if (function_ptr == static_cast< coal::Scalar (coal::Cone::*) () const>(&coal::Cone::minInflationValue))
449 return "";
450 return "";
451 }
452
453 inline boost::python::detail::keywords<1> member_func_args ( coal::Scalar (coal::Cone::*function_ptr) () const)
454 {
455 if (function_ptr == static_cast< coal::Scalar (coal::Cone::*) () const>(&coal::Cone::computeVolume))
456 return (boost::python::arg("self"));
457 if (function_ptr == static_cast< coal::Scalar (coal::Cone::*) () const>(&coal::Cone::minInflationValue))
458 return (boost::python::arg("self"));
459 return (boost::python::arg("self"));
460 }
461
462 inline const char* member_func_doc ( coal::Matrix3s (coal::Cone::*function_ptr) () const)
463 {
464 if (function_ptr == static_cast< coal::Matrix3s (coal::Cone::*) () const>(&coal::Cone::computeMomentofInertia))
465 return "compute the inertia matrix, related to the origin ";
466 return "";
467 }
468
469 inline boost::python::detail::keywords<1> member_func_args ( coal::Matrix3s (coal::Cone::*function_ptr) () const)
470 {
471 if (function_ptr == static_cast< coal::Matrix3s (coal::Cone::*) () const>(&coal::Cone::computeMomentofInertia))
472 return (boost::python::arg("self"));
473 return (boost::python::arg("self"));
474 }
475
476 inline const char* member_func_doc ( coal::Vec3s (coal::Cone::*function_ptr) () const)
477 {
478 if (function_ptr == static_cast< coal::Vec3s (coal::Cone::*) () const>(&coal::Cone::computeCOM))
479 return "compute center of mass ";
480 return "";
481 }
482
483 inline boost::python::detail::keywords<1> member_func_args ( coal::Vec3s (coal::Cone::*function_ptr) () const)
484 {
485 if (function_ptr == static_cast< coal::Vec3s (coal::Cone::*) () const>(&coal::Cone::computeCOM))
486 return (boost::python::arg("self"));
487 return (boost::python::arg("self"));
488 }
489
490 inline const char* member_func_doc (std::pair< coal::Cone , coal::Transform3s > (coal::Cone::*function_ptr) (const coal::Scalar) const)
491 {
492 if (function_ptr == static_cast<std::pair< coal::Cone , coal::Transform3s > (coal::Cone::*) (const coal::Scalar) const>(&coal::Cone::inflated))
493 return "Inflate the cone by an amount given by value. This value can be positive or negative but must always >= minInflationValue(). \n"
494 "\n"
495 "\n"
496 "Param\n"
497 " - value of the shape inflation.\n"
498 "\n"
499 "Return: a new inflated cone and the related transform to account for the change of shape frame ";
500 return "";
501 }
502
503 inline boost::python::detail::keywords<2> member_func_args (std::pair< coal::Cone , coal::Transform3s > (coal::Cone::*function_ptr) (const coal::Scalar) const)
504 {
505 if (function_ptr == static_cast<std::pair< coal::Cone , coal::Transform3s > (coal::Cone::*) (const coal::Scalar) const>(&coal::Cone::inflated))
506 return (boost::python::arg("self"), boost::python::arg("value"));
507 return (boost::python::arg("self"), boost::python::arg("arg0"));
508 }
509 } // namespace doxygen
510 #include <coal/shape/geometric_shapes.h>
511
512 namespace doxygen {
513
514 template <typename _IndexType>
515 struct class_doc_impl< coal::ConvexBaseTpl <_IndexType > >
516 {
517 20 static inline const char* run ()
518 {
519 return "Base for convex polytope. \n"
520 "\n"
521 "\n"
522 "Templateparam\n"
523 " - _IndexType type of vertices indexes. \n"
524 "\n"
525 20 "Note: Inherited classes are responsible for filling ConvexBase::neighbors; ";
526 }
527 30 static inline const char* attribute (const char* attrib)
528 {
529
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
60 if (strcmp(attrib, "num_vertices_large_convex_threshold") == 0)
530 return "Above this threshold, the convex polytope is considered large. This influcences the way the support function is computed. ";
531
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
60 if (strcmp(attrib, "num_support_warm_starts") == 0)
532 return "Number of support warm starts. ";
533
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
60 if (strcmp(attrib, "points") == 0)
534 return "An array of the points of the polygon. ";
535
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
60 if (strcmp(attrib, "normals") == 0)
536 return "An array of the normals of the polygon. ";
537
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
60 if (strcmp(attrib, "offsets") == 0)
538 return "An array of the offsets to the normals of the polygon. Note: there are as many offsets as normals. ";
539
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
60 if (strcmp(attrib, "neighbors") == 0)
540 return "Neighbors of each vertex. It is an array of size num_points. For each vertex, it contains the number of neighbors and a list of indices pointing to them. ";
541
2/2
✓ Branch 0 taken 10 times.
✓ Branch 1 taken 20 times.
60 if (strcmp(attrib, "center") == 0)
542 20 return "center of the convex polytope, this is used for collision: center is guaranteed in the internal of the polytope (as it is convex) ";
543
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
40 if (strcmp(attrib, "support_warm_starts") == 0)
544 return "Support warm start polytopes. ";
545 (void)attrib; // turn off unused parameter warning.
546 40 return "";
547 }
548 };
549
550 template <typename _IndexType>
551 struct destructor_doc_impl < coal::ConvexBaseTpl <_IndexType > >
552 {
553 static inline const char* run ()
554 {
555 return "";
556 }
557 };
558
559 template <typename _IndexType>
560 struct constructor_1_impl< coal::ConvexBaseTpl <_IndexType >, const coal::ConvexBaseTpl <_IndexType > & >
561 {
562 static inline const char* doc ()
563 {
564 return "Copy constructor. The copy constructor only shallow copies the data (it copies the shared pointers but does not deep clones the data). ";
565 }
566 static inline boost::python::detail::keywords<1+1> args ()
567 {
568 return (boost::python::arg("self"), boost::python::arg("other"));
569 }
570 };
571
572 template <typename _IndexType>
573 inline const char* member_func_doc ( typename coal::ConvexBaseTpl <_IndexType >::Base & (coal::ConvexBaseTpl <_IndexType >::*function_ptr) ())
574 {
575 if (function_ptr == static_cast< typename coal::ConvexBaseTpl <_IndexType >::Base & (coal::ConvexBaseTpl <_IndexType >::*) ()>(&coal::ConvexBaseTpl <_IndexType >::base))
576 return "Cast coal::ConvexBaseTpl to coal::ShapeBase. This method should never be marked as virtual. ";
577 return "";
578 }
579
580 template <typename _IndexType>
581 inline boost::python::detail::keywords<1> member_func_args ( typename coal::ConvexBaseTpl <_IndexType >::Base & (coal::ConvexBaseTpl <_IndexType >::*function_ptr) ())
582 {
583 if (function_ptr == static_cast< typename coal::ConvexBaseTpl <_IndexType >::Base & (coal::ConvexBaseTpl <_IndexType >::*) ()>(&coal::ConvexBaseTpl <_IndexType >::base))
584 return (boost::python::arg("self"));
585 return (boost::python::arg("self"));
586 }
587
588 template <typename _IndexType>
589 inline const char* member_func_doc (const typename coal::ConvexBaseTpl <_IndexType >::Base & (coal::ConvexBaseTpl <_IndexType >::*function_ptr) () const)
590 {
591 if (function_ptr == static_cast<const typename coal::ConvexBaseTpl <_IndexType >::Base & (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::base))
592 return "Const cast coal::ConvexBaseTpl to coal::ShapeBase. This method should never be marked as virtual. ";
593 return "";
594 }
595
596 template <typename _IndexType>
597 inline boost::python::detail::keywords<1> member_func_args (const typename coal::ConvexBaseTpl <_IndexType >::Base & (coal::ConvexBaseTpl <_IndexType >::*function_ptr) () const)
598 {
599 if (function_ptr == static_cast<const typename coal::ConvexBaseTpl <_IndexType >::Base & (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::base))
600 return (boost::python::arg("self"));
601 return (boost::python::arg("self"));
602 }
603
604 template <typename _IndexType>
605 inline const char* member_func_doc ( coal::ConvexBaseTpl <_IndexType > & (coal::ConvexBaseTpl <_IndexType >::*function_ptr) (const coal::ConvexBaseTpl <_IndexType > &))
606 {
607 if (function_ptr == static_cast< coal::ConvexBaseTpl <_IndexType > & (coal::ConvexBaseTpl <_IndexType >::*) (const coal::ConvexBaseTpl <_IndexType > &)>(&coal::ConvexBaseTpl <_IndexType >::operator=))
608 return "Copy assignment operator. The copy assignment operator shallow copies the data, just as the copy constructor. ";
609 return "";
610 }
611
612 template <typename _IndexType>
613 inline boost::python::detail::keywords<2> member_func_args ( coal::ConvexBaseTpl <_IndexType > & (coal::ConvexBaseTpl <_IndexType >::*function_ptr) (const coal::ConvexBaseTpl <_IndexType > &))
614 {
615 if (function_ptr == static_cast< coal::ConvexBaseTpl <_IndexType > & (coal::ConvexBaseTpl <_IndexType >::*) (const coal::ConvexBaseTpl <_IndexType > &)>(&coal::ConvexBaseTpl <_IndexType >::operator=))
616 return (boost::python::arg("self"), boost::python::arg("other"));
617 return (boost::python::arg("self"), boost::python::arg("arg0"));
618 }
619
620 template <typename _IndexType>
621 20 inline const char* member_func_doc ( coal::ConvexBaseTpl <_IndexType > * (coal::ConvexBaseTpl <_IndexType >::*function_ptr) () const)
622 {
623
2/6
✓ Branch 0 taken 10 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
20 if (function_ptr == static_cast< coal::ConvexBaseTpl <_IndexType > * (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::clone))
624 20 return "Clone (deep copy). ";
625 if (function_ptr == static_cast< coal::ConvexBaseTpl <_IndexType > * (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::deepcopy))
626 return "Deep copy of the coal::ConvexBaseTpl. This method deep copies every field of the class. ";
627 return "";
628 }
629
630 template <typename _IndexType>
631 inline boost::python::detail::keywords<1> member_func_args ( coal::ConvexBaseTpl <_IndexType > * (coal::ConvexBaseTpl <_IndexType >::*function_ptr) () const)
632 {
633 if (function_ptr == static_cast< coal::ConvexBaseTpl <_IndexType > * (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::clone))
634 return (boost::python::arg("self"));
635 if (function_ptr == static_cast< coal::ConvexBaseTpl <_IndexType > * (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::deepcopy))
636 return (boost::python::arg("self"));
637 return (boost::python::arg("self"));
638 }
639
640 template <typename _IndexType, typename OtherIndexType>
641 inline const char* member_func_doc ( coal::ConvexBaseTpl < OtherIndexType > (coal::ConvexBaseTpl <_IndexType >::*function_ptr) () const)
642 {
643 if (function_ptr == static_cast< coal::ConvexBaseTpl < OtherIndexType > (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::cast))
644 return "Cast this ConvexBase vertex indices to OtherIndexType. This effectively deep copies this coal::ConvexBaseTpl into a new one. ";
645 return "";
646 }
647
648 template <typename _IndexType, typename OtherIndexType>
649 inline boost::python::detail::keywords<1> member_func_args ( coal::ConvexBaseTpl < OtherIndexType > (coal::ConvexBaseTpl <_IndexType >::*function_ptr) () const)
650 {
651 if (function_ptr == static_cast< coal::ConvexBaseTpl < OtherIndexType > (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::cast))
652 return (boost::python::arg("self"));
653 return (boost::python::arg("self"));
654 }
655
656 template <typename _IndexType>
657 inline const char* member_func_doc (void (coal::ConvexBaseTpl <_IndexType >::*function_ptr) ())
658 {
659 if (function_ptr == static_cast<void (coal::ConvexBaseTpl <_IndexType >::*) ()>(&coal::ConvexBaseTpl <_IndexType >::computeLocalAABB))
660 return "Compute coal::AABB. ";
661 return "";
662 }
663
664 template <typename _IndexType>
665 inline boost::python::detail::keywords<1> member_func_args (void (coal::ConvexBaseTpl <_IndexType >::*function_ptr) ())
666 {
667 if (function_ptr == static_cast<void (coal::ConvexBaseTpl <_IndexType >::*) ()>(&coal::ConvexBaseTpl <_IndexType >::computeLocalAABB))
668 return (boost::python::arg("self"));
669 return (boost::python::arg("self"));
670 }
671
672 template <typename _IndexType>
673 inline const char* member_func_doc ( coal::NODE_TYPE (coal::ConvexBaseTpl <_IndexType >::*function_ptr) () const)
674 {
675 if (function_ptr == static_cast< coal::NODE_TYPE (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::getNodeType))
676 return "Get node type: a convex polytope. ";
677 if (function_ptr == static_cast< coal::NODE_TYPE (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::getNodeType))
678 return "get the node type ";
679 if (function_ptr == static_cast< coal::NODE_TYPE (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::getNodeType))
680 return "get the node type ";
681 return "";
682 }
683
684 template <typename _IndexType>
685 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::ConvexBaseTpl <_IndexType >::*function_ptr) () const)
686 {
687 if (function_ptr == static_cast< coal::NODE_TYPE (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::getNodeType))
688 return (boost::python::arg("self"));
689 if (function_ptr == static_cast< coal::NODE_TYPE (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::getNodeType))
690 return (boost::python::arg("self"));
691 if (function_ptr == static_cast< coal::NODE_TYPE (coal::ConvexBaseTpl <_IndexType >::*) () const>(&coal::ConvexBaseTpl <_IndexType >::getNodeType))
692 return (boost::python::arg("self"));
693 return (boost::python::arg("self"));
694 }
695
696 template <typename _IndexType>
697 inline const char* member_func_doc ( typename coal::ConvexBaseTpl <_IndexType >::IndexType (coal::ConvexBaseTpl <_IndexType >::*function_ptr) ( typename coal::ConvexBaseTpl <_IndexType >::IndexType, typename coal::ConvexBaseTpl <_IndexType >::IndexType) const)
698 {
699 if (function_ptr == static_cast< typename coal::ConvexBaseTpl <_IndexType >::IndexType (coal::ConvexBaseTpl <_IndexType >::*) ( typename coal::ConvexBaseTpl <_IndexType >::IndexType, typename coal::ConvexBaseTpl <_IndexType >::IndexType) const>(&coal::ConvexBaseTpl <_IndexType >::neighbor))
700 return "Get the index of the j-th neighbor of the i-th vertex. ";
701 return "";
702 }
703
704 template <typename _IndexType>
705 inline boost::python::detail::keywords<3> member_func_args ( typename coal::ConvexBaseTpl <_IndexType >::IndexType (coal::ConvexBaseTpl <_IndexType >::*function_ptr) ( typename coal::ConvexBaseTpl <_IndexType >::IndexType, typename coal::ConvexBaseTpl <_IndexType >::IndexType) const)
706 {
707 if (function_ptr == static_cast< typename coal::ConvexBaseTpl <_IndexType >::IndexType (coal::ConvexBaseTpl <_IndexType >::*) ( typename coal::ConvexBaseTpl <_IndexType >::IndexType, typename coal::ConvexBaseTpl <_IndexType >::IndexType) const>(&coal::ConvexBaseTpl <_IndexType >::neighbor))
708 return (boost::python::arg("self"), boost::python::arg("i"), boost::python::arg("j"));
709 return (boost::python::arg("self"), boost::python::arg("arg0"), boost::python::arg("arg1"));
710 }
711 } // namespace doxygen
712 #include <coal/shape/geometric_shapes.h>
713
714 namespace doxygen {
715
716 template <typename _IndexType>
717 inline const char* member_func_doc (bool (coal::ConvexBaseTplNeighbors <_IndexType >::*function_ptr) (const coal::ConvexBaseTplNeighbors <_IndexType > &) const)
718 {
719 if (function_ptr == static_cast<bool (coal::ConvexBaseTplNeighbors <_IndexType >::*) (const coal::ConvexBaseTplNeighbors <_IndexType > &) const>(&coal::ConvexBaseTplNeighbors <_IndexType >::operator==))
720 return "";
721 if (function_ptr == static_cast<bool (coal::ConvexBaseTplNeighbors <_IndexType >::*) (const coal::ConvexBaseTplNeighbors <_IndexType > &) const>(&coal::ConvexBaseTplNeighbors <_IndexType >::operator!=))
722 return "";
723 return "";
724 }
725
726 template <typename _IndexType>
727 inline boost::python::detail::keywords<2> member_func_args (bool (coal::ConvexBaseTplNeighbors <_IndexType >::*function_ptr) (const coal::ConvexBaseTplNeighbors <_IndexType > &) const)
728 {
729 if (function_ptr == static_cast<bool (coal::ConvexBaseTplNeighbors <_IndexType >::*) (const coal::ConvexBaseTplNeighbors <_IndexType > &) const>(&coal::ConvexBaseTplNeighbors <_IndexType >::operator==))
730 return (boost::python::arg("self"), boost::python::arg("other"));
731 if (function_ptr == static_cast<bool (coal::ConvexBaseTplNeighbors <_IndexType >::*) (const coal::ConvexBaseTplNeighbors <_IndexType > &) const>(&coal::ConvexBaseTplNeighbors <_IndexType >::operator!=))
732 return (boost::python::arg("self"), boost::python::arg("other"));
733 return (boost::python::arg("self"), boost::python::arg("arg0"));
734 }
735 } // namespace doxygen
736 #include <coal/shape/geometric_shapes.h>
737
738 namespace doxygen {
739
740 template <typename _IndexType, typename OtherIndexType>
741 inline const char* member_func_doc ( coal::ConvexBaseTplSupportWarmStartPolytope < OtherIndexType > (coal::ConvexBaseTplSupportWarmStartPolytope <_IndexType >::*function_ptr) () const)
742 {
743 if (function_ptr == static_cast< coal::ConvexBaseTplSupportWarmStartPolytope < OtherIndexType > (coal::ConvexBaseTplSupportWarmStartPolytope <_IndexType >::*) () const>(&coal::ConvexBaseTplSupportWarmStartPolytope <_IndexType >::cast))
744 return "";
745 return "";
746 }
747
748 template <typename _IndexType, typename OtherIndexType>
749 inline boost::python::detail::keywords<1> member_func_args ( coal::ConvexBaseTplSupportWarmStartPolytope < OtherIndexType > (coal::ConvexBaseTplSupportWarmStartPolytope <_IndexType >::*function_ptr) () const)
750 {
751 if (function_ptr == static_cast< coal::ConvexBaseTplSupportWarmStartPolytope < OtherIndexType > (coal::ConvexBaseTplSupportWarmStartPolytope <_IndexType >::*) () const>(&coal::ConvexBaseTplSupportWarmStartPolytope <_IndexType >::cast))
752 return (boost::python::arg("self"));
753 return (boost::python::arg("self"));
754 }
755 } // namespace doxygen
756 #include <coal/shape/geometric_shapes.h>
757
758 namespace doxygen {
759
760 template <>
761 struct class_doc_impl< coal::Cylinder >
762 {
763 5 static inline const char* run ()
764 {
765 5 return "coal::Cylinder along Z axis. The cylinder is defined at its centroid. ";
766 }
767 10 static inline const char* attribute (const char* attrib)
768 {
769
2/2
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 5 times.
10 if (strcmp(attrib, "radius") == 0)
770 5 return "Radius of the cylinder. ";
771
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (strcmp(attrib, "halfLength") == 0)
772 5 return "Half Length along z axis. ";
773 (void)attrib; // turn off unused parameter warning.
774 return "";
775 }
776 };
777
778 template <>
779 struct constructor_0_impl< coal::Cylinder >
780 {
781 5 static inline const char* doc ()
782 {
783 5 return "Default constructor. ";
784 }
785 5 static inline boost::python::detail::keywords<0+1> args ()
786 {
787 5 return (boost::python::arg("self"));
788 }
789 };
790
791 template <>
792 struct constructor_2_impl< coal::Cylinder, coal::Scalar, coal::Scalar >
793 {
794 5 static inline const char* doc ()
795 {
796 5 return "";
797 }
798 5 static inline boost::python::detail::keywords<2+1> args ()
799 {
800
4/8
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
10 return (boost::python::arg("self"), boost::python::arg("radius_"), boost::python::arg("lz_"));
801 }
802 };
803
804 template <>
805 struct constructor_1_impl< coal::Cylinder, const coal::Cylinder & >
806 {
807 5 static inline const char* doc ()
808 {
809 5 return "";
810 }
811 5 static inline boost::python::detail::keywords<1+1> args ()
812 {
813
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("other"));
814 }
815 };
816
817 inline const char* member_func_doc ( coal::Cylinder & (coal::Cylinder::*function_ptr) (const coal::Cylinder &))
818 {
819 if (function_ptr == static_cast< coal::Cylinder & (coal::Cylinder::*) (const coal::Cylinder &)>(&coal::Cylinder::operator=))
820 return "";
821 return "";
822 }
823
824 inline boost::python::detail::keywords<2> member_func_args ( coal::Cylinder & (coal::Cylinder::*function_ptr) (const coal::Cylinder &))
825 {
826 if (function_ptr == static_cast< coal::Cylinder & (coal::Cylinder::*) (const coal::Cylinder &)>(&coal::Cylinder::operator=))
827 return (boost::python::arg("self"), boost::python::arg("other"));
828 return (boost::python::arg("self"), boost::python::arg("arg0"));
829 }
830
831 5 inline const char* member_func_doc ( coal::Cylinder * (coal::Cylinder::*function_ptr) () const)
832 {
833
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast< coal::Cylinder * (coal::Cylinder::*) () const>(&coal::Cylinder::clone))
834 5 return "Clone *this into a new coal::Cylinder. ";
835 return "";
836 }
837
838 inline boost::python::detail::keywords<1> member_func_args ( coal::Cylinder * (coal::Cylinder::*function_ptr) () const)
839 {
840 if (function_ptr == static_cast< coal::Cylinder * (coal::Cylinder::*) () const>(&coal::Cylinder::clone))
841 return (boost::python::arg("self"));
842 return (boost::python::arg("self"));
843 }
844
845 inline const char* member_func_doc (void (coal::Cylinder::*function_ptr) ())
846 {
847 if (function_ptr == static_cast<void (coal::Cylinder::*) ()>(&coal::Cylinder::computeLocalAABB))
848 return "Compute coal::AABB. ";
849 return "";
850 }
851
852 inline boost::python::detail::keywords<1> member_func_args (void (coal::Cylinder::*function_ptr) ())
853 {
854 if (function_ptr == static_cast<void (coal::Cylinder::*) ()>(&coal::Cylinder::computeLocalAABB))
855 return (boost::python::arg("self"));
856 return (boost::python::arg("self"));
857 }
858
859 inline const char* member_func_doc ( coal::NODE_TYPE (coal::Cylinder::*function_ptr) () const)
860 {
861 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Cylinder::*) () const>(&coal::Cylinder::getNodeType))
862 return "Get node type: a cylinder. ";
863 return "";
864 }
865
866 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::Cylinder::*function_ptr) () const)
867 {
868 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Cylinder::*) () const>(&coal::Cylinder::getNodeType))
869 return (boost::python::arg("self"));
870 return (boost::python::arg("self"));
871 }
872
873 inline const char* member_func_doc ( coal::Scalar (coal::Cylinder::*function_ptr) () const)
874 {
875 if (function_ptr == static_cast< coal::Scalar (coal::Cylinder::*) () const>(&coal::Cylinder::computeVolume))
876 return "compute the volume ";
877 if (function_ptr == static_cast< coal::Scalar (coal::Cylinder::*) () const>(&coal::Cylinder::minInflationValue))
878 return "";
879 return "";
880 }
881
882 inline boost::python::detail::keywords<1> member_func_args ( coal::Scalar (coal::Cylinder::*function_ptr) () const)
883 {
884 if (function_ptr == static_cast< coal::Scalar (coal::Cylinder::*) () const>(&coal::Cylinder::computeVolume))
885 return (boost::python::arg("self"));
886 if (function_ptr == static_cast< coal::Scalar (coal::Cylinder::*) () const>(&coal::Cylinder::minInflationValue))
887 return (boost::python::arg("self"));
888 return (boost::python::arg("self"));
889 }
890
891 inline const char* member_func_doc ( coal::Matrix3s (coal::Cylinder::*function_ptr) () const)
892 {
893 if (function_ptr == static_cast< coal::Matrix3s (coal::Cylinder::*) () const>(&coal::Cylinder::computeMomentofInertia))
894 return "compute the inertia matrix, related to the origin ";
895 return "";
896 }
897
898 inline boost::python::detail::keywords<1> member_func_args ( coal::Matrix3s (coal::Cylinder::*function_ptr) () const)
899 {
900 if (function_ptr == static_cast< coal::Matrix3s (coal::Cylinder::*) () const>(&coal::Cylinder::computeMomentofInertia))
901 return (boost::python::arg("self"));
902 return (boost::python::arg("self"));
903 }
904
905 inline const char* member_func_doc (std::pair< coal::Cylinder , coal::Transform3s > (coal::Cylinder::*function_ptr) (const coal::Scalar) const)
906 {
907 if (function_ptr == static_cast<std::pair< coal::Cylinder , coal::Transform3s > (coal::Cylinder::*) (const coal::Scalar) const>(&coal::Cylinder::inflated))
908 return "Inflate the cylinder by an amount given by value. This value can be positive or negative but must always >= minInflationValue(). \n"
909 "\n"
910 "\n"
911 "Param\n"
912 " - value of the shape inflation.\n"
913 "\n"
914 "Return: a new inflated cylinder and the related transform to account for the change of shape frame ";
915 return "";
916 }
917
918 inline boost::python::detail::keywords<2> member_func_args (std::pair< coal::Cylinder , coal::Transform3s > (coal::Cylinder::*function_ptr) (const coal::Scalar) const)
919 {
920 if (function_ptr == static_cast<std::pair< coal::Cylinder , coal::Transform3s > (coal::Cylinder::*) (const coal::Scalar) const>(&coal::Cylinder::inflated))
921 return (boost::python::arg("self"), boost::python::arg("value"));
922 return (boost::python::arg("self"), boost::python::arg("arg0"));
923 }
924 } // namespace doxygen
925 #include <coal/shape/geometric_shapes.h>
926
927 namespace doxygen {
928
929 template <>
930 struct class_doc_impl< coal::Ellipsoid >
931 {
932 5 static inline const char* run ()
933 {
934 5 return "coal::Ellipsoid centered at point zero. ";
935 }
936 5 static inline const char* attribute (const char* attrib)
937 {
938
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (strcmp(attrib, "radii") == 0)
939 return "Radii of the coal::Ellipsoid (such that on boundary: x^2/rx^2 + y^2/ry^2. \n"
940 "\n"
941 "\n"
942 5 "- z^2/rz^2 = 1) ";
943 (void)attrib; // turn off unused parameter warning.
944 return "";
945 }
946 };
947
948 template <>
949 struct constructor_0_impl< coal::Ellipsoid >
950 {
951 5 static inline const char* doc ()
952 {
953 5 return "Default constructor. ";
954 }
955 5 static inline boost::python::detail::keywords<0+1> args ()
956 {
957 5 return (boost::python::arg("self"));
958 }
959 };
960
961 template <>
962 struct constructor_3_impl< coal::Ellipsoid, coal::Scalar, coal::Scalar, coal::Scalar >
963 {
964 5 static inline const char* doc ()
965 {
966 5 return "";
967 }
968 5 static inline boost::python::detail::keywords<3+1> args ()
969 {
970
6/12
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
✓ Branch 14 taken 5 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 5 times.
✗ Branch 18 not taken.
10 return (boost::python::arg("self"), boost::python::arg("rx"), boost::python::arg("ry"), boost::python::arg("rz"));
971 }
972 };
973
974 template <>
975 struct constructor_1_impl< coal::Ellipsoid, const coal::Vec3s & >
976 {
977 static inline const char* doc ()
978 {
979 return "";
980 }
981 static inline boost::python::detail::keywords<1+1> args ()
982 {
983 return (boost::python::arg("self"), boost::python::arg("radii"));
984 }
985 };
986
987 template <>
988 struct constructor_1_impl< coal::Ellipsoid, const coal::Ellipsoid & >
989 {
990 5 static inline const char* doc ()
991 {
992 5 return "";
993 }
994 5 static inline boost::python::detail::keywords<1+1> args ()
995 {
996
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("other"));
997 }
998 };
999
1000 5 inline const char* member_func_doc ( coal::Ellipsoid * (coal::Ellipsoid::*function_ptr) () const)
1001 {
1002
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast< coal::Ellipsoid * (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::clone))
1003 5 return "Clone *this into a new coal::Ellipsoid. ";
1004 return "";
1005 }
1006
1007 inline boost::python::detail::keywords<1> member_func_args ( coal::Ellipsoid * (coal::Ellipsoid::*function_ptr) () const)
1008 {
1009 if (function_ptr == static_cast< coal::Ellipsoid * (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::clone))
1010 return (boost::python::arg("self"));
1011 return (boost::python::arg("self"));
1012 }
1013
1014 inline const char* member_func_doc (void (coal::Ellipsoid::*function_ptr) ())
1015 {
1016 if (function_ptr == static_cast<void (coal::Ellipsoid::*) ()>(&coal::Ellipsoid::computeLocalAABB))
1017 return "Compute coal::AABB. ";
1018 return "";
1019 }
1020
1021 inline boost::python::detail::keywords<1> member_func_args (void (coal::Ellipsoid::*function_ptr) ())
1022 {
1023 if (function_ptr == static_cast<void (coal::Ellipsoid::*) ()>(&coal::Ellipsoid::computeLocalAABB))
1024 return (boost::python::arg("self"));
1025 return (boost::python::arg("self"));
1026 }
1027
1028 inline const char* member_func_doc ( coal::NODE_TYPE (coal::Ellipsoid::*function_ptr) () const)
1029 {
1030 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::getNodeType))
1031 return "Get node type: an ellipsoid. ";
1032 return "";
1033 }
1034
1035 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::Ellipsoid::*function_ptr) () const)
1036 {
1037 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::getNodeType))
1038 return (boost::python::arg("self"));
1039 return (boost::python::arg("self"));
1040 }
1041
1042 inline const char* member_func_doc ( coal::Matrix3s (coal::Ellipsoid::*function_ptr) () const)
1043 {
1044 if (function_ptr == static_cast< coal::Matrix3s (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::computeMomentofInertia))
1045 return "compute the inertia matrix, related to the origin ";
1046 return "";
1047 }
1048
1049 inline boost::python::detail::keywords<1> member_func_args ( coal::Matrix3s (coal::Ellipsoid::*function_ptr) () const)
1050 {
1051 if (function_ptr == static_cast< coal::Matrix3s (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::computeMomentofInertia))
1052 return (boost::python::arg("self"));
1053 return (boost::python::arg("self"));
1054 }
1055
1056 inline const char* member_func_doc ( coal::Scalar (coal::Ellipsoid::*function_ptr) () const)
1057 {
1058 if (function_ptr == static_cast< coal::Scalar (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::computeVolume))
1059 return "compute the volume ";
1060 if (function_ptr == static_cast< coal::Scalar (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::minInflationValue))
1061 return "";
1062 return "";
1063 }
1064
1065 inline boost::python::detail::keywords<1> member_func_args ( coal::Scalar (coal::Ellipsoid::*function_ptr) () const)
1066 {
1067 if (function_ptr == static_cast< coal::Scalar (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::computeVolume))
1068 return (boost::python::arg("self"));
1069 if (function_ptr == static_cast< coal::Scalar (coal::Ellipsoid::*) () const>(&coal::Ellipsoid::minInflationValue))
1070 return (boost::python::arg("self"));
1071 return (boost::python::arg("self"));
1072 }
1073
1074 inline const char* member_func_doc (std::pair< coal::Ellipsoid , coal::Transform3s > (coal::Ellipsoid::*function_ptr) (const coal::Scalar) const)
1075 {
1076 if (function_ptr == static_cast<std::pair< coal::Ellipsoid , coal::Transform3s > (coal::Ellipsoid::*) (const coal::Scalar) const>(&coal::Ellipsoid::inflated))
1077 return "Inflate the ellipsoid by an amount given by value. This value can be positive or negative but must always >= minInflationValue(). \n"
1078 "\n"
1079 "\n"
1080 "Param\n"
1081 " - value of the shape inflation.\n"
1082 "\n"
1083 "Return: a new inflated ellipsoid and the related transform to account for the change of shape frame ";
1084 return "";
1085 }
1086
1087 inline boost::python::detail::keywords<2> member_func_args (std::pair< coal::Ellipsoid , coal::Transform3s > (coal::Ellipsoid::*function_ptr) (const coal::Scalar) const)
1088 {
1089 if (function_ptr == static_cast<std::pair< coal::Ellipsoid , coal::Transform3s > (coal::Ellipsoid::*) (const coal::Scalar) const>(&coal::Ellipsoid::inflated))
1090 return (boost::python::arg("self"), boost::python::arg("value"));
1091 return (boost::python::arg("self"), boost::python::arg("arg0"));
1092 }
1093 } // namespace doxygen
1094 #include <coal/shape/geometric_shapes.h>
1095
1096 namespace doxygen {
1097
1098 template <>
1099 struct class_doc_impl< coal::Halfspace >
1100 {
1101 5 static inline const char* run ()
1102 {
1103 5 return "Half Space: this is equivalent to the coal::Plane in ODE. A Half space has a priviledged direction: the direction of the normal. The separation plane is defined as n * x = d; Points in the negative side of the separation plane (i.e. {x | n * x < d}) are inside the half space and points in the positive side of the separation plane (i.e. {x | n * x > d}) are outside the half space. Note: prefer using a coal::Halfspace instead of a coal::Plane if possible, it has better behavior w.r.t. collision detection algorithms. ";
1104 }
1105 10 static inline const char* attribute (const char* attrib)
1106 {
1107
2/2
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 5 times.
10 if (strcmp(attrib, "n") == 0)
1108 5 return "coal::Plane normal. ";
1109
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (strcmp(attrib, "d") == 0)
1110 5 return "coal::Plane offset. ";
1111 (void)attrib; // turn off unused parameter warning.
1112 return "";
1113 }
1114 };
1115
1116 template <>
1117 struct constructor_2_impl< coal::Halfspace, const coal::Vec3s &, coal::Scalar >
1118 {
1119 5 static inline const char* doc ()
1120 {
1121 5 return "Construct a half space with normal direction and offset. ";
1122 }
1123 5 static inline boost::python::detail::keywords<2+1> args ()
1124 {
1125
4/8
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
10 return (boost::python::arg("self"), boost::python::arg("n_"), boost::python::arg("d_"));
1126 }
1127 };
1128
1129 template <>
1130 struct constructor_4_impl< coal::Halfspace, coal::Scalar, coal::Scalar, coal::Scalar, coal::Scalar >
1131 {
1132 5 static inline const char* doc ()
1133 {
1134 5 return "Construct a plane with normal direction and offset. ";
1135 }
1136 5 static inline boost::python::detail::keywords<4+1> args ()
1137 {
1138
8/16
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
✓ Branch 14 taken 5 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 5 times.
✗ Branch 18 not taken.
✓ Branch 20 taken 5 times.
✗ Branch 21 not taken.
✓ Branch 23 taken 5 times.
✗ Branch 24 not taken.
10 return (boost::python::arg("self"), boost::python::arg("a"), boost::python::arg("b"), boost::python::arg("c"), boost::python::arg("d_"));
1139 }
1140 };
1141
1142 template <>
1143 struct constructor_0_impl< coal::Halfspace >
1144 {
1145 5 static inline const char* doc ()
1146 {
1147 5 return "";
1148 }
1149 5 static inline boost::python::detail::keywords<0+1> args ()
1150 {
1151 5 return (boost::python::arg("self"));
1152 }
1153 };
1154
1155 template <>
1156 struct constructor_1_impl< coal::Halfspace, const coal::Halfspace & >
1157 {
1158 5 static inline const char* doc ()
1159 {
1160 5 return "";
1161 }
1162 5 static inline boost::python::detail::keywords<1+1> args ()
1163 {
1164
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("other"));
1165 }
1166 };
1167
1168 inline const char* member_func_doc ( coal::Halfspace & (coal::Halfspace::*function_ptr) (const coal::Halfspace &))
1169 {
1170 if (function_ptr == static_cast< coal::Halfspace & (coal::Halfspace::*) (const coal::Halfspace &)>(&coal::Halfspace::operator=))
1171 return "operator = ";
1172 return "";
1173 }
1174
1175 inline boost::python::detail::keywords<2> member_func_args ( coal::Halfspace & (coal::Halfspace::*function_ptr) (const coal::Halfspace &))
1176 {
1177 if (function_ptr == static_cast< coal::Halfspace & (coal::Halfspace::*) (const coal::Halfspace &)>(&coal::Halfspace::operator=))
1178 return (boost::python::arg("self"), boost::python::arg("other"));
1179 return (boost::python::arg("self"), boost::python::arg("arg0"));
1180 }
1181
1182 5 inline const char* member_func_doc ( coal::Halfspace * (coal::Halfspace::*function_ptr) () const)
1183 {
1184
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast< coal::Halfspace * (coal::Halfspace::*) () const>(&coal::Halfspace::clone))
1185 5 return "Clone *this into a new coal::Halfspace. ";
1186 return "";
1187 }
1188
1189 inline boost::python::detail::keywords<1> member_func_args ( coal::Halfspace * (coal::Halfspace::*function_ptr) () const)
1190 {
1191 if (function_ptr == static_cast< coal::Halfspace * (coal::Halfspace::*) () const>(&coal::Halfspace::clone))
1192 return (boost::python::arg("self"));
1193 return (boost::python::arg("self"));
1194 }
1195
1196 inline const char* member_func_doc ( coal::Scalar (coal::Halfspace::*function_ptr) (const coal::Vec3s &) const)
1197 {
1198 if (function_ptr == static_cast< coal::Scalar (coal::Halfspace::*) (const coal::Vec3s &) const>(&coal::Halfspace::signedDistance))
1199 return "";
1200 if (function_ptr == static_cast< coal::Scalar (coal::Halfspace::*) (const coal::Vec3s &) const>(&coal::Halfspace::distance))
1201 return "";
1202 return "";
1203 }
1204
1205 inline boost::python::detail::keywords<2> member_func_args ( coal::Scalar (coal::Halfspace::*function_ptr) (const coal::Vec3s &) const)
1206 {
1207 if (function_ptr == static_cast< coal::Scalar (coal::Halfspace::*) (const coal::Vec3s &) const>(&coal::Halfspace::signedDistance))
1208 return (boost::python::arg("self"), boost::python::arg("p"));
1209 if (function_ptr == static_cast< coal::Scalar (coal::Halfspace::*) (const coal::Vec3s &) const>(&coal::Halfspace::distance))
1210 return (boost::python::arg("self"), boost::python::arg("p"));
1211 return (boost::python::arg("self"), boost::python::arg("arg0"));
1212 }
1213
1214 inline const char* member_func_doc (void (coal::Halfspace::*function_ptr) ())
1215 {
1216 if (function_ptr == static_cast<void (coal::Halfspace::*) ()>(&coal::Halfspace::computeLocalAABB))
1217 return "Compute coal::AABB. ";
1218 return "";
1219 }
1220
1221 inline boost::python::detail::keywords<1> member_func_args (void (coal::Halfspace::*function_ptr) ())
1222 {
1223 if (function_ptr == static_cast<void (coal::Halfspace::*) ()>(&coal::Halfspace::computeLocalAABB))
1224 return (boost::python::arg("self"));
1225 return (boost::python::arg("self"));
1226 }
1227
1228 inline const char* member_func_doc ( coal::NODE_TYPE (coal::Halfspace::*function_ptr) () const)
1229 {
1230 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Halfspace::*) () const>(&coal::Halfspace::getNodeType))
1231 return "Get node type: a half space. ";
1232 return "";
1233 }
1234
1235 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::Halfspace::*function_ptr) () const)
1236 {
1237 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Halfspace::*) () const>(&coal::Halfspace::getNodeType))
1238 return (boost::python::arg("self"));
1239 return (boost::python::arg("self"));
1240 }
1241
1242 inline const char* member_func_doc ( coal::Scalar (coal::Halfspace::*function_ptr) () const)
1243 {
1244 if (function_ptr == static_cast< coal::Scalar (coal::Halfspace::*) () const>(&coal::Halfspace::minInflationValue))
1245 return "";
1246 return "";
1247 }
1248
1249 inline boost::python::detail::keywords<1> member_func_args ( coal::Scalar (coal::Halfspace::*function_ptr) () const)
1250 {
1251 if (function_ptr == static_cast< coal::Scalar (coal::Halfspace::*) () const>(&coal::Halfspace::minInflationValue))
1252 return (boost::python::arg("self"));
1253 return (boost::python::arg("self"));
1254 }
1255
1256 inline const char* member_func_doc (std::pair< coal::Halfspace , coal::Transform3s > (coal::Halfspace::*function_ptr) (const coal::Scalar) const)
1257 {
1258 if (function_ptr == static_cast<std::pair< coal::Halfspace , coal::Transform3s > (coal::Halfspace::*) (const coal::Scalar) const>(&coal::Halfspace::inflated))
1259 return "Inflate the halfspace by an amount given by value. This value can be positive or negative but must always >= minInflationValue(). \n"
1260 "\n"
1261 "\n"
1262 "Param\n"
1263 " - value of the shape inflation.\n"
1264 "\n"
1265 "Return: a new inflated halfspace and the related transform to account for the change of shape frame ";
1266 return "";
1267 }
1268
1269 inline boost::python::detail::keywords<2> member_func_args (std::pair< coal::Halfspace , coal::Transform3s > (coal::Halfspace::*function_ptr) (const coal::Scalar) const)
1270 {
1271 if (function_ptr == static_cast<std::pair< coal::Halfspace , coal::Transform3s > (coal::Halfspace::*) (const coal::Scalar) const>(&coal::Halfspace::inflated))
1272 return (boost::python::arg("self"), boost::python::arg("value"));
1273 return (boost::python::arg("self"), boost::python::arg("arg0"));
1274 }
1275 } // namespace doxygen
1276 #include <coal/shape/geometric_shapes.h>
1277
1278 namespace doxygen {
1279
1280 template <>
1281 struct class_doc_impl< coal::Plane >
1282 {
1283 5 static inline const char* run ()
1284 {
1285 5 return "Infinite plane. A plane can be viewed as two half spaces; it has no priviledged direction. Note: prefer using a coal::Halfspace instead of a coal::Plane if possible, it has better behavior w.r.t. collision detection algorithms. ";
1286 }
1287 10 static inline const char* attribute (const char* attrib)
1288 {
1289
2/2
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 5 times.
10 if (strcmp(attrib, "n") == 0)
1290 5 return "coal::Plane normal. ";
1291
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (strcmp(attrib, "d") == 0)
1292 5 return "coal::Plane offset. ";
1293 (void)attrib; // turn off unused parameter warning.
1294 return "";
1295 }
1296 };
1297
1298 template <>
1299 struct constructor_2_impl< coal::Plane, const coal::Vec3s &, coal::Scalar >
1300 {
1301 5 static inline const char* doc ()
1302 {
1303 5 return "Construct a plane with normal direction and offset. ";
1304 }
1305 5 static inline boost::python::detail::keywords<2+1> args ()
1306 {
1307
4/8
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
10 return (boost::python::arg("self"), boost::python::arg("n_"), boost::python::arg("d_"));
1308 }
1309 };
1310
1311 template <>
1312 struct constructor_4_impl< coal::Plane, coal::Scalar, coal::Scalar, coal::Scalar, coal::Scalar >
1313 {
1314 5 static inline const char* doc ()
1315 {
1316 5 return "Construct a plane with normal direction and offset. ";
1317 }
1318 5 static inline boost::python::detail::keywords<4+1> args ()
1319 {
1320
8/16
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
✓ Branch 14 taken 5 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 5 times.
✗ Branch 18 not taken.
✓ Branch 20 taken 5 times.
✗ Branch 21 not taken.
✓ Branch 23 taken 5 times.
✗ Branch 24 not taken.
10 return (boost::python::arg("self"), boost::python::arg("a"), boost::python::arg("b"), boost::python::arg("c"), boost::python::arg("d_"));
1321 }
1322 };
1323
1324 template <>
1325 struct constructor_0_impl< coal::Plane >
1326 {
1327 5 static inline const char* doc ()
1328 {
1329 5 return "";
1330 }
1331 5 static inline boost::python::detail::keywords<0+1> args ()
1332 {
1333 5 return (boost::python::arg("self"));
1334 }
1335 };
1336
1337 template <>
1338 struct constructor_1_impl< coal::Plane, const coal::Plane & >
1339 {
1340 5 static inline const char* doc ()
1341 {
1342 5 return "";
1343 }
1344 5 static inline boost::python::detail::keywords<1+1> args ()
1345 {
1346
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("other"));
1347 }
1348 };
1349
1350 inline const char* member_func_doc ( coal::Plane & (coal::Plane::*function_ptr) (const coal::Plane &))
1351 {
1352 if (function_ptr == static_cast< coal::Plane & (coal::Plane::*) (const coal::Plane &)>(&coal::Plane::operator=))
1353 return "operator = ";
1354 return "";
1355 }
1356
1357 inline boost::python::detail::keywords<2> member_func_args ( coal::Plane & (coal::Plane::*function_ptr) (const coal::Plane &))
1358 {
1359 if (function_ptr == static_cast< coal::Plane & (coal::Plane::*) (const coal::Plane &)>(&coal::Plane::operator=))
1360 return (boost::python::arg("self"), boost::python::arg("other"));
1361 return (boost::python::arg("self"), boost::python::arg("arg0"));
1362 }
1363
1364 5 inline const char* member_func_doc ( coal::Plane * (coal::Plane::*function_ptr) () const)
1365 {
1366
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast< coal::Plane * (coal::Plane::*) () const>(&coal::Plane::clone))
1367 5 return "Clone *this into a new coal::Plane. ";
1368 return "";
1369 }
1370
1371 inline boost::python::detail::keywords<1> member_func_args ( coal::Plane * (coal::Plane::*function_ptr) () const)
1372 {
1373 if (function_ptr == static_cast< coal::Plane * (coal::Plane::*) () const>(&coal::Plane::clone))
1374 return (boost::python::arg("self"));
1375 return (boost::python::arg("self"));
1376 }
1377
1378 inline const char* member_func_doc ( coal::Scalar (coal::Plane::*function_ptr) (const coal::Vec3s &) const)
1379 {
1380 if (function_ptr == static_cast< coal::Scalar (coal::Plane::*) (const coal::Vec3s &) const>(&coal::Plane::signedDistance))
1381 return "";
1382 if (function_ptr == static_cast< coal::Scalar (coal::Plane::*) (const coal::Vec3s &) const>(&coal::Plane::distance))
1383 return "";
1384 return "";
1385 }
1386
1387 inline boost::python::detail::keywords<2> member_func_args ( coal::Scalar (coal::Plane::*function_ptr) (const coal::Vec3s &) const)
1388 {
1389 if (function_ptr == static_cast< coal::Scalar (coal::Plane::*) (const coal::Vec3s &) const>(&coal::Plane::signedDistance))
1390 return (boost::python::arg("self"), boost::python::arg("p"));
1391 if (function_ptr == static_cast< coal::Scalar (coal::Plane::*) (const coal::Vec3s &) const>(&coal::Plane::distance))
1392 return (boost::python::arg("self"), boost::python::arg("p"));
1393 return (boost::python::arg("self"), boost::python::arg("arg0"));
1394 }
1395
1396 inline const char* member_func_doc (void (coal::Plane::*function_ptr) ())
1397 {
1398 if (function_ptr == static_cast<void (coal::Plane::*) ()>(&coal::Plane::computeLocalAABB))
1399 return "Compute coal::AABB. ";
1400 return "";
1401 }
1402
1403 inline boost::python::detail::keywords<1> member_func_args (void (coal::Plane::*function_ptr) ())
1404 {
1405 if (function_ptr == static_cast<void (coal::Plane::*) ()>(&coal::Plane::computeLocalAABB))
1406 return (boost::python::arg("self"));
1407 return (boost::python::arg("self"));
1408 }
1409
1410 inline const char* member_func_doc ( coal::NODE_TYPE (coal::Plane::*function_ptr) () const)
1411 {
1412 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Plane::*) () const>(&coal::Plane::getNodeType))
1413 return "Get node type: a plane. ";
1414 return "";
1415 }
1416
1417 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::Plane::*function_ptr) () const)
1418 {
1419 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Plane::*) () const>(&coal::Plane::getNodeType))
1420 return (boost::python::arg("self"));
1421 return (boost::python::arg("self"));
1422 }
1423 } // namespace doxygen
1424 #include <coal/shape/geometric_shapes.h>
1425
1426 namespace doxygen {
1427
1428 template <>
1429 struct class_doc_impl< coal::ShapeBase >
1430 {
1431 10 static inline const char* run ()
1432 {
1433 10 return "Base class for all basic geometric shapes. ";
1434 }
1435 static inline const char* attribute (const char* attrib)
1436 {
1437 (void)attrib; // turn off unused parameter warning.
1438 return "";
1439 }
1440 };
1441
1442 template <>
1443 struct constructor_0_impl< coal::ShapeBase >
1444 {
1445 static inline const char* doc ()
1446 {
1447 return "";
1448 }
1449 static inline boost::python::detail::keywords<0+1> args ()
1450 {
1451 return (boost::python::arg("self"));
1452 }
1453 };
1454
1455 template <>
1456 struct constructor_1_impl< coal::ShapeBase, const coal::ShapeBase & >
1457 {
1458 static inline const char* doc ()
1459 {
1460 return "Copy constructor ";
1461 }
1462 static inline boost::python::detail::keywords<1+1> args ()
1463 {
1464 return (boost::python::arg("self"), boost::python::arg("other"));
1465 }
1466 };
1467
1468 template <>
1469 struct destructor_doc_impl < coal::ShapeBase >
1470 {
1471 static inline const char* run ()
1472 {
1473 return "";
1474 }
1475 };
1476
1477 inline const char* member_func_doc ( coal::ShapeBase & (coal::ShapeBase::*function_ptr) (const coal::ShapeBase &))
1478 {
1479 if (function_ptr == static_cast< coal::ShapeBase & (coal::ShapeBase::*) (const coal::ShapeBase &)>(&coal::ShapeBase::operator=))
1480 return "";
1481 return "";
1482 }
1483
1484 inline boost::python::detail::keywords<2> member_func_args ( coal::ShapeBase & (coal::ShapeBase::*function_ptr) (const coal::ShapeBase &))
1485 {
1486 if (function_ptr == static_cast< coal::ShapeBase & (coal::ShapeBase::*) (const coal::ShapeBase &)>(&coal::ShapeBase::operator=))
1487 return (boost::python::arg("self"), boost::python::arg("other"));
1488 return (boost::python::arg("self"), boost::python::arg("arg0"));
1489 }
1490
1491 inline const char* member_func_doc ( coal::OBJECT_TYPE (coal::ShapeBase::*function_ptr) () const)
1492 {
1493 if (function_ptr == static_cast< coal::OBJECT_TYPE (coal::ShapeBase::*) () const>(&coal::ShapeBase::getObjectType))
1494 return "Get object type: a geometric shape. ";
1495 return "";
1496 }
1497
1498 inline boost::python::detail::keywords<1> member_func_args ( coal::OBJECT_TYPE (coal::ShapeBase::*function_ptr) () const)
1499 {
1500 if (function_ptr == static_cast< coal::OBJECT_TYPE (coal::ShapeBase::*) () const>(&coal::ShapeBase::getObjectType))
1501 return (boost::python::arg("self"));
1502 return (boost::python::arg("self"));
1503 }
1504
1505 inline const char* member_func_doc (void (coal::ShapeBase::*function_ptr) ( coal::Scalar))
1506 {
1507 if (function_ptr == static_cast<void (coal::ShapeBase::*) ( coal::Scalar)>(&coal::ShapeBase::setSweptSphereRadius))
1508 return "Set radius of sphere swept around the shape. Must be >= 0. ";
1509 return "";
1510 }
1511
1512 inline boost::python::detail::keywords<2> member_func_args (void (coal::ShapeBase::*function_ptr) ( coal::Scalar))
1513 {
1514 if (function_ptr == static_cast<void (coal::ShapeBase::*) ( coal::Scalar)>(&coal::ShapeBase::setSweptSphereRadius))
1515 return (boost::python::arg("self"), boost::python::arg("radius"));
1516 return (boost::python::arg("self"), boost::python::arg("arg0"));
1517 }
1518
1519 inline const char* member_func_doc ( coal::Scalar (coal::ShapeBase::*function_ptr) () const)
1520 {
1521 if (function_ptr == static_cast< coal::Scalar (coal::ShapeBase::*) () const>(&coal::ShapeBase::getSweptSphereRadius))
1522 return "Get radius of sphere swept around the shape. This radius is always >= 0. ";
1523 return "";
1524 }
1525
1526 inline boost::python::detail::keywords<1> member_func_args ( coal::Scalar (coal::ShapeBase::*function_ptr) () const)
1527 {
1528 if (function_ptr == static_cast< coal::Scalar (coal::ShapeBase::*) () const>(&coal::ShapeBase::getSweptSphereRadius))
1529 return (boost::python::arg("self"));
1530 return (boost::python::arg("self"));
1531 }
1532 } // namespace doxygen
1533 #include <coal/shape/geometric_shapes.h>
1534
1535 namespace doxygen {
1536
1537 template <>
1538 struct class_doc_impl< coal::Sphere >
1539 {
1540 5 static inline const char* run ()
1541 {
1542 5 return "Center at zero point sphere. ";
1543 }
1544 5 static inline const char* attribute (const char* attrib)
1545 {
1546
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (strcmp(attrib, "radius") == 0)
1547 5 return "Radius of the sphere. ";
1548 (void)attrib; // turn off unused parameter warning.
1549 return "";
1550 }
1551 };
1552
1553 template <>
1554 struct constructor_0_impl< coal::Sphere >
1555 {
1556 5 static inline const char* doc ()
1557 {
1558 5 return "Default constructor. ";
1559 }
1560 5 static inline boost::python::detail::keywords<0+1> args ()
1561 {
1562 5 return (boost::python::arg("self"));
1563 }
1564 };
1565
1566 template <>
1567 struct constructor_1_impl< coal::Sphere, coal::Scalar >
1568 {
1569 5 static inline const char* doc ()
1570 {
1571 5 return "";
1572 }
1573 5 static inline boost::python::detail::keywords<1+1> args ()
1574 {
1575
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("radius_"));
1576 }
1577 };
1578
1579 template <>
1580 struct constructor_1_impl< coal::Sphere, const coal::Sphere & >
1581 {
1582 5 static inline const char* doc ()
1583 {
1584 5 return "";
1585 }
1586 5 static inline boost::python::detail::keywords<1+1> args ()
1587 {
1588
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("other"));
1589 }
1590 };
1591
1592 5 inline const char* member_func_doc ( coal::Sphere * (coal::Sphere::*function_ptr) () const)
1593 {
1594
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast< coal::Sphere * (coal::Sphere::*) () const>(&coal::Sphere::clone))
1595 5 return "Clone *this into a new coal::Sphere. ";
1596 return "";
1597 }
1598
1599 inline boost::python::detail::keywords<1> member_func_args ( coal::Sphere * (coal::Sphere::*function_ptr) () const)
1600 {
1601 if (function_ptr == static_cast< coal::Sphere * (coal::Sphere::*) () const>(&coal::Sphere::clone))
1602 return (boost::python::arg("self"));
1603 return (boost::python::arg("self"));
1604 }
1605
1606 inline const char* member_func_doc (void (coal::Sphere::*function_ptr) ())
1607 {
1608 if (function_ptr == static_cast<void (coal::Sphere::*) ()>(&coal::Sphere::computeLocalAABB))
1609 return "Compute coal::AABB. ";
1610 return "";
1611 }
1612
1613 inline boost::python::detail::keywords<1> member_func_args (void (coal::Sphere::*function_ptr) ())
1614 {
1615 if (function_ptr == static_cast<void (coal::Sphere::*) ()>(&coal::Sphere::computeLocalAABB))
1616 return (boost::python::arg("self"));
1617 return (boost::python::arg("self"));
1618 }
1619
1620 inline const char* member_func_doc ( coal::NODE_TYPE (coal::Sphere::*function_ptr) () const)
1621 {
1622 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Sphere::*) () const>(&coal::Sphere::getNodeType))
1623 return "Get node type: a sphere. ";
1624 return "";
1625 }
1626
1627 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::Sphere::*function_ptr) () const)
1628 {
1629 if (function_ptr == static_cast< coal::NODE_TYPE (coal::Sphere::*) () const>(&coal::Sphere::getNodeType))
1630 return (boost::python::arg("self"));
1631 return (boost::python::arg("self"));
1632 }
1633
1634 inline const char* member_func_doc ( coal::Matrix3s (coal::Sphere::*function_ptr) () const)
1635 {
1636 if (function_ptr == static_cast< coal::Matrix3s (coal::Sphere::*) () const>(&coal::Sphere::computeMomentofInertia))
1637 return "compute the inertia matrix, related to the origin ";
1638 return "";
1639 }
1640
1641 inline boost::python::detail::keywords<1> member_func_args ( coal::Matrix3s (coal::Sphere::*function_ptr) () const)
1642 {
1643 if (function_ptr == static_cast< coal::Matrix3s (coal::Sphere::*) () const>(&coal::Sphere::computeMomentofInertia))
1644 return (boost::python::arg("self"));
1645 return (boost::python::arg("self"));
1646 }
1647
1648 inline const char* member_func_doc ( coal::Scalar (coal::Sphere::*function_ptr) () const)
1649 {
1650 if (function_ptr == static_cast< coal::Scalar (coal::Sphere::*) () const>(&coal::Sphere::computeVolume))
1651 return "compute the volume ";
1652 if (function_ptr == static_cast< coal::Scalar (coal::Sphere::*) () const>(&coal::Sphere::minInflationValue))
1653 return "";
1654 return "";
1655 }
1656
1657 inline boost::python::detail::keywords<1> member_func_args ( coal::Scalar (coal::Sphere::*function_ptr) () const)
1658 {
1659 if (function_ptr == static_cast< coal::Scalar (coal::Sphere::*) () const>(&coal::Sphere::computeVolume))
1660 return (boost::python::arg("self"));
1661 if (function_ptr == static_cast< coal::Scalar (coal::Sphere::*) () const>(&coal::Sphere::minInflationValue))
1662 return (boost::python::arg("self"));
1663 return (boost::python::arg("self"));
1664 }
1665
1666 inline const char* member_func_doc (std::pair< coal::Sphere , coal::Transform3s > (coal::Sphere::*function_ptr) (const coal::Scalar) const)
1667 {
1668 if (function_ptr == static_cast<std::pair< coal::Sphere , coal::Transform3s > (coal::Sphere::*) (const coal::Scalar) const>(&coal::Sphere::inflated))
1669 return "Inflate the sphere by an amount given by value. This value can be positive or negative but must always >= minInflationValue(). \n"
1670 "\n"
1671 "\n"
1672 "Param\n"
1673 " - value of the shape inflation.\n"
1674 "\n"
1675 "Return: a new inflated sphere and the related transform to account for the change of shape frame ";
1676 return "";
1677 }
1678
1679 inline boost::python::detail::keywords<2> member_func_args (std::pair< coal::Sphere , coal::Transform3s > (coal::Sphere::*function_ptr) (const coal::Scalar) const)
1680 {
1681 if (function_ptr == static_cast<std::pair< coal::Sphere , coal::Transform3s > (coal::Sphere::*) (const coal::Scalar) const>(&coal::Sphere::inflated))
1682 return (boost::python::arg("self"), boost::python::arg("value"));
1683 return (boost::python::arg("self"), boost::python::arg("arg0"));
1684 }
1685 } // namespace doxygen
1686 #include <coal/shape/geometric_shapes.h>
1687
1688 namespace doxygen {
1689
1690 template <>
1691 struct class_doc_impl< coal::TriangleP >
1692 {
1693 5 static inline const char* run ()
1694 {
1695 5 return "Triangle stores the points instead of only indices of points. ";
1696 }
1697 15 static inline const char* attribute (const char* attrib)
1698 {
1699 (void)attrib; // turn off unused parameter warning.
1700 15 return "";
1701 }
1702 };
1703
1704 template <>
1705 struct constructor_0_impl< coal::TriangleP >
1706 {
1707 5 static inline const char* doc ()
1708 {
1709 5 return "";
1710 }
1711 5 static inline boost::python::detail::keywords<0+1> args ()
1712 {
1713 5 return (boost::python::arg("self"));
1714 }
1715 };
1716
1717 template <>
1718 struct constructor_3_impl< coal::TriangleP, const coal::Vec3s &, const coal::Vec3s &, const coal::Vec3s & >
1719 {
1720 5 static inline const char* doc ()
1721 {
1722 5 return "";
1723 }
1724 5 static inline boost::python::detail::keywords<3+1> args ()
1725 {
1726
6/12
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 12 not taken.
✓ Branch 14 taken 5 times.
✗ Branch 15 not taken.
✓ Branch 17 taken 5 times.
✗ Branch 18 not taken.
10 return (boost::python::arg("self"), boost::python::arg("a_"), boost::python::arg("b_"), boost::python::arg("c_"));
1727 }
1728 };
1729
1730 template <>
1731 struct constructor_1_impl< coal::TriangleP, const coal::TriangleP & >
1732 {
1733 5 static inline const char* doc ()
1734 {
1735 5 return "";
1736 }
1737 5 static inline boost::python::detail::keywords<1+1> args ()
1738 {
1739
2/4
✓ Branch 2 taken 5 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 5 times.
✗ Branch 6 not taken.
10 return (boost::python::arg("self"), boost::python::arg("other"));
1740 }
1741 };
1742
1743 5 inline const char* member_func_doc ( coal::TriangleP * (coal::TriangleP::*function_ptr) () const)
1744 {
1745
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast< coal::TriangleP * (coal::TriangleP::*) () const>(&coal::TriangleP::clone))
1746 5 return "Clone *this into a new coal::TriangleP. ";
1747 return "";
1748 }
1749
1750 inline boost::python::detail::keywords<1> member_func_args ( coal::TriangleP * (coal::TriangleP::*function_ptr) () const)
1751 {
1752 if (function_ptr == static_cast< coal::TriangleP * (coal::TriangleP::*) () const>(&coal::TriangleP::clone))
1753 return (boost::python::arg("self"));
1754 return (boost::python::arg("self"));
1755 }
1756
1757 inline const char* member_func_doc (void (coal::TriangleP::*function_ptr) ())
1758 {
1759 if (function_ptr == static_cast<void (coal::TriangleP::*) ()>(&coal::TriangleP::computeLocalAABB))
1760 return "virtual function of compute coal::AABB in local coordinate ";
1761 return "";
1762 }
1763
1764 inline boost::python::detail::keywords<1> member_func_args (void (coal::TriangleP::*function_ptr) ())
1765 {
1766 if (function_ptr == static_cast<void (coal::TriangleP::*) ()>(&coal::TriangleP::computeLocalAABB))
1767 return (boost::python::arg("self"));
1768 return (boost::python::arg("self"));
1769 }
1770
1771 inline const char* member_func_doc ( coal::NODE_TYPE (coal::TriangleP::*function_ptr) () const)
1772 {
1773 if (function_ptr == static_cast< coal::NODE_TYPE (coal::TriangleP::*) () const>(&coal::TriangleP::getNodeType))
1774 return "get the node type ";
1775 return "";
1776 }
1777
1778 inline boost::python::detail::keywords<1> member_func_args ( coal::NODE_TYPE (coal::TriangleP::*function_ptr) () const)
1779 {
1780 if (function_ptr == static_cast< coal::NODE_TYPE (coal::TriangleP::*) () const>(&coal::TriangleP::getNodeType))
1781 return (boost::python::arg("self"));
1782 return (boost::python::arg("self"));
1783 }
1784 } // namespace doxygen
1785
1786 #endif // DOXYGEN_AUTODOC_COAL_SHAPE_GEOMETRIC_SHAPES_H
1787
1788