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 =========================================================================*/
29 #ifndef vtkOutlineSource_h
30 #define vtkOutlineSource_h
31 
32 #include "vtkFiltersSourcesModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 
35 #define VTK_BOX_TYPE_AXIS_ALIGNED 0
36 #define VTK_BOX_TYPE_ORIENTED 1
37 
39 {
40 public:
41  static vtkOutlineSource *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
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 
59  vtkSetVector6Macro(Bounds,double);
60  vtkGetVectorMacro(Bounds,double,6);
62 
64 
68  vtkSetVectorMacro(Corners,double,24);
69  vtkGetVectorMacro(Corners,double,24);
71 
73 
74  vtkSetMacro(GenerateFaces, int);
75  vtkBooleanMacro(GenerateFaces, int);
76  vtkGetMacro(GenerateFaces, int);
78 
80 
84  vtkSetMacro(OutputPointsPrecision,int);
85  vtkGetMacro(OutputPointsPrecision,int);
87 
88 protected:
91 
93  int BoxType;
96  double Bounds[6];
97  double Corners[24];
98 
99 private:
100  vtkOutlineSource(const vtkOutlineSource&); // Not implemented.
101  void operator=(const vtkOutlineSource&); // Not implemented.
102 };
103 
104 #endif
#define VTK_BOX_TYPE_AXIS_ALIGNED
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
create wireframe outline around bounding box
#define VTK_BOX_TYPE_ORIENTED
Store zero or more vtkInformation instances.
void SetBoxTypeToAxisAligned()