![]() |
GranOO
3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
|
#include <Sphere.hpp>

Public Member Functions | |
| Sphere () | |
| Sphere (double radius) | |
| Sphere (double radius, const Geom::Frame &frame) | |
| Sphere (const Sphere &) | |
| Sphere (const Sphere &, const Geom::Frame &) | |
| Sphere (const Geom::Frame &) | |
| virtual | ~Sphere () |
| void | make_equal_to (const Sphere &) |
| void | read_xml_element (const TiXmlElement *el) |
| virtual std::ostream & | write_ascii (std::ostream &out) const |
| virtual std::istream & | read_ascii (std::istream &in) |
| virtual void | to_vtk (vtkUnstructuredGrid *data) |
| std::string | info () const |
| void | update_bounding_box () |
| void | update_bounding_sphere () |
| double | get_greatest_dimension () const |
| AABB | aabb () const |
| Interference | locate (const Geom::Point &) const |
| Interference | locate (const Geom::Point &, double radius) const |
| bool | collide_inside (const Geom::Point &p1, double radius, Collision::Data &info) const |
| bool | collide_outside (const Geom::Point &p1, double radius, Collision::Data &info) const |
| Geom::Point | farthest_point_along (const Geom::Vector &) const |
| double | get_volume () const |
| void | compute_inertia_tensor (double density, Geom::Tensor &) const |
| void | draw_gl () const |
| void | scale (double) |
| std::ostream & | to_povray (std::ostream &out, const Core::Color &y) const |
Public Member Functions inherited from GranOO3::Shape::Volume | |
| Volume (const Geom::Frame &frame) | |
| virtual | ~Volume () |
| bool | is_surface () const |
| bool | is_volume () const |
| const Box & | get_bounding_box () const |
| const Sphere & | get_bounding_sphere () const |
| Box & | get_bounding_box () |
| Sphere & | get_bounding_sphere () |
| void | update_bounding_shape () |
| bool | is_bounding_shape () const |
| template<Interference T> | |
| bool | overlap (const Sphere &, Geom::Vector &normal, double &penetration) const |
| Interference | locate (const Sphere &) const |
| bool | collide_inside (const Geom::Point &, Collision::Data &) const |
| bool | collide_outside (const Geom::Point &, Collision::Data &) const |
| virtual bool | collide (const Volume &, Collision::Data &) const =0 |
| virtual bool | collide (const Sphere &, Collision::Data &) const =0 |
| virtual bool | collide (const Box &, Collision::Data &) const =0 |
| virtual bool | collide (const Cylinder &, Collision::Data &) const =0 |
| virtual bool | collide (const Cone &, Collision::Data &) const =0 |
| virtual bool | collide (const ConeTruncated &, Collision::Data &) const =0 |
| virtual bool | collide (const Polyhedron &, Collision::Data &) const =0 |
| const std::set< std::string > & | get_face_ID () const |
| template<> | |
| bool | overlap (const Sphere &s, Geom::Vector &normal, double &penetration) const |
| template<> | |
| bool | overlap (const Sphere &s, Geom::Vector &normal, double &penetration) const |
| template<> | |
| bool | overlap (const Sphere &s, Geom::Vector &normal, double &penetration) const |
Public Member Functions inherited from GranOO3::Shape::Base | |
| Base (const Geom::Frame &frame) | |
| virtual | ~Base () |
| virtual void | draw_gl_edge () const |
| void | unscale (double) |
| virtual void | add_glob (const std::string &)=0 |
| const Geom::Frame & | local_frame () const |
| const Geom::Point & | get_center () const |
| const Geom::Quaternion & | get_quaternion () const |
| const Geom::Vector & | get_position () const |
| void | translate (Geom::Vector &) |
| void | rotate (const Geom::Vector &axis, const double angleRadian) |
Static Public Member Functions | |
| static std::string | class_ID () |
| static std::string | desc () |
Static Public Member Functions inherited from GranOO3::Shape::Volume | |
| static std::string | class_ID () |
Static Public Member Functions inherited from GranOO3::Shape::Base | |
| static Base & | glob (const std::string &id) |
| static const Geom::Frame & | frame_buffer () |
| static std::string | class_ID () |
| static Base * | new_object (const TiXmlElement *el) |
Static Public Member Functions inherited from GranOO3::Core::ObjectFactoryInterface< Base, Sphere > | |
| static Base * | build () |
| static bool | record (const std::string &id, std::string file_name="", std::string desc="") |
Static Public Member Functions inherited from GranOO3::Core::ObjectFactory< BaseClass > | |
| static void | record (std::function< BaseClass *()>, const std::string &, const std::string file="", const std::string desc="") |
| static BaseClass * | new_object (const std::string &) |
| static std::vector< std::string > | get_ID () |
| static std::map< const std::string, std::function< BaseClass *()> > & | get_map () |
Private Member Functions | |
| Sphere & | operator= (const Sphere &) |
| template<class Archive > | |
| void | serialize (Archive &, const unsigned int) |
Private Attributes | |
| double | _radius |
Friends | |
| class | boost::serialization::access |
Additional Inherited Members | |
Protected Member Functions inherited from GranOO3::Shape::Volume | |
| template<typename T , typename ... Args> | |
| void | set_face_ID (const T &, Args... args) |
| template<typename T > | |
| void | set_face_ID (const T &) |
| void | copy_face_ID (const std::set< std::string > &) |
| void | add_face_ID (const std::string &) |
Protected Member Functions inherited from GranOO3::Core::ObjectFactoryInterface< Base, Sphere > | |
| ObjectFactoryInterface () | |
| virtual | ~ObjectFactoryInterface () |
Protected Member Functions inherited from GranOO3::Core::ObjectFactory< BaseClass > | |
| ObjectFactory () | |
| virtual | ~ObjectFactory () |
Protected Attributes inherited from GranOO3::Shape::Base | |
| const Geom::Frame & | _frame |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
inlinevirtual |
Implements GranOO3::Shape::Volume.
|
inlinestatic |
|
virtual |
Implements GranOO3::Shape::Volume.
|
virtual |
Implements GranOO3::Shape::Volume.
|
inlinevirtual |
Implements GranOO3::Shape::Volume.
|
static |
|
virtual |
Implements GranOO3::Shape::Base.
|
virtual |
Implements GranOO3::Shape::Volume.
|
inlinevirtual |
Implements GranOO3::Shape::Volume.
|
inlinevirtual |
Implements GranOO3::Shape::Volume.
Reimplemented in GranOO3::DEM::ElementT< Shape::Sphere >.
|
virtual |
Reimplemented from GranOO3::Shape::Base.
Reimplemented in GranOO3::DEM::ElementT< Shape::Sphere >.
|
virtual |
Implements GranOO3::Shape::Volume.
|
virtual |
Implements GranOO3::Shape::Volume.
| void GranOO3::Shape::Sphere::make_equal_to | ( | const Sphere & | ) |
|
virtual |
Reimplemented from GranOO3::Shape::Base.
Reimplemented in GranOO3::DEM::ElementT< Shape::Sphere >, and GranOO3::DEM::DiscreteElement.
|
virtual |
Reimplemented from GranOO3::Shape::Base.
|
virtual |
Implements GranOO3::Shape::Base.
|
inlineprivate |
|
virtual |
Reimplemented from GranOO3::Shape::Base.
|
virtual |
Reimplemented from GranOO3::Shape::Base.
|
virtual |
Implements GranOO3::Shape::Volume.
|
virtual |
Implements GranOO3::Shape::Volume.
|
virtual |
Reimplemented from GranOO3::Shape::Base.
Reimplemented in GranOO3::DEM::DiscreteElement, and GranOO3::DEM::ElementT< Shape::Sphere >.
|
friend |
|
private |