VTK  9.2.6
vtkOutlineFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOutlineFilter.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=========================================================================*/
50#ifndef vtkOutlineFilter_h
51#define vtkOutlineFilter_h
52
53#include "vtkFiltersModelingModule.h" // For export macro
55
56class VTKFILTERSMODELING_EXPORT vtkOutlineFilter : public vtkPolyDataAlgorithm
57{
58public:
60
65 void PrintSelf(ostream& os, vtkIndent indent) override;
67
69
72 vtkSetMacro(GenerateFaces, vtkTypeBool);
73 vtkBooleanMacro(GenerateFaces, vtkTypeBool);
74 vtkGetMacro(GenerateFaces, vtkTypeBool);
76
78 {
79 ROOT_LEVEL = 0,
80 LEAF_DATASETS = 1,
81 ROOT_AND_LEAFS = 2,
82 SPECIFIED_INDEX = 3
83 };
84
86
96 vtkSetMacro(CompositeStyle, int);
97 vtkGetMacro(CompositeStyle, int);
98 void SetCompositeStyleToRoot() { this->SetCompositeStyle(ROOT_LEVEL); }
99 void SetCompositeStyleToLeafs() { this->SetCompositeStyle(LEAF_DATASETS); }
100 void SetCompositeStyleToRootAndLeafs() { this->SetCompositeStyle(ROOT_AND_LEAFS); }
101 void SetCompositeStyleToSpecifiedIndex() { this->SetCompositeStyle(SPECIFIED_INDEX); }
103
105
112 void AddIndex(unsigned int index);
113 void RemoveIndex(unsigned int index);
116
118
123 vtkSetMacro(OutputPointsPrecision, int);
124 vtkGetMacro(OutputPointsPrecision, int);
126
127protected:
130
134
135 class vtkIndexSet;
136 vtkIndexSet* Indices;
137
138 void AppendOutline(vtkPoints* pts, vtkCellArray* lines, vtkCellArray* faces, double bds[6]);
139
141 int FillInputPortInformation(int port, vtkInformation* info) override;
142
143private:
144 vtkOutlineFilter(const vtkOutlineFilter&) = delete;
145 void operator=(const vtkOutlineFilter&) = delete;
146};
147
148#endif
object to represent cell connectivity
a simple class to control print indentation
Definition vtkIndent.h:49
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:49
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition vtkABI.h:69