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 =========================================================================*/
41 #ifndef vtkOutlineFilter_h
42 #define vtkOutlineFilter_h
43 
44 #include "vtkFiltersModelingModule.h" // For export macro
45 #include "vtkPolyDataAlgorithm.h"
46 
47 class VTKFILTERSMODELING_EXPORT vtkOutlineFilter : public vtkPolyDataAlgorithm
48 {
49 public:
51 
54  static vtkOutlineFilter* New();
56  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
63  vtkSetMacro(GenerateFaces, vtkTypeBool);
64  vtkBooleanMacro(GenerateFaces, vtkTypeBool);
65  vtkGetMacro(GenerateFaces, vtkTypeBool);
67 
69  {
70  ROOT_LEVEL = 0,
71  LEAF_DATASETS = 1,
72  ROOT_AND_LEAFS = 2,
73  SPECIFIED_INDEX = 3
74  };
75 
77 
87  vtkSetMacro(CompositeStyle, int);
88  vtkGetMacro(CompositeStyle, int);
89  void SetCompositeStyleToRoot() { this->SetCompositeStyle(ROOT_LEVEL); }
90  void SetCompositeStyleToLeafs() { this->SetCompositeStyle(LEAF_DATASETS); }
91  void SetCompositeStyleToRootAndLeafs() { this->SetCompositeStyle(ROOT_AND_LEAFS); }
92  void SetCompositeStyleToSpecifiedIndex() { this->SetCompositeStyle(SPECIFIED_INDEX); }
94 
96 
103  void AddIndex(unsigned int index);
104  void RemoveIndex(unsigned int index);
105  void RemoveAllIndices();
107 
109 
114  vtkSetMacro(OutputPointsPrecision, int);
115  vtkGetMacro(OutputPointsPrecision, int);
117 
118 protected:
120  ~vtkOutlineFilter() override;
121 
125 
126  class vtkIndexSet;
127  vtkIndexSet* Indices;
128 
129  void AppendOutline(vtkPoints* pts, vtkCellArray* lines, vtkCellArray* faces, double bds[6]);
130 
132  int FillInputPortInformation(int port, vtkInformation* info) override;
133 
134 private:
135  vtkOutlineFilter(const vtkOutlineFilter&) = delete;
136  void operator=(const vtkOutlineFilter&) = delete;
137 };
138 
139 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void SetCompositeStyleToRoot()
Specify a style for creating bounding boxes around input composite datasets.
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
create wireframe outline for an arbitrary data set or composite dataset
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
void SetCompositeStyleToLeafs()
Specify a style for creating bounding boxes around input composite datasets.
object to represent cell connectivity
Definition: vtkCellArray.h:186
void SetCompositeStyleToRootAndLeafs()
Specify a style for creating bounding boxes around input composite datasets.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
vtkIndexSet * Indices
void SetCompositeStyleToSpecifiedIndex()
Specify a style for creating bounding boxes around input composite datasets.
vtkTypeBool GenerateFaces
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.