VTK  9.7.1
vtkCellGridComputeSides.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
26 #ifndef vtkCellGridComputeSides_h
27 #define vtkCellGridComputeSides_h
28 
29 #include "vtkCellGridAlgorithm.h"
30 #include "vtkCellGridSidesQuery.h" // For SideFlags enum.
31 #include "vtkFiltersCellGridModule.h" // For export macro.
32 #include "vtkNew.h" // For ivar.
33 
34 VTK_ABI_NAMESPACE_BEGIN
35 
36 class VTKFILTERSCELLGRID_EXPORT vtkCellGridComputeSides : public vtkCellGridAlgorithm
37 {
38 public:
39  static vtkCellGridComputeSides* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
48  virtual void SetPreserveRenderableInputs(bool preserve);
49  bool GetPreserveRenderableInputs();
50  vtkBooleanMacro(PreserveRenderableInputs, bool);
51 
61  virtual void SetOmitSidesForRenderableInputs(bool omit);
62  bool GetOmitSidesForRenderableInputs();
63  vtkBooleanMacro(OmitSidesForRenderableInputs, bool);
64 
67 
71  virtual void SetOutputDimensionControl(int flags);
72  int GetOutputDimensionControl();
73 
76 
78  virtual void SetStrategy(SummaryStrategy strategy);
79  SummaryStrategy GetStrategy();
81  virtual void SetStrategy(int strategy);
82 
85 
90  virtual void SetSelectionType(SelectionMode selectionType);
91  SelectionMode GetSelectionType();
93  virtual void SetSelectionType(int selnType);
94 
95  static vtkStringToken GetSideAttribute();
96 
97 protected:
99  ~vtkCellGridComputeSides() override = default;
100 
101  int RequestData(
102  vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* ouInfo) override;
103 
105 
106 private:
108  void operator=(const vtkCellGridComputeSides&) = delete;
109 };
110 
111 VTK_ABI_NAMESPACE_END
112 #endif // vtkCellGridComputeSides_h
vtkNew< vtkCellGridSidesQuery > Request
Store vtkAlgorithm input/output information.
static vtkCellGridAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
Generate sides of input data (cells and/or sides) based on a strategy.
Represent a string by its integer hash.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
SideFlags
An enum specifying which side(s) each responder should generate.
SelectionMode
Indicate how output should be generated or marked so selection works as expected. ...
SummaryStrategy
An enum specifying the strategy by which input hashes are summarized into output Sides entries...
Store zero or more vtkInformation instances.