ParaView
vtkAMRFragmentsFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkAMRFragmentsFilter.h
5 
6  This software is distributed WITHOUT ANY WARRANTY; without even
7  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8  PURPOSE. See the above copyright notice for more information.
9 
10  Copyright 2014 Sandia Corporation.
11  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
12  the U.S. Government retains certain rights in this software.
13 
14 =========================================================================*/
28 #ifndef vtkAMRFragmentsFilter_h
29 #define vtkAMRFragmentsFilter_h
30 
31 #include "vtkMultiBlockDataSetAlgorithm.h"
32 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
33 
34 class vtkTrivialProducer;
35 class vtkExtractCTHPart;
37 class vtkAMRConnectivity;
39 
40 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkAMRFragmentsFilter : public vtkMultiBlockDataSetAlgorithm
41 {
42 public:
43  static vtkAMRFragmentsFilter* New();
44  vtkTypeMacro(vtkAMRFragmentsFilter, vtkMultiBlockDataSetAlgorithm);
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
51  void AddInputVolumeArrayToProcess(const char* name);
52  void ClearInputVolumeArrayToProcess();
54 
56 
59  void AddInputMassArrayToProcess(const char* name);
60  void ClearInputMassArrayToProcess();
62 
64 
67  void AddInputVolumeWeightedArrayToProcess(const char* name);
68  void ClearInputVolumeWeightedArrayToProcess();
70 
72 
75  void AddInputMassWeightedArrayToProcess(const char* name);
76  void ClearInputMassWeightedArrayToProcess();
78 
80 
83  vtkSetMacro(ExtractSurface, bool);
84  vtkGetMacro(ExtractSurface, bool);
85  vtkBooleanMacro(ExtractSurface, bool);
87 
89 
92  vtkSetMacro(UseWatertightSurface, bool);
93  vtkGetMacro(UseWatertightSurface, bool);
94  vtkBooleanMacro(UseWatertightSurface, bool);
96 
98 
101  vtkSetMacro(IntegrateFragments, bool);
102  vtkGetMacro(IntegrateFragments, bool);
103  vtkBooleanMacro(IntegrateFragments, bool);
105 
107 
110  vtkGetMacro(VolumeFractionSurfaceValue, double);
111  vtkSetMacro(VolumeFractionSurfaceValue, double);
113 
114 protected:
116  virtual ~vtkAMRFragmentsFilter();
117 
122 
123  vtkTrivialProducer* Producer;
124  vtkExtractCTHPart* Extract;
128 
129  virtual int FillInputPortInformation(int, vtkInformation*);
130  virtual int FillOutputPortInformation(int, vtkInformation*);
131  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
132 
133 private:
134  vtkAMRFragmentsFilter(const vtkAMRFragmentsFilter&) VTK_DELETE_FUNCTION;
135  void operator=(const vtkAMRFragmentsFilter&) VTK_DELETE_FUNCTION;
136 };
137 
138 #endif /* vtkAMRFragmentsFilter_h */
Generates fragment analysis from an amr volume and a previously run contour on that volume...
vtkTrivialProducer * Producer
A meta filter that combines vtkAMRConnectivity, vtkAMRFragmentIntegration, vtkAMRDualContour, vtkExtractCTHPart to allow all the fragment analysis in one easy UI.
vtkPVAMRFragmentIntegration * Integration
vtkPVAMRDualContour * Contour
vtkAMRConnectivity * Connectivity
Identify fragments in the grid.
Generates a contour surface given one or more cell arrays and a volume fraction value.
vtkExtractCTHPart * Extract