VTK  9.1.0
vtkOutlineSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOutlineSource.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 =========================================================================*/
27 #ifndef vtkOutlineSource_h
28 #define vtkOutlineSource_h
29 
30 #include "vtkFiltersSourcesModule.h" // For export macro
31 #include "vtkPolyDataAlgorithm.h"
32 
33 #define VTK_BOX_TYPE_AXIS_ALIGNED 0
34 #define VTK_BOX_TYPE_ORIENTED 1
35 
36 class VTKFILTERSSOURCES_EXPORT vtkOutlineSource : public vtkPolyDataAlgorithm
37 {
38 public:
40 
43  static vtkOutlineSource* New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
54  vtkSetMacro(BoxType, int);
55  vtkGetMacro(BoxType, int);
56  void SetBoxTypeToAxisAligned() { this->SetBoxType(VTK_BOX_TYPE_AXIS_ALIGNED); }
57  void SetBoxTypeToOriented() { this->SetBoxType(VTK_BOX_TYPE_ORIENTED); }
59 
61 
64  vtkSetVector6Macro(Bounds, double);
65  vtkGetVectorMacro(Bounds, double, 6);
67 
69 
75  vtkSetVectorMacro(Corners, double, 24);
76  vtkGetVectorMacro(Corners, double, 24);
78 
80 
83  vtkSetMacro(GenerateFaces, vtkTypeBool);
84  vtkBooleanMacro(GenerateFaces, vtkTypeBool);
85  vtkGetMacro(GenerateFaces, vtkTypeBool);
87 
89 
94  vtkSetMacro(OutputPointsPrecision, int);
95  vtkGetMacro(OutputPointsPrecision, int);
97 
98 protected:
100  ~vtkOutlineSource() override = default;
101 
103  int BoxType;
106  double Bounds[6];
107  double Corners[24];
108 
109 private:
110  vtkOutlineSource(const vtkOutlineSource&) = delete;
111  void operator=(const vtkOutlineSource&) = delete;
112 };
113 
114 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
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:69
#define VTK_BOX_TYPE_ORIENTED
#define VTK_BOX_TYPE_AXIS_ALIGNED