VTK
vtkYoungsMaterialInterface.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkYoungsMaterialInterface.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
34 #ifndef vtkYoungsMaterialInterface_h
35 #define vtkYoungsMaterialInterface_h
36 
37 #include "vtkFiltersGeneralModule.h" // For export macro
39 
40 #include "vtkSmartPointer.h" // For SP ivars
41 
42 class vtkIntArray;
43 class vtkInformation;
45 class vtkYoungsMaterialInterfaceInternals;
46 
47 class VTKFILTERSGENERAL_EXPORT vtkYoungsMaterialInterface : public vtkMultiBlockDataSetAlgorithm
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
58  vtkSetMacro(InverseNormal,vtkTypeBool);
59  vtkGetMacro(InverseNormal,vtkTypeBool);
60  vtkBooleanMacro(InverseNormal,vtkTypeBool);
62 
64 
68  vtkSetMacro(ReverseMaterialOrder,vtkTypeBool);
69  vtkGetMacro(ReverseMaterialOrder,vtkTypeBool);
70  vtkBooleanMacro(ReverseMaterialOrder,vtkTypeBool);
72 
74 
78  vtkSetMacro(OnionPeel,vtkTypeBool);
79  vtkGetMacro(OnionPeel,vtkTypeBool);
80  vtkBooleanMacro(OnionPeel,vtkTypeBool);
82 
84 
88  vtkSetMacro(AxisSymetric,vtkTypeBool);
89  vtkGetMacro(AxisSymetric,vtkTypeBool);
90  vtkBooleanMacro(AxisSymetric,vtkTypeBool);
92 
94 
99  vtkSetMacro(UseFractionAsDistance,vtkTypeBool);
100  vtkGetMacro(UseFractionAsDistance,vtkTypeBool);
101  vtkBooleanMacro(UseFractionAsDistance,vtkTypeBool);
103 
105 
108  vtkSetMacro(FillMaterial,vtkTypeBool);
109  vtkGetMacro(FillMaterial,vtkTypeBool);
110  vtkBooleanMacro(FillMaterial,vtkTypeBool);
112 
114 
117  vtkSetVector2Macro(VolumeFractionRange,double);
118  vtkGetVectorMacro(VolumeFractionRange,double,2);
120 
122 
125  virtual void SetNumberOfMaterials(int n);
126  virtual int GetNumberOfMaterials();
128 
130 
133  vtkSetMacro(UseAllBlocks,bool);
134  vtkGetMacro(UseAllBlocks,bool);
135  vtkBooleanMacro(UseAllBlocks,bool);
137 
139 
142  vtkGetMacro(NumberOfDomains,int);
144 
146 
149  virtual void SetMaterialArrays( int i, const char* volume, const char* normalX, const char* normalY, const char* normalZ, const char* ordering );
150  virtual void SetMaterialArrays( int i, const char* volume, const char* normal, const char* ordering );
151  virtual void SetMaterialVolumeFractionArray( int i, const char* volume );
152  virtual void SetMaterialNormalArray( int i, const char* normal );
153  virtual void SetMaterialOrderingArray( int i, const char* ordering );
155 
159  virtual void RemoveAllMaterials();
160 
162 
170  virtual void SetMaterialNormalArray(const char* volume, const char* normal);
171  virtual void SetMaterialOrderingArray(const char* volume, const char* ordering);
173 
175 
178  virtual void RemoveAllMaterialBlockMappings();
179  virtual void AddMaterialBlockMapping(int b);
181 
182  enum
183  {
184  MAX_CELL_POINTS=256
185  };
186 
187 protected:
189  ~vtkYoungsMaterialInterface () override;
190 
191  int FillInputPortInformation(int port, vtkInformation *info) override;
192  int RequestData(vtkInformation *request,
193  vtkInformationVector **inputVector,
194  vtkInformationVector *outputVector) override;
195 
199  virtual void Aggregate ( int, int* );
200 
201  void UpdateBlockMapping();
202 
203  int CellProduceInterface( int dim, int np, double fraction, double minFrac, double maxFrac );
204 
206 
215  double VolumeFractionRange[2];
217 
219 
221 
226 
227  // Description:
228  // Internal data structures
229  vtkYoungsMaterialInterfaceInternals* Internals;
230 
231 private:
233  void operator=(const vtkYoungsMaterialInterface&) = delete;
234 };
235 
236 #endif /* VTK_YOUNGS_MATERIAL_INTERFACE_H */
237 
vtkTypeBool UseFractionAsDistance
Read-Write Properties.
Store vtkAlgorithm input/output information.
vtkYoungsMaterialInterfaceInternals * Internals
int NumberOfDomains
Read only properties.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkMultiBlockDataSetAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:39
vtkTypeBool OnionPeel
Read-Write Properties.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSmartPointer< vtkIntArray > MaterialBlockMapping
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
reconstructs material interfaces
vtkTypeBool ReverseMaterialOrder
Read-Write Properties.
Store zero or more vtkInformation instances.
vtkTypeBool FillMaterial
Read-Write Properties.
vtkTypeBool InverseNormal
Read-Write Properties.
vtkTypeBool AxisSymetric
Read-Write Properties.