VTK
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:
39  static vtkOutlineSource *New();
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 
44 
49  vtkSetMacro(BoxType,int);
50  vtkGetMacro(BoxType,int);
52  {this->SetBoxType(VTK_BOX_TYPE_AXIS_ALIGNED);}
54  {this->SetBoxType(VTK_BOX_TYPE_ORIENTED);}
56 
58 
61  vtkSetVector6Macro(Bounds,double);
62  vtkGetVectorMacro(Bounds,double,6);
64 
66 
72  vtkSetVectorMacro(Corners,double,24);
73  vtkGetVectorMacro(Corners,double,24);
75 
77 
80  vtkSetMacro(GenerateFaces, int);
81  vtkBooleanMacro(GenerateFaces, int);
82  vtkGetMacro(GenerateFaces, int);
84 
86 
91  vtkSetMacro(OutputPointsPrecision,int);
92  vtkGetMacro(OutputPointsPrecision,int);
94 
95 protected:
97  ~vtkOutlineSource() VTK_OVERRIDE {}
98 
100  int BoxType;
103  double Bounds[6];
104  double Corners[24];
105 
106 private:
107  vtkOutlineSource(const vtkOutlineSource&) VTK_DELETE_FUNCTION;
108  void operator=(const vtkOutlineSource&) VTK_DELETE_FUNCTION;
109 };
110 
111 #endif
~vtkOutlineSource() override
#define VTK_BOX_TYPE_AXIS_ALIGNED
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void SetBoxTypeToOriented()
Set box type to AxisAligned (default) or Oriented.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
create wireframe outline around bounding box
#define VTK_BOX_TYPE_ORIENTED
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetBoxTypeToAxisAligned()
Set box type to AxisAligned (default) or Oriented.