Shapeworks Studio
2.1
Shape analysis software suite
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Download
File List
src
ParticleShapeworks
src
itkPSMProjectWriter.cxx
1
/*=========================================================================
2
*
3
* Copyright Insight Software Consortium
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0.txt
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*=========================================================================*/
18
19
#include "itkPSMProjectWriter.h"
20
#include <fstream>
21
22
namespace
itk
23
{
24
25
PSMProjectWriter::PSMProjectWriter()
26
{
27
28
}
29
30
void
PSMProjectWriter::Update
()
31
{
32
std::ofstream out;
33
out.open(this->GetFileName());
34
if
(!out)
35
{
36
itkExceptionMacro(
"Could not open the file "
+ m_FileName +
" for output."
);
37
}
38
else
39
{
40
m_Input->Stream(out);
41
out.close();
42
}
43
}
44
45
}
// end namespace itk
itk
Definition:
itkParticlePositionReader.h:25
itk::PSMProjectWriter::Update
virtual void Update()
Definition:
itkPSMProjectWriter.cxx:30
Generated on Mon Aug 15 2016 13:47:15 for Shapeworks Studio by
1.8.11