GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Public Member Functions | Static Public Member Functions | Private Member Functions | Friends | List of all members
GranOO3::Physic::GroundT< shape > Class Template Reference

#include <GroundT.hpp>

Inheritance diagram for GranOO3::Physic::GroundT< shape >:
Inheritance graph
[legend]

Public Member Functions

 GroundT (const std::string &, const Geom::Point &p, const Geom::Quaternion &q)
 
 GroundT ()
 
virtual ~GroundT ()
 
virtual std::string info () const
 
void read_xml_element (const TiXmlElement *el)
 
virtual void draw ()
 
virtual void draw_edge ()
 
std::string shape_class_ID () const
 
const Geom::Framelocal_frame () const
 
virtual Shape::Baseto_base_shape ()
 
virtual const Shape::Baseto_base_shape () const
 
virtual std::ostream & write_ascii (std::ostream &out) const
 
virtual std::istream & read_ascii (std::istream &in)
 
- Public Member Functions inherited from GranOO3::Physic::Ground
 Ground (const std::string &id, const Geom::Point &p, const Geom::Quaternion &q)
 
virtual ~Ground ()
 
virtual void add_glob (const std::string &)=0
 
virtual std::ostream & export_to_povray (std::ostream &out) const
 
virtual Shape::Volumeto_volume_shape ()
 
virtual const Shape::Volumeto_volume_shape () const
 
virtual Shape::Surfaceto_surface_shape ()
 
virtual const Shape::Surfaceto_surface_shape () const
 
void apply_force (const Geom::Vector &)
 
void apply_force_at (const Geom::Vector &, const Geom::Point &)
 
void clear_force ()
 
void apply_torque (const Geom::Vector &)
 
void clear_torque ()
 
void incremental_move ()
 
Geom::Vector get_linear_velocity_at (const Geom::Point &) const
 
bool is_interact_with (const Node &) const
 
- Public Member Functions inherited from GranOO3::Core::Base
virtual ~Base ()
 
size_t numID () const
 
size_t uID () const
 
void set_numID (size_t val)
 
void clear_numID ()
 
Physic::Materialget_mat () const
 
void set_mat (Physic::Material *)
 
Baseitem ()
 
const Baseitem () const
 
bool is_same (const Base &) const
 
template<class T >
T & cast_to ()
 
template<class T >
const T & cast_to () const
 
template<class T >
bool is () const
 
virtual bool is (size_t) const
 
virtual const std::string & get_ID () const
 
virtual Baseclone ()
 
template<class T >
T & clone_to ()
 
Signal< Base & > & deleted_signal ()
 
- Public Member Functions inherited from GranOO3::Core::Null
 Null ()
 
virtual ~Null ()
 
- Public Member Functions inherited from GranOO3::Core::Drawable
 Drawable ()
 
virtual ~Drawable ()
 
virtual void init_default_color ()
 
virtual std::ostream & get_info (std::ostream &os) const
 
virtual const Colordefault_color () const
 
Colorget_color ()
 
const Colorget_color () const
 
virtual void set_color (const Color &)
 
virtual void set_alpha (float alpha)
 
void apply_color () const
 
void apply_edge_color () const
 
void apply_default_color ()
 
void apply_selected_color ()
 
void set_line_width (float)
 
float get_line_width () const
 
float & get_line_width ()
 
void apply_line_width () const
 
bool is_visible () const
 
void set_visible (bool)
 
void paint ()
 
void paint_edge ()
 
unsigned int get_item_glkey () const
 
- Public Member Functions inherited from GranOO3::Core::Register< Base >
 Register ()
 
virtual ~Register ()
 
void erase_from_all_setof ()
 
bool belong_to_setof (const std::string &setOfId) const
 
bool belong_to_setof (const SetOf< Base > &set) const
 
std::list< SetOf< Base > * > & get_setof_list ()
 
unsigned long long int get_numeric_ID () const
 
- Public Member Functions inherited from GranOO3::Core::Register< Ground >
 Register ()
 
virtual ~Register ()
 
void erase_from_all_setof ()
 
bool belong_to_setof (const std::string &setOfId) const
 
bool belong_to_setof (const SetOf< Ground > &set) const
 
std::list< SetOf< Ground > * > & get_setof_list ()
 
unsigned long long int get_numeric_ID () const
 
- Public Member Functions inherited from GranOO3::Core::Register< GroundT< shape > >
 Register ()
 
virtual ~Register ()
 
void erase_from_all_setof ()
 
bool belong_to_setof (const std::string &setOfId) const
 
bool belong_to_setof (const SetOf< GroundT< shape > > &set) const
 
std::list< SetOf< GroundT< shape > > * > & get_setof_list ()
 
unsigned long long int get_numeric_ID () const
 

Static Public Member Functions

static GroundT< shape > & get (const std::string &)
 
static bool exist (const std::string &)
 
- Static Public Member Functions inherited from GranOO3::Physic::Ground
static Groundget (std::string)
 
static bool exist (std::string)
 
static Groundglob (const std::string &id)
 
static Groundnew_object (const TiXmlElement *el)
 
- Static Public Member Functions inherited from GranOO3::Core::Base
static Baseget_by_numID (size_t)
 
static void clear_all_numID ()
 
static unsigned int get_sub_class_number ()
 
- Static Public Member Functions inherited from GranOO3::Core::Drawable
static Drawableget_drawable_item_by_glkey (int)
 
static void set_draw_precision (unsigned int p)
 
static void increase_draw_precision ()
 
static void decrease_draw_precision ()
 
static unsigned int get_draw_precision ()
 
- Static Public Member Functions inherited from GranOO3::Core::ObjectFactoryInterface< Ground, GroundT< shape > >
static Ground * 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

 GroundT (const GroundT &)=delete
 
GroundToperator= (const GroundT &)=delete
 
template<class Archive >
void serialize (Archive &, const unsigned int)
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Static Public Attributes inherited from GranOO3::Core::Null
static Null null = Null()
 
- Protected Member Functions inherited from GranOO3::Physic::Ground
 Ground ()
 
- Protected Member Functions inherited from GranOO3::Core::Base
 Base ()
 
- Protected Member Functions inherited from GranOO3::Core::ObjectFactoryInterface< Ground, GroundT< shape > >
 ObjectFactoryInterface ()
 
virtual ~ObjectFactoryInterface ()
 
- Protected Member Functions inherited from GranOO3::Core::ObjectFactory< BaseClass >
 ObjectFactory ()
 
virtual ~ObjectFactory ()
 
- Static Protected Member Functions inherited from GranOO3::Core::Base
static unsigned int affect_class_rank_ID ()
 
- Protected Attributes inherited from GranOO3::Physic::Ground
std::string _ID
 
Geom::Point _center
 
Geom::Vector_position
 
Geom::Quaternion _quat
 
Geom::Frame _frame
 
Geom::Vector _force
 
Geom::Vector _contact_force
 
Geom::Vector _torque
 
Geom::Vector _linear_velocity
 
Geom::Vector _angular_vel
 

Constructor & Destructor Documentation

◆ GroundT() [1/3]

template<class shape >
GranOO3::Physic::GroundT< shape >::GroundT ( const std::string &  ,
const Geom::Point p,
const Geom::Quaternion q 
)

◆ GroundT() [2/3]

template<class shape >
GranOO3::Physic::GroundT< shape >::GroundT ( )

◆ ~GroundT()

template<class shape >
virtual GranOO3::Physic::GroundT< shape >::~GroundT ( )
virtual

◆ GroundT() [3/3]

template<class shape >
GranOO3::Physic::GroundT< shape >::GroundT ( const GroundT< shape > &  )
privatedelete

Member Function Documentation

◆ draw()

template<class shape >
virtual void GranOO3::Physic::GroundT< shape >::draw ( )
virtual

Reimplemented from GranOO3::Core::Drawable.

◆ draw_edge()

template<class shape >
virtual void GranOO3::Physic::GroundT< shape >::draw_edge ( )
virtual

Reimplemented from GranOO3::Core::Drawable.

◆ exist()

template<class shape >
static bool GranOO3::Physic::GroundT< shape >::exist ( const std::string &  )
static

◆ get()

template<class shape >
static GroundT<shape>& GranOO3::Physic::GroundT< shape >::get ( const std::string &  )
static

◆ info()

template<class shape >
virtual std::string GranOO3::Physic::GroundT< shape >::info ( ) const
virtual

Reimplemented from GranOO3::Physic::Ground.

◆ local_frame()

template<class shape >
const Geom::Frame& GranOO3::Physic::GroundT< shape >::local_frame ( ) const

◆ operator=()

template<class shape >
GroundT& GranOO3::Physic::GroundT< shape >::operator= ( const GroundT< shape > &  )
privatedelete

◆ read_ascii()

template<class shape >
virtual std::istream& GranOO3::Physic::GroundT< shape >::read_ascii ( std::istream &  in)
virtual

Reimplemented from GranOO3::Physic::Ground.

◆ read_xml_element()

template<class shape >
void GranOO3::Physic::GroundT< shape >::read_xml_element ( const TiXmlElement *  el)
virtual

Reimplemented from GranOO3::Physic::Ground.

◆ serialize()

template<class shape >
template<class Archive >
void GranOO3::Physic::GroundT< shape >::serialize ( Archive &  ,
const unsigned int   
)
private

◆ shape_class_ID()

template<class shape >
std::string GranOO3::Physic::GroundT< shape >::shape_class_ID ( ) const
virtual

◆ to_base_shape() [1/2]

template<class shape >
virtual Shape::Base& GranOO3::Physic::GroundT< shape >::to_base_shape ( )
virtual

◆ to_base_shape() [2/2]

template<class shape >
virtual const Shape::Base& GranOO3::Physic::GroundT< shape >::to_base_shape ( ) const
virtual

◆ write_ascii()

template<class shape >
virtual std::ostream& GranOO3::Physic::GroundT< shape >::write_ascii ( std::ostream &  out) const
virtual

Reimplemented from GranOO3::Physic::Ground.

Friends And Related Function Documentation

◆ boost::serialization::access

template<class shape >
friend class boost::serialization::access
friend

The documentation for this class was generated from the following file: