VTK  9.5.20250921
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24
25#define VTK_BOX_TYPE_AXIS_ALIGNED 0
26#define VTK_BOX_TYPE_ORIENTED 1
27
28VTK_ABI_NAMESPACE_BEGIN
29class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkOutlineSource : public vtkPolyDataAlgorithm
30{
31public:
33
38 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
47 vtkSetMacro(BoxType, int);
48 vtkGetMacro(BoxType, int);
50 void SetBoxTypeToOriented() { this->SetBoxType(VTK_BOX_TYPE_ORIENTED); }
52
54
57 vtkSetVector6Macro(Bounds, double);
58 vtkGetVectorMacro(Bounds, double, 6);
60
62
68 vtkSetVectorMacro(Corners, double, 24);
69 vtkGetVectorMacro(Corners, double, 24);
71
73
76 vtkSetMacro(GenerateFaces, vtkTypeBool);
77 vtkBooleanMacro(GenerateFaces, vtkTypeBool);
78 vtkGetMacro(GenerateFaces, vtkTypeBool);
80
82
87 vtkSetMacro(OutputPointsPrecision, int);
88 vtkGetMacro(OutputPointsPrecision, int);
90
91protected:
93 ~vtkOutlineSource() override = default;
94
99 double Bounds[6];
100 double Corners[24];
101
102private:
103 vtkOutlineSource(const vtkOutlineSource&) = delete;
104 void operator=(const vtkOutlineSource&) = delete;
105};
106
107VTK_ABI_NAMESPACE_END
108#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
#define VTK_MARSHALAUTO