~ubuntu-branches/debian/jessie/yade/jessie

« back to all changes in this revision

Viewing changes to pkg/common/Bo1_Aabb.hpp

  • Committer: Package Import Robot
  • Author(s): Anton Gladky
  • Date: 2014-08-04 19:34:58 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20140804193458-cw8qhnujxe9wzi15
Tags: 1.11.0-1
* [a0600ae] Imported Upstream version 1.11.0
* [a3055e0] Do not use parallel build on kfreebsd-amd64 and s390x.
* [f86b405] Remove applied patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*************************************************************************
 
2
*  Copyright (C) 2004 by Olivier Galizzi                                 *
 
3
*  olivier.galizzi@imag.fr                                               *
 
4
*                                                                        *
 
5
*  This program is free software; it is licensed under the terms of the  *
 
6
*  GNU General Public License v2 or later. See file LICENSE for details. *
 
7
*************************************************************************/
 
8
 
 
9
#pragma once
 
10
 
 
11
#include <yade/pkg/common/Dispatching.hpp>
 
12
#include <yade/pkg/common/Aabb.hpp>
 
13
#include <yade/pkg/common/Sphere.hpp>
 
14
#include <yade/pkg/common/Facet.hpp>
 
15
#include <yade/pkg/common/Box.hpp>
 
16
 
 
17
class Bo1_Sphere_Aabb : public BoundFunctor
 
18
{
 
19
        public :
 
20
                void go(const shared_ptr<Shape>& cm, shared_ptr<Bound>& bv, const Se3r&, const Body*);
 
21
        FUNCTOR1D(Sphere);
 
22
        YADE_CLASS_BASE_DOC_ATTRS(Bo1_Sphere_Aabb,BoundFunctor,"Functor creating :yref:`Aabb` from :yref:`Sphere`.",
 
23
                ((Real,aabbEnlargeFactor,((void)"deactivated",-1),,"Relative enlargement of the bounding box; deactivated if negative.\n\n.. note::\n\tThis attribute is used to create distant interaction, but is only meaningful with an :yref:`IGeomFunctor` which will not simply discard such interactions: :yref:`Ig2_Sphere_Sphere_ScGeom::interactionDetectionFactor` should have the same value as :yref:`aabbEnlargeFactor<Bo1_Sphere_Aabb::aabbEnlargeFactor>`."))
 
24
        );
 
25
};
 
26
 
 
27
REGISTER_SERIALIZABLE(Bo1_Sphere_Aabb);
 
28
 
 
29
 
 
30
/*************************************************************************
 
31
*  Copyright (C) 2008 by Sergei Dorofeenko                               *
 
32
*  sega@users.berlios.de                                                 *
 
33
*                                                                        *
 
34
*  This program is free software; it is licensed under the terms of the  *
 
35
*  GNU General Public License v2 or later. See file LICENSE for details. *
 
36
*************************************************************************/
 
37
 
 
38
class Bo1_Facet_Aabb : public BoundFunctor{
 
39
        public:
 
40
                void go(const shared_ptr<Shape>& cm, shared_ptr<Bound>& bv, const Se3r& se3, const Body*);
 
41
        FUNCTOR1D(Facet);
 
42
        YADE_CLASS_BASE_DOC(Bo1_Facet_Aabb,BoundFunctor,"Creates/updates an :yref:`Aabb` of a :yref:`Facet`.");
 
43
};
 
44
REGISTER_SERIALIZABLE(Bo1_Facet_Aabb);
 
45
 
 
46
 
 
47
/*************************************************************************
 
48
*  Copyright (C) 2004 by Janek Kozicki                                   *
 
49
*  cosurgi@berlios.de                                                    *
 
50
*                                                                        *
 
51
*  This program is free software; it is licensed under the terms of the  *
 
52
*  GNU General Public License v2 or later. See file LICENSE for details. *
 
53
*************************************************************************/
 
54
 
 
55
class Box;
 
56
class Bo1_Box_Aabb : public BoundFunctor{
 
57
        public:
 
58
                void go(const shared_ptr<Shape>& cm, shared_ptr<Bound>& bv, const Se3r& se3, const Body*);
 
59
        FUNCTOR1D(Box);
 
60
        YADE_CLASS_BASE_DOC(Bo1_Box_Aabb,BoundFunctor,"Create/update an :yref:`Aabb` of a :yref:`Box`.");
 
61
};
 
62
 
 
63
REGISTER_SERIALIZABLE(Bo1_Box_Aabb);
 
64
 
 
65
 
 
66