VTK: Filters/Sources/vtkOutlineSource.h Source File

| VTK 9.3.1

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();
36 vtkTypeMacro(vtkOutlineSource, vtkPolyDataAlgorithm);
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:
91 vtkOutlineSource();
92 ~vtkOutlineSource() override = default;
93
94 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
95 int BoxType;
96 vtkTypeBool GenerateFaces;
97 int OutputPointsPrecision;
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
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkOutlineSource
create wireframe outline around bounding box
Definition: vtkOutlineSource.h:29
vtkOutlineSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation.
vtkOutlineSource::BoxType
int BoxType
Definition: vtkOutlineSource.h:95
vtkOutlineSource::SetBoxTypeToOriented
void SetBoxTypeToOriented()
Set box type to AxisAligned (default) or Oriented.
Definition: vtkOutlineSource.h:49
vtkOutlineSource::New
static vtkOutlineSource * New()
Standard methods for instantiation.
vtkOutlineSource::GenerateFaces
vtkTypeBool GenerateFaces
Definition: vtkOutlineSource.h:96
vtkOutlineSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkOutlineSource::SetBoxTypeToAxisAligned
void SetBoxTypeToAxisAligned()
Set box type to AxisAligned (default) or Oriented.
Definition: vtkOutlineSource.h:48
vtkOutlineSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkOutlineSource.h:97
vtkOutlineSource::vtkOutlineSource
vtkOutlineSource()
vtkOutlineSource::~vtkOutlineSource
~vtkOutlineSource() override=default
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
VTK_BOX_TYPE_ORIENTED
#define VTK_BOX_TYPE_ORIENTED
Definition: vtkOutlineSource.h:25
VTK_BOX_TYPE_AXIS_ALIGNED
#define VTK_BOX_TYPE_AXIS_ALIGNED
Definition: vtkOutlineSource.h:24
vtkPolyDataAlgorithm.h