ParaView
vtkPVMetaClipDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPVMetaClipDataSet.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 =========================================================================*/
21 #ifndef vtkPVMetaClipDataSet_h
22 #define vtkPVMetaClipDataSet_h
23 
25 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
26 
27 class vtkImplicitFunction;
28 
29 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVMetaClipDataSet
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
36  static vtkPVMetaClipDataSet* New();
37 
41  void PreserveInputCells(int keepCellAsIs);
42 
43  void SetImplicitFunction(vtkImplicitFunction* func);
44 
45  void SetInsideOut(int insideOut);
46 
47  // Only available for cut -------------
48 
52  void SetClipFunction(vtkImplicitFunction* func) { this->SetImplicitFunction(func); };
53 
57  void SetValue(double value);
58 
59  virtual void SetInputArrayToProcess(
60  int idx, int port, int connection, int fieldAssociation, const char* name);
61  virtual void SetInputArrayToProcess(
62  int idx, int port, int connection, int fieldAssociation, int fieldAttributeType);
63  virtual void SetInputArrayToProcess(int idx, vtkInformation* info);
64 
65  virtual void SetInputArrayToProcess(
66  int idx, int port, int connection, const char* fieldName, const char* fieldType);
67 
71  void SetUseValueAsOffset(int);
72 
77  virtual int ProcessRequest(
78  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo);
79 
80  // Add validation for active filter so that the vtkExtractGeometry
81  // won't be used without ImplicifFuntion being set.
82  virtual int ProcessRequest(
83  vtkInformation* request, vtkCollection* inInfo, vtkInformationVector* outInfo);
84 
85 protected:
88 
89  // Check to see if this filter can do crinkle, return true if
90  // we need to switch active filter, so that we can switch back after.
91  bool SwitchFilterForCrinkle();
92 
93 private:
94  vtkPVMetaClipDataSet(const vtkPVMetaClipDataSet&) VTK_DELETE_FUNCTION;
95  void operator=(const vtkPVMetaClipDataSet&) VTK_DELETE_FUNCTION;
96 
97  class vtkInternals;
98  vtkInternals* Internal;
99 };
100 
101 #endif
Meta class for clip filter that will allow the user to switch between a regular clip filter or an ext...
static vtkPVDataSetAlgorithmSelectorFilter * New()
void SetClipFunction(vtkImplicitFunction *func)
Expose method from vtkCutter.
is a generic vtkAlgorithm that allow the user to register several vtkAlgorithm to it and be able to s...
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Forward those methods to the underneath filters.
void PrintSelf(ostream &os, vtkIndent indent)