VTK  9.3.20240423
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
23
24#define VTK_BOX_TYPE_AXIS_ALIGNED 0
25#define VTK_BOX_TYPE_ORIENTED 1
26
27VTK_ABI_NAMESPACE_BEGIN
28class VTKFILTERSSOURCES_EXPORT vtkOutlineSource : public vtkPolyDataAlgorithm
29{
30public:
32
37 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
46 vtkSetMacro(BoxType, int);
47 vtkGetMacro(BoxType, int);
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
90protected:
92 ~vtkOutlineSource() override = default;
93
98 double Bounds[6];
99 double Corners[24];
100
101private:
102 vtkOutlineSource(const vtkOutlineSource&) = delete;
103 void operator=(const vtkOutlineSource&) = delete;
104};
105
106VTK_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
static vtkOutlineSource * New()
Standard methods for instantiation.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation.
void SetBoxTypeToOriented()
Set box type to AxisAligned (default) or Oriented.
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