vtkbone
vtkboneFaimVersion5InputWriter.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 
47 #ifndef __vtkboneFaimVersion5InputWriter_h
48 #define __vtkboneFaimVersion5InputWriter_h
49 
50 #include "vtkWriter.h"
51 #include "vtkboneWin32Header.h"
52 
53 // Forward declarations
54 class vtkPoints;
56 class vtkDoubleArray;
57 class vtkIdList;
58 class vtkIdTypeArray;
59 class vtkCharArray;
60 class vtkboneConstraint;
61 
63 {
64 public:
67  void PrintSelf(ostream& os, vtkIndent indent);
68 
70 
71  vtkSetStringMacro(FileName);
72  vtkGetStringMacro(FileName);
74 
76 
78  vtkSetMacro(DisplacementTolerance, double);
79  vtkGetMacro(DisplacementTolerance, double);
81 
82 protected:
85 
86  void WriteData();
87 
89 
90  int WriteNodes(ostream *fp, vtkboneFiniteElementModel* model);
91  int WriteElements(ostream *fp, vtkboneFiniteElementModel* model);
92  int WriteMeshOutput(ostream *fp, vtkboneFiniteElementModel* model);
93 
94  int VerifyConstraint(vtkboneConstraint* constraint);
95 
96  int WriteFixedConstraints(ostream *fp, vtkboneFiniteElementModel* model);
97  int WriteForceConstraints(ostream *fp, vtkboneFiniteElementModel* model);
98  int WriteDisplacementConstraints(ostream *fp, vtkboneFiniteElementModel* model);
99  int WriteNodeSet(ostream *fp, vtkboneFiniteElementModel* model, const char* setName);
100  int WriteContainingElementSet(ostream *fp, vtkboneFiniteElementModel* model, const char* setName);
101 
102  char* FileName;
104 
105 private:
107  void operator=(const vtkboneFaimVersion5InputWriter&); // Not implemented
108 };
109 
110 #endif
111 
data model for finite element meshes
#define VTKBONE_EXPORT
writes faim finite element input file.
info
a constraint for a finite element mesh
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkAlgorithm * New()
virtual void WriteData()=0
port
void operator=(const vtkObjectBase &)
void PrintSelf(ostream &os, vtkIndent indent)