VMTK
Loading...
Searching...
No Matches
IO
vtkvmtkXdaReader.cxx
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: VMTK
4
Module: $RCSfile: vtkvmtkXdaReader.cxx,v $
5
Language: C++
6
Date: $Date: 2006/04/06 16:47:47 $
7
Version: $Revision: 1.3 $
8
9
Copyright (c) Luca Antiga, David Steinman. All rights reserved.
10
See LICENSE file for details.
11
12
Portions of this code are covered under the VTK copyright.
13
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
14
for details.
15
16
This software is distributed WITHOUT ANY WARRANTY; without even
17
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18
PURPOSE. See the above copyright notices for more information.
19
20
=========================================================================*/
21
22
// #include <fstream>
23
24
#include "
vtkvmtkXdaReader.h
"
25
#include "vtkUnstructuredGrid.h"
26
#include "vtkCellType.h"
27
#include "vtkCell.h"
28
#include "vtkIdTypeArray.h"
29
#include "vtkObjectFactory.h"
30
#include "vtkInformation.h"
31
#include "vtkInformationVector.h"
32
#include "vtkStreamingDemandDrivenPipeline.h"
33
#include "
vtkvmtkConstants.h
"
34
35
36
vtkStandardNewMacro
(
vtkvmtkXdaReader
);
37
38
vtkvmtkXdaReader::vtkvmtkXdaReader
()
39
{
40
this->
BoundaryDataArrayName
= NULL;
41
}
42
43
vtkvmtkXdaReader::~vtkvmtkXdaReader
()
44
{
45
if
(this->
BoundaryDataArrayName
)
46
{
47
delete
[] this->
BoundaryDataArrayName
;
48
this->
BoundaryDataArrayName
= NULL;
49
}
50
}
51
52
int
vtkvmtkXdaReader::ReadMeshSimple
(
const
std::string& fname,
53
vtkDataObject* doOutput)
54
{
55
56
vtkDebugMacro(<<
"Reading Xda file..."
);
57
58
vtkUnstructuredGrid* output = vtkUnstructuredGrid::SafeDownCast(doOutput);
59
60
if
(fname.empty())
61
{
62
vtkErrorMacro(<<
"Input filename not set"
);
63
return
1;
64
}
65
66
return
1;
67
}
68
69
void
vtkvmtkXdaReader::PrintSelf
(std::ostream& os, vtkIndent indent)
70
{
71
vtkUnstructuredGridReader::PrintSelf(os,indent);
72
}
vtkvmtkXdaReader
Reads libmesh Xda files.
Definition
vtkvmtkXdaReader.h:47
vtkvmtkXdaReader::PrintSelf
void PrintSelf(std::ostream &os, vtkIndent indent) override
Definition
vtkvmtkXdaReader.cxx:69
vtkvmtkXdaReader::ReadMeshSimple
int ReadMeshSimple(const std::string &fname, vtkDataObject *output) override
Definition
vtkvmtkXdaReader.cxx:52
vtkvmtkXdaReader::BoundaryDataArrayName
char * BoundaryDataArrayName
Definition
vtkvmtkXdaReader.h:71
vtkvmtkXdaReader::~vtkvmtkXdaReader
~vtkvmtkXdaReader()
Definition
vtkvmtkXdaReader.cxx:43
vtkvmtkXdaReader::vtkvmtkXdaReader
vtkvmtkXdaReader()
Definition
vtkvmtkXdaReader.cxx:38
vtkvmtkConstants.h
vtkStandardNewMacro
vtkStandardNewMacro(vtkvmtkXdaReader)
vtkvmtkXdaReader.h
Generated by
1.15.0