VTK  9.4.20241222
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
30#include "vtkCellGridSidesQuery.h" // For SideFlags enum.
31#include "vtkFiltersCellGridModule.h" // For export macro.
32#include "vtkNew.h" // For ivar.
33
34VTK_ABI_NAMESPACE_BEGIN
35
36class VTKFILTERSCELLGRID_EXPORT vtkCellGridComputeSides : public vtkCellGridAlgorithm
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
48 virtual void SetPreserveRenderableInputs(bool preserve);
50 vtkBooleanMacro(PreserveRenderableInputs, bool);
51
61 virtual void SetOmitSidesForRenderableInputs(bool omit);
63 vtkBooleanMacro(OmitSidesForRenderableInputs, bool);
64
67
71 virtual void SetOutputDimensionControl(int flags);
73
76
78 virtual void SetStrategy(SummaryStrategy strategy);
81 virtual void SetStrategy(int strategy);
82
85
90 virtual void SetSelectionType(SelectionMode selectionType);
93 virtual void SetSelectionType(int selnType);
94
96
97protected:
99 ~vtkCellGridComputeSides() override = default;
100
102 vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* ouInfo) override;
103
105
106private:
108 void operator=(const vtkCellGridComputeSides&) = delete;
109};
110
111VTK_ABI_NAMESPACE_END
112#endif // vtkCellGridComputeSides_h
Superclass for algorithms that produce only polydata as output.
Generate sides of input data (cells and/or sides) based on a strategy.
~vtkCellGridComputeSides() override=default
static vtkCellGridComputeSides * New()
vtkNew< vtkCellGridSidesQuery > Request
virtual void SetPreserveRenderableInputs(bool preserve)
Set/get whether the output should include cells which are themselves renderable (surfaces,...
SummaryStrategy GetStrategy()
virtual void SetStrategy(int strategy)
This method exists for ParaView to set the strategy.
SelectionMode GetSelectionType()
virtual void SetOmitSidesForRenderableInputs(bool omit)
Set/get whether sides should be computed if the cells are themselves renderable (surfaces,...
virtual void SetStrategy(SummaryStrategy strategy)
Set/get the strategy used to determine which input sides appear in the output.
int RequestData(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *ouInfo) override
This is called by the superclass.
virtual void SetOutputDimensionControl(int flags)
Set/get a bit-vector flag indicating which sides of which dimension to generate.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkStringToken GetSideAttribute()
bool GetOmitSidesForRenderableInputs()
virtual void SetSelectionType(int selnType)
This method exists for ParaView to set the selection mode.
virtual void SetSelectionType(SelectionMode selectionType)
Set/get the selection type.
SideFlags
An enum specifying which side(s) each responder should generate.
SummaryStrategy
An enum specifying the strategy by which input hashes are summarized into output Sides entries.
SelectionMode
Indicate how output should be generated or marked so selection works as expected.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:167
Represent a string by its integer hash.