NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkCGALMesherBackEnd.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkCGALMesherBackEnd_h
16 #define niftkCGALMesherBackEnd_h
17 
18 #include <niftkIOException.h>
20 
21 #include <stdexcept>
22 #include <string>
23 
24 namespace niftk {
33  private:
34  float m_facetAngle, m_facetEdgeLength, m_facetApproximationError;
35  float m_cellSize, m_cellEdgeRadiusRatio;
36 
37  public:
39  void SetFacetMinAngle(const float facetAngle)
40  {
41  m_facetAngle = facetAngle;
42  }
43 
45  void SetFacetMaxEdgeLength(const float facetEdgeLength)
46  {
47  m_facetEdgeLength = facetEdgeLength;
48  }
49 
51  void SetBoundaryApproximationError(const float facetApproximationError)
52  {
53  m_facetApproximationError = facetApproximationError;
54  }
55 
57  void SetCellMaxSize(const float cellSize)
58  {
59  m_cellSize = cellSize;
60  }
61 
63  void SetCellMaxRadiusEdgeRatio(const float cellEdgeRadiusRatio)
64  {
65  m_cellEdgeRadiusRatio = cellEdgeRadiusRatio;
66  }
69  public:
70  void GenerateMesh(const std::string &outputFileName, const std::string &inputFileName) const throw (niftk::IOException);
71 
72  public:
73  CGALMesherBackEnd(void);
74  };
75 }
76 
77 #endif /* CGALMESHERBACKEND_H_ */
void SetBoundaryApproximationError(const float facetApproximationError)
Definition: niftkCGALMesherBackEnd.h:51
void SetFacetMaxEdgeLength(const float facetEdgeLength)
Definition: niftkCGALMesherBackEnd.h:45
void SetFacetMinAngle(const float facetAngle)
Definition: niftkCGALMesherBackEnd.h:39
#define NIFTKCOMMON_WINEXPORT
Definition: niftkCommonWin32ExportHeader.h:28
void SetCellMaxSize(const float cellSize)
Definition: niftkCGALMesherBackEnd.h:57
Definition: niftkCGALMesherBackEnd.h:28
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194
void SetCellMaxRadiusEdgeRatio(const float cellEdgeRadiusRatio)
Definition: niftkCGALMesherBackEnd.h:63
Exceptions for Filesystem, Network, ... I/O.
Definition: niftkIOException.h:26