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 =========================================================================*/
30 #ifndef vtkOutlineSource_h
31 #define vtkOutlineSource_h
32 
33 #include "vtkFiltersSourcesModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
36 #define VTK_BOX_TYPE_AXIS_ALIGNED 0
37 #define VTK_BOX_TYPE_ORIENTED 1
38 
39 class VTKFILTERSSOURCES_EXPORT vtkOutlineSource : public vtkPolyDataAlgorithm
40 {
41 public:
42  static vtkOutlineSource *New();
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
47 
52  vtkSetMacro(BoxType,int);
53  vtkGetMacro(BoxType,int);
55  {this->SetBoxType(VTK_BOX_TYPE_AXIS_ALIGNED);}
57  {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, int);
84  vtkBooleanMacro(GenerateFaces, int);
85  vtkGetMacro(GenerateFaces, int);
87 
89 
94  vtkSetMacro(OutputPointsPrecision,int);
95  vtkGetMacro(OutputPointsPrecision,int);
97 
98 protected:
100  ~vtkOutlineSource() VTK_OVERRIDE {}
101 
103  int BoxType;
106  double Bounds[6];
107  double Corners[24];
108 
109 private:
110  vtkOutlineSource(const vtkOutlineSource&) VTK_DELETE_FUNCTION;
111  void operator=(const vtkOutlineSource&) VTK_DELETE_FUNCTION;
112 };
113 
114 #endif
vtkOutlineSource::BoxType
int BoxType
Definition: vtkOutlineSource.h:103
vtkOutlineSource
create wireframe outline around bounding box
Definition: vtkOutlineSource.h:39
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
VTK_BOX_TYPE_AXIS_ALIGNED
#define VTK_BOX_TYPE_AXIS_ALIGNED
Definition: vtkOutlineSource.h:36
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
VTK_BOX_TYPE_ORIENTED
#define VTK_BOX_TYPE_ORIENTED
Definition: vtkOutlineSource.h:37
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOutlineSource::SetBoxTypeToOriented
void SetBoxTypeToOriented()
Definition: vtkOutlineSource.h:56
vtkOutlineSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkOutlineSource.h:105
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkOutlineSource::GenerateFaces
int GenerateFaces
Definition: vtkOutlineSource.h:104
vtkOutlineSource::~vtkOutlineSource
~vtkOutlineSource() override
Definition: vtkOutlineSource.h:100
vtkOutlineSource::SetBoxTypeToAxisAligned
void SetBoxTypeToAxisAligned()
Definition: vtkOutlineSource.h:54
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44