VTK  9.3.0
vtkOutlineFilter.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
29#ifndef vtkOutlineFilter_h
30#define vtkOutlineFilter_h
31
32#include "vtkFiltersModelingModule.h" // For export macro
34
35VTK_ABI_NAMESPACE_BEGIN
36class VTKFILTERSMODELING_EXPORT vtkOutlineFilter : public vtkPolyDataAlgorithm
37{
38public:
40
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
52 vtkSetMacro(GenerateFaces, vtkTypeBool);
53 vtkBooleanMacro(GenerateFaces, vtkTypeBool);
54 vtkGetMacro(GenerateFaces, vtkTypeBool);
56
58 {
59 ROOT_LEVEL = 0,
60 LEAF_DATASETS = 1,
61 ROOT_AND_LEAFS = 2,
62 SPECIFIED_INDEX = 3
63 };
64
66
76 vtkSetMacro(CompositeStyle, int);
77 vtkGetMacro(CompositeStyle, int);
78 void SetCompositeStyleToRoot() { this->SetCompositeStyle(ROOT_LEVEL); }
79 void SetCompositeStyleToLeafs() { this->SetCompositeStyle(LEAF_DATASETS); }
80 void SetCompositeStyleToRootAndLeafs() { this->SetCompositeStyle(ROOT_AND_LEAFS); }
81 void SetCompositeStyleToSpecifiedIndex() { this->SetCompositeStyle(SPECIFIED_INDEX); }
83
85
92 void AddIndex(unsigned int index);
93 void RemoveIndex(unsigned int index);
96
98
103 vtkSetMacro(OutputPointsPrecision, int);
104 vtkGetMacro(OutputPointsPrecision, int);
106
107protected:
110
114
115 class vtkIndexSet;
116 vtkIndexSet* Indices;
117
118 void AppendOutline(vtkPoints* pts, vtkCellArray* lines, vtkCellArray* faces, double bds[6]);
119
121 int FillInputPortInformation(int port, vtkInformation* info) override;
122
123private:
124 vtkOutlineFilter(const vtkOutlineFilter&) = delete;
125 void operator=(const vtkOutlineFilter&) = delete;
126};
127
128VTK_ABI_NAMESPACE_END
129#endif
object to represent cell connectivity
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
create wireframe outline for an arbitrary data set or composite dataset
void SetCompositeStyleToRootAndLeafs()
Specify a style for creating bounding boxes around input composite datasets.
void RemoveAllIndices()
If the composite style is set to SpecifiedIndex, then one or more flat indices can be specified,...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetCompositeStyleToLeafs()
Specify a style for creating bounding boxes around input composite datasets.
void RemoveIndex(unsigned int index)
If the composite style is set to SpecifiedIndex, then one or more flat indices can be specified,...
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void AppendOutline(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *faces, double bds[6])
void SetCompositeStyleToSpecifiedIndex()
Specify a style for creating bounding boxes around input composite datasets.
void AddIndex(unsigned int index)
If the composite style is set to SpecifiedIndex, then one or more flat indices can be specified,...
~vtkOutlineFilter() override
static vtkOutlineFilter * New()
Standard methods for instantiation.
vtkTypeBool GenerateFaces
vtkIndexSet * Indices
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation.
void SetCompositeStyleToRoot()
Specify a style for creating bounding boxes around input composite datasets.
represent and manipulate 3D points
Definition vtkPoints.h:29
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition vtkABI.h:64