VTK  9.2.5
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=========================================================================*/
30#ifndef vtkOutlineSource_h
31#define vtkOutlineSource_h
32
33#include "vtkFiltersSourcesModule.h" // For export macro
35
36#define VTK_BOX_TYPE_AXIS_ALIGNED 0
37#define VTK_BOX_TYPE_ORIENTED 1
38
39class VTKFILTERSSOURCES_EXPORT vtkOutlineSource : public vtkPolyDataAlgorithm
40{
41public:
43
48 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
57 vtkSetMacro(BoxType, int);
58 vtkGetMacro(BoxType, int);
60 void SetBoxTypeToOriented() { this->SetBoxType(VTK_BOX_TYPE_ORIENTED); }
62
64
67 vtkSetVector6Macro(Bounds, double);
68 vtkGetVectorMacro(Bounds, double, 6);
70
72
78 vtkSetVectorMacro(Corners, double, 24);
79 vtkGetVectorMacro(Corners, double, 24);
81
83
86 vtkSetMacro(GenerateFaces, vtkTypeBool);
87 vtkBooleanMacro(GenerateFaces, vtkTypeBool);
88 vtkGetMacro(GenerateFaces, vtkTypeBool);
90
92
97 vtkSetMacro(OutputPointsPrecision, int);
98 vtkGetMacro(OutputPointsPrecision, int);
100
101protected:
103 ~vtkOutlineSource() override = default;
104
109 double Bounds[6];
110 double Corners[24];
111
112private:
113 vtkOutlineSource(const vtkOutlineSource&) = delete;
114 void operator=(const vtkOutlineSource&) = delete;
115};
116
117#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
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:69
#define VTK_BOX_TYPE_ORIENTED
#define VTK_BOX_TYPE_AXIS_ALIGNED