VTK
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 =========================================================================*/
30 #ifndef vtkOutlineFilter_h
31 #define vtkOutlineFilter_h
32 
33 #include "vtkFiltersModelingModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
36 class VTKFILTERSMODELING_EXPORT vtkOutlineFilter : public vtkPolyDataAlgorithm
37 {
38 public:
40 
43  static vtkOutlineFilter *New();
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);
79  { this->SetCompositeStyle(ROOT_LEVEL); }
81  { this->SetCompositeStyle(LEAF_DATASETS); }
83  { this->SetCompositeStyle(ROOT_AND_LEAFS); }
85  { this->SetCompositeStyle(SPECIFIED_INDEX); }
87 
89 
96  void AddIndex(unsigned int index);
97  void RemoveIndex(unsigned int index);
98  void RemoveAllIndices();
100 
102 
107  vtkSetMacro(OutputPointsPrecision,int);
108  vtkGetMacro(OutputPointsPrecision,int);
110 
111 protected:
113  ~vtkOutlineFilter() override;
114 
118 
119  class vtkIndexSet;
120  vtkIndexSet *Indices;
121 
122  void AppendOutline(vtkPoints *pts, vtkCellArray *lines, vtkCellArray *faces,
123  double bds[6]);
124 
126  int FillInputPortInformation(int port, vtkInformation *info) override;
127 
128 
129 
130 private:
131  vtkOutlineFilter(const vtkOutlineFilter&) = delete;
132  void operator=(const vtkOutlineFilter&) = delete;
133 };
134 
135 #endif
136 // VTK-HeaderTest-Exclude: vtkOutlineFilter.h
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkOutlineFilter::SetCompositeStyleToRootAndLeafs
void SetCompositeStyleToRootAndLeafs()
Definition: vtkOutlineFilter.h:82
vtkOutlineFilter::SetCompositeStyleToSpecifiedIndex
void SetCompositeStyleToSpecifiedIndex()
Definition: vtkOutlineFilter.h:84
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkOutlineFilter::Indices
vtkIndexSet * Indices
Definition: vtkOutlineFilter.h:119
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkX3D::port
Definition: vtkX3D.h:447
vtkOutlineFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkOutlineFilter.h:117
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOutlineFilter::SetCompositeStyleToRoot
void SetCompositeStyleToRoot()
Definition: vtkOutlineFilter.h:78
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:169
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkOutlineFilter::GenerateFaces
vtkTypeBool GenerateFaces
Definition: vtkOutlineFilter.h:115
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:70
vtkX3D::info
Definition: vtkX3D.h:376
vtkOutlineFilter::CompositeOutlineStyle
CompositeOutlineStyle
Definition: vtkOutlineFilter.h:57
vtkOutlineFilter::CompositeStyle
int CompositeStyle
Definition: vtkOutlineFilter.h:116
vtkOutlineFilter
create wireframe outline for an arbitrary data set or composite dataset
Definition: vtkOutlineFilter.h:36
vtkX3D::index
Definition: vtkX3D.h:246
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkOutlineFilter::SetCompositeStyleToLeafs
void SetCompositeStyleToLeafs()
Definition: vtkOutlineFilter.h:80
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44