VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
38 class VTKFILTERSSOURCES_EXPORT vtkOutlineSource : public vtkPolyDataAlgorithm
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 
79 protected:
82 
83  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
84  int BoxType;
86  double Bounds[6];
87  double Corners[24];
88 
89 private:
90  vtkOutlineSource(const vtkOutlineSource&); // Not implemented.
91  void operator=(const vtkOutlineSource&); // Not implemented.
92 };
93 
94 #endif
#define VTK_BOX_TYPE_AXIS_ALIGNED
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.
create wireframe outline around bounding box
#define VTK_BOX_TYPE_ORIENTED
void SetBoxTypeToAxisAligned()