VTK  9.3.20240329
vtkOutlineSource.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
18 #ifndef vtkOutlineSource_h
19 #define vtkOutlineSource_h
20 
21 #include "vtkFiltersSourcesModule.h" // For export macro
22 #include "vtkPolyDataAlgorithm.h"
23 
24 #define VTK_BOX_TYPE_AXIS_ALIGNED 0
25 #define VTK_BOX_TYPE_ORIENTED 1
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKFILTERSSOURCES_EXPORT vtkOutlineSource : public vtkPolyDataAlgorithm
29 {
30 public:
32 
35  static vtkOutlineSource* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
46  vtkSetMacro(BoxType, int);
47  vtkGetMacro(BoxType, int);
48  void SetBoxTypeToAxisAligned() { this->SetBoxType(VTK_BOX_TYPE_AXIS_ALIGNED); }
49  void SetBoxTypeToOriented() { this->SetBoxType(VTK_BOX_TYPE_ORIENTED); }
51 
53 
56  vtkSetVector6Macro(Bounds, double);
57  vtkGetVectorMacro(Bounds, double, 6);
59 
61 
67  vtkSetVectorMacro(Corners, double, 24);
68  vtkGetVectorMacro(Corners, double, 24);
70 
72 
75  vtkSetMacro(GenerateFaces, vtkTypeBool);
76  vtkBooleanMacro(GenerateFaces, vtkTypeBool);
77  vtkGetMacro(GenerateFaces, vtkTypeBool);
79 
81 
86  vtkSetMacro(OutputPointsPrecision, int);
87  vtkGetMacro(OutputPointsPrecision, int);
89 
90 protected:
92  ~vtkOutlineSource() override = default;
93 
95  int BoxType;
98  double Bounds[6];
99  double Corners[24];
100 
101 private:
102  vtkOutlineSource(const vtkOutlineSource&) = delete;
103  void operator=(const vtkOutlineSource&) = delete;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
create wireframe outline around bounding box
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation.
void SetBoxTypeToOriented()
Set box type to AxisAligned (default) or Oriented.
static vtkOutlineSource * New()
Standard methods for instantiation.
vtkTypeBool GenerateFaces
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetBoxTypeToAxisAligned()
Set box type to AxisAligned (default) or Oriented.
~vtkOutlineSource() override=default
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition: vtkABI.h:64
#define VTK_BOX_TYPE_ORIENTED
#define VTK_BOX_TYPE_AXIS_ALIGNED