OpenWalnut  1.5.0dev
WMeshReaderFreesurfer.h
1 //---------------------------------------------------------------------------
2 //
3 // Project: OpenWalnut ( http://www.openwalnut.org )
4 //
5 // Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
6 // For more information see http://www.openwalnut.org/copying
7 //
8 // This file is part of OpenWalnut.
9 //
10 // OpenWalnut is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU Lesser General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // OpenWalnut is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public License
21 // along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
22 //
23 //---------------------------------------------------------------------------
24 
25 #ifndef WMESHREADERFREESURFER_H
26 #define WMESHREADERFREESURFER_H
27 
28 #include <core/common/WObjectNDIP.h>
29 
30 #include "WMeshReaderInterface.h"
31 
32 /**
33  * Load Freesurfer meshes
34  */
35 class WMeshReaderFreesurfer: public WObjectNDIP< WMeshReaderInterface >
36 {
37 public:
38  /**
39  * Constructor
40  */
42 
43  /**
44  * Destructor
45  */
46  virtual ~WMeshReaderFreesurfer();
47 
48  /**
49  * Load the dataset. Throws exceptions if appropriate. Refer to the implementing class.
50  *
51  * \param parentProgress the progress indicator
52  * \param file path to the file to load
53  *
54  * \return the loaded mesh
55  */
57  boost::filesystem::path file );
58 private:
59  WPropInt m_propDatasetSizeX; //!< Size of the dataset (X)
60  WPropInt m_propDatasetSizeY; //!< Size of the dataset (Y)
61  WPropInt m_propDatasetSizeZ; //!< Size of the dataset (Z)
62 };
63 
64 #endif // WMESHREADERFREESURFER_H
65 
Load Freesurfer meshes.
WPropInt m_propDatasetSizeZ
Size of the dataset (Z)
virtual ~WMeshReaderFreesurfer()
Destructor.
WPropInt m_propDatasetSizeY
Size of the dataset (Y)
WPropInt m_propDatasetSizeX
Size of the dataset (X)
virtual WTriangleMesh::SPtr operator()(WProgressCombiner::SPtr parentProgress, boost::filesystem::path file)
Load the dataset.
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
Definition: WObjectNDIP.h:42
std::shared_ptr< WProgressCombiner > SPtr
Abbreviate shared_ptr for this class.
std::shared_ptr< WTriangleMesh > SPtr
Shared pointer.
Definition: WTriangleMesh.h:55