GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
GranOO3::Core::Prop< T > Class Template Reference

#include <Prop.hpp>

Inheritance diagram for GranOO3::Core::Prop< T >:
Inheritance graph
[legend]

Public Types

typedef T Owner
 

Public Member Functions

 Prop ()
 
virtual ~Prop ()
 
T & item ()
 
const T & item () const
 
void set_item (T &)
 
virtual std::string info () const
 
virtual void set_color (const Core::Color &)
 
Core::Colorget_color ()
 
float & get_line_width ()
 
virtual void add (SetOf< Prop< T > > *)
 
virtual void erase (SetOf< Prop< T > > *)
 
virtual std::ostream & write_ascii (std::ostream &out) const
 
virtual std::istream & read_ascii (std::istream &in)
 
- 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 ()
 
virtual std::ostream & export_to_povray (std::ostream &out) const
 
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 draw ()
 
virtual void draw_edge ()
 
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_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< Prop< T > >
 Register ()
 
virtual ~Register ()
 
void erase_from_all_setof ()
 
bool belong_to_setof (const std::string &setOfId) const
 
bool belong_to_setof (const SetOf< Prop< T > > &set) const
 
std::list< SetOf< Prop< T > > * > & get_setof_list ()
 
unsigned long long int get_numeric_ID () const
 

Protected Member Functions

virtual Basebase_item ()
 
virtual const Basebase_item () const
 
template<class Archive >
void serialize (Archive &ar, const unsigned int)
 
- Protected Member Functions inherited from GranOO3::Core::Base
 Base ()
 

Private Attributes

T * _item
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- 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 Attributes inherited from GranOO3::Core::Null
static Null null = Null()
 
- Static Protected Member Functions inherited from GranOO3::Core::Base
static unsigned int affect_class_rank_ID ()
 

Member Typedef Documentation

◆ Owner

template<class T >
typedef T GranOO3::Core::Prop< T >::Owner

Constructor & Destructor Documentation

◆ Prop()

template<class T >
GranOO3::Core::Prop< T >::Prop ( )

◆ ~Prop()

template<class T >
virtual GranOO3::Core::Prop< T >::~Prop ( )
virtual

Member Function Documentation

◆ add()

template<class T >
virtual void GranOO3::Core::Prop< T >::add ( SetOf< Prop< T > > *  )
virtual

◆ base_item() [1/2]

template<class T >
virtual Base& GranOO3::Core::Prop< T >::base_item ( )
protectedvirtual

◆ base_item() [2/2]

template<class T >
virtual const Base& GranOO3::Core::Prop< T >::base_item ( ) const
protectedvirtual

◆ erase()

template<class T >
virtual void GranOO3::Core::Prop< T >::erase ( SetOf< Prop< T > > *  )
virtual

◆ get_color()

template<class T >
Core::Color& GranOO3::Core::Prop< T >::get_color ( )

◆ get_line_width()

template<class T >
float& GranOO3::Core::Prop< T >::get_line_width ( )

◆ info()

template<class T >
virtual std::string GranOO3::Core::Prop< T >::info ( ) const
virtual

◆ item() [1/2]

template<class T >
T& GranOO3::Core::Prop< T >::item ( )

◆ item() [2/2]

template<class T >
const T& GranOO3::Core::Prop< T >::item ( ) const

◆ read_ascii()

template<class T >
virtual std::istream& GranOO3::Core::Prop< T >::read_ascii ( std::istream &  in)
virtual

Reimplemented from GranOO3::Core::Base.

Reimplemented in GranOO3::DEM::Periodic.

◆ serialize()

template<class T >
template<class Archive >
void GranOO3::Core::Prop< T >::serialize ( Archive &  ar,
const unsigned int   
)
protected

◆ set_color()

template<class T >
virtual void GranOO3::Core::Prop< T >::set_color ( const Core::Color )
virtual

Reimplemented from GranOO3::Core::Drawable.

◆ set_item()

template<class T >
void GranOO3::Core::Prop< T >::set_item ( T &  )

◆ write_ascii()

template<class T >
virtual std::ostream& GranOO3::Core::Prop< T >::write_ascii ( std::ostream &  out) const
virtual

Reimplemented from GranOO3::Core::Base.

Reimplemented in GranOO3::DEM::Periodic.

Friends And Related Function Documentation

◆ boost::serialization::access

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

Member Data Documentation

◆ _item

template<class T >
T* GranOO3::Core::Prop< T >::_item
private

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