30 #ifndef _LibDEM_Domain_hpp_
31 #define _LibDEM_Domain_hpp_
35 #include <vtkUnstructuredGrid.h>
36 #include <vtkSmartPointer.h>
51 GRANOO_SINGLETON_CLASS(
Domain);
56 void save(std::string)
const;
57 void load(std::string);
69 void save_xyz(std::string set=
"Global")
const;
70 void save_xyz(std::string, std::string set=
"Global")
const;
72 void save_xyzr(std::string set=
"Global")
const;
73 void save_xyzr(std::string, std::string set=
"Global")
const;
78 void to_vtk(std::vector<std::pair<std::string, vtkSmartPointer<vtkUnstructuredGrid> > > &
data,
79 bool save_discrete_element_shape);
83 const std::string& Id,
85 const std::string& prefix,
86 const std::string& suffix,
87 bool updateInitialParametersToCurrentParameters,
89 bool updateDiscreteShape);
101 template<
class Archive>
void serialize(Archive&,
const unsigned int);
105 template<
class Archive>
108 ar & boost::serialization::base_object<Core::Domain>(*
this);
Definition: Domain.hpp:46
void save() const
Definition: Domain.cpp:107
Definition: Singleton.hpp:93
singleton class mainly used for IO
Definition: Domain.hpp:50
Domain(const Domain &)=delete
void save_roga() const
Definition: Domain.cpp:100
~Domain()
destructor, it does nothing particular
Definition: Domain.cpp:63
Domain()
constructor, it does nothing particular
Definition: Domain.cpp:61
void load(std::string)
load a domain from the specified file
Definition: Domain.cpp:76
void serialize(Archive &, const unsigned int)
serialize the whole domain in the standard gdd format
Definition: Domain.hpp:107
void load_rxyz(std::string)
load the current state of the domain
Definition: Domain.cpp:739
void load_roga(std::string)
Definition: Domain.cpp:519
void save_off(std::string) const
save the current SupportShape
Definition: Domain.cpp:766
void read_sample_file(const std::string &fileName, const std::string &Id, const Geom::Frame &f, const std::string &prefix, const std::string &suffix, bool updateInitialParametersToCurrentParameters, bool clearKinematics, bool updateDiscreteShape)
utility method for loading a sample file with a lot of option !
Definition: Domain.cpp:848
void save_ascii() const
save the current of the domain state with ascii file format
Definition: Domain.cpp:94
Domain & operator=(const Domain &)=delete
void save_xyzr(std::string set="Global") const
save the current state of the domain in the *.xyzr format
Definition: Domain.cpp:820
friend class boost::serialization::access
Definition: Domain.hpp:100
void to_vtk(std::vector< std::pair< std::string, vtkSmartPointer< vtkUnstructuredGrid > > > &data, bool save_discrete_element_shape)
utility method for saving the current state of the domain in vtk
Definition: Domain.cpp:997
void save_xyz(std::string set="Global") const
save the current state of the domain in the *.xyz format
Definition: Domain.cpp:792
void load_ascii(std::string)
load a domain from the specified file
Definition: Domain.cpp:365
void load_xyzr(std::string)
load the current state of the domain
Definition: Domain.cpp:712
Definition: Common.hpp:198