xmsmesh  1.0
MeMultiPolyTo2dm.h
Go to the documentation of this file.
1 #pragma once
2 //------------------------------------------------------------------------------
7 //------------------------------------------------------------------------------
8 
9 //----- Included files ---------------------------------------------------------
10 
11 // 3. Standard library headers
12 #include <vector>
13 
14 // 4. External library headers
15 
16 #include <boost/shared_ptr.hpp>
17 
18 // 5. Shared code headers
19 
20 #include <xmscore/misc/base_macros.h> // for XM_DISALLOW_COPY_AND_ASSIGN
21 #include <xmscore/misc/boost_defines.h> // BSHP
22 
23 //----- Forward declarations ---------------------------------------------------
24 
25 //----- Namespace declaration --------------------------------------------------
26 
27 namespace xms
28 {
29 class MeMultiPolyMesherIo;
30 
31 //----- Constants / Enumerations -----------------------------------------------
32 
33 //----- Structs / Classes ------------------------------------------------------
34 
35 //----- Function prototypes ----------------------------------------------------
36 
41 {
42 public:
43  static boost::shared_ptr<MeMultiPolyTo2dm> New();
44 
46  virtual bool Generate2dm(MeMultiPolyMesherIo& a_input,
47  const std::string& a_outFileName,
48  int a_precision = 15) = 0;
49  virtual bool Generate2dm(MeMultiPolyMesherIo& a_input,
50  std::ostream& a_os,
51  int a_precision = 15) = 0;
52 
53  virtual ~MeMultiPolyTo2dm() {}
54 
55 protected:
56  MeMultiPolyTo2dm() {}
57 
58 private:
61 }; // MeMultiPolyTo2dm
62 
63 } // namespace xms
Creates a 2dm file of a mesh from polygons.
#define XM_DISALLOW_COPY_AND_ASSIGN(TypeName)
Provides the input to meshing multiple polygons and holds the output.
static boost::shared_ptr< MeMultiPolyTo2dm > New()
Creates a class.