ESyS-Particle  2.3
BondedTriMeshPrmsPy.h
Go to the documentation of this file.
1 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef ESYS_LSMBONDEDTRIMESHPRMSPY_H
14 #define ESYS_LSMBONDEDTRIMESHPRMSPY_H
15 
16 //--- Project includes ---
18 #include "Model/BTriMeshIP.h"
19 
20 //--- STL includes ---
21 #include <string>
22 
23 //--- Boost includes ---
24 #include <boost/shared_ptr.hpp>
25 
26 using std::string;
27 
28 namespace esys
29 {
30  namespace lsm
31  {
37  {
38  private:
39  typedef boost::shared_ptr<MeshTagBuildPrmsPy> TagBuildPrmsPtr;
40  typedef boost::shared_ptr<MeshGapBuildPrmsPy> GapBuildPrmsPtr;
41 
42  const TagBuildPrmsPtr m_tagPrmsPtr;
43  const GapBuildPrmsPtr m_gapPrmsPtr;
44 
45  public:
47  const string &name,
48  const string &meshName,
49  double normalK,
50  double breakDistance,
51  const MeshTagBuildPrmsPy &buildPrms
52  );
54  const string &name,
55  const string &meshName,
56  double normalK,
57  double breakDistance,
58  const MeshGapBuildPrmsPy &buildPrms
59  );
60  bool haveTagBuildPrms() const {return (m_tagPrmsPtr.get() != NULL);};
61  bool haveGapBuildPrms() const {return (m_gapPrmsPtr.get() != NULL);};
62  const MeshTagBuildPrmsPy &getTagBuildPrms() const {return *(m_tagPrmsPtr.get());};
63  const MeshGapBuildPrmsPy &getGapBuildPrms() const {return *(m_gapPrmsPtr.get());};
64  };
65 
67  } // namespace lsm
68 } // namespace esys
69 
70 #endif //ESYS_LSMBONDEDTRIMESHPRMSPY_H
wrapper for MeshGapBuildPrms
Definition: MeshBuildParamsPy.h:44
const MeshTagBuildPrmsPy & getTagBuildPrms() const
Definition: BondedTriMeshPrmsPy.h:62
bool haveGapBuildPrms() const
Definition: BondedTriMeshPrmsPy.h:61
Definition: CheckPointable.cpp:16
NRotBondedTriMeshPrmsPy(const string &name, const string &meshName, double normalK, double breakDistance, const MeshTagBuildPrmsPy &buildPrms)
Definition: BondedTriMeshPrmsPy.cpp:24
class for bonded TriMesh interactions in python interface
Definition: BondedTriMeshPrmsPy.h:36
const GapBuildPrmsPtr m_gapPrmsPtr
Definition: BondedTriMeshPrmsPy.h:43
const MeshGapBuildPrmsPy & getGapBuildPrms() const
Definition: BondedTriMeshPrmsPy.h:63
wrapper for MeshTagBuildPrms
Definition: MeshBuildParamsPy.h:34
#define NULL
Definition: t_list.h:17
boost::shared_ptr< MeshTagBuildPrmsPy > TagBuildPrmsPtr
Definition: BondedTriMeshPrmsPy.h:39
boost::shared_ptr< MeshGapBuildPrmsPy > GapBuildPrmsPtr
Definition: BondedTriMeshPrmsPy.h:40
Definition: BTriMeshIP.h:18
void exportBondedTriMeshPrms()
Definition: BondedTriMeshPrmsPy.cpp:50
bool haveTagBuildPrms() const
Definition: BondedTriMeshPrmsPy.h:60
const TagBuildPrmsPtr m_tagPrmsPtr
Definition: BondedTriMeshPrmsPy.h:42