VMTK
Loading...
Searching...
No Matches
vtkvmtkXdaReader.cxx
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4Module: $RCSfile: vtkvmtkXdaReader.cxx,v $
5Language: C++
6Date: $Date: 2006/04/06 16:47:47 $
7Version: $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
37
42
44{
45 if (this->BoundaryDataArrayName)
46 {
47 delete[] this->BoundaryDataArrayName;
48 this->BoundaryDataArrayName = NULL;
49 }
50}
51
52int 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
69void vtkvmtkXdaReader::PrintSelf(std::ostream& os, vtkIndent indent)
70{
71 vtkUnstructuredGridReader::PrintSelf(os,indent);
72}
Reads libmesh Xda files.
void PrintSelf(std::ostream &os, vtkIndent indent) override
int ReadMeshSimple(const std::string &fname, vtkDataObject *output) override
vtkStandardNewMacro(vtkvmtkXdaReader)