vtkbone
vtkboneN88ModelReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright 2010-2016, Numerics88 Solutions Ltd.
4  http://www.numerics88.com/
5 
6  Copyright (c) Eric Nodwell and Steven K. Boyd
7  See Copyright.txt for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 =========================================================================*/
13 
26 #ifndef __vtkboneN88ModelReader_h
27 #define __vtkboneN88ModelReader_h
28 
30 #include "vtkboneWin32Header.h"
31 
32 // Forward declarations
34 class vtkboneConstraint;
35 
37 {
38 public:
39  static vtkboneN88ModelReader *New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  vtkSetStringMacro(FileName);
46  vtkGetStringMacro(FileName);
48 
50 
51  vtkSetMacro(ReadMaterials, int);
52  vtkGetMacro(ReadMaterials, int);
53  vtkBooleanMacro(ReadMaterials, int);
55 
57 
58  vtkGetStringMacro(ActiveSolution);
60 
62 
65  vtkGetStringMacro(ActiveProblem);
67 
69 
70  vtkGetStringMacro(ActivePart);
72 
73 protected:
76 
77  virtual int RequestData(vtkInformation *,
80 
81  int ReadDataFromNetCDFFile(int ncid, vtkboneFiniteElementModel* model);
82  int ReadProblem(int ncid, vtkboneFiniteElementModel* model);
83  int ReadAttributes(int ncid, vtkboneFiniteElementModel* model);
84  int ReadNodes(int ncid, vtkboneFiniteElementModel* model);
85  int ReadMaterialTable(int ncid, vtkboneFiniteElementModel* model);
86  int ReadElements(int ncid, vtkboneFiniteElementModel* model);
87  int ReadConstraints(int ncid, vtkboneFiniteElementModel* model);
88  int ReadConvergenceSet(int ncid,vtkboneFiniteElementModel *model);
89  int ReadConstraint(int constraints_ncid,const char* name,vtkboneConstraint*& constraint);
90  int ReadSets(int ncid, vtkboneFiniteElementModel* model);
91  int ReadSolutions(int ncid, vtkboneFiniteElementModel* model);
92 
93  // not publically modifiable
94  vtkSetStringMacro(ActiveSolution);
95  vtkSetStringMacro(ActiveProblem);
96  vtkSetStringMacro(ActivePart);
97 
98  char* FileName;
102  char* ActivePart;
103 
104 private:
105  // Prevent compiler from making public versions of these.
107  void operator=(const vtkboneN88ModelReader&);
108 };
109 
110 #endif
111 
data model for finite element meshes
read n88model files
#define VTKBONE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only vtkboneFiniteElementModel as output.
a constraint for a finite element mesh
name
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkboneFiniteElementModelAlgorithm * New()