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
vtkOutlineSource::BoxType
int BoxType
Definition: vtkOutlineSource.h:93
vtkOutlineSource
create wireframe outline around bounding box
Definition: vtkOutlineSource.h:39
vtkOutlineSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkOutlineSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
VTK_BOX_TYPE_AXIS_ALIGNED
#define VTK_BOX_TYPE_AXIS_ALIGNED
Definition: vtkOutlineSource.h:35
vtkOutlineSource::New
static vtkOutlineSource * New()
vtkFiltersSourcesModule.h
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkPolyDataAlgorithm.h
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
VTK_BOX_TYPE_ORIENTED
#define VTK_BOX_TYPE_ORIENTED
Definition: vtkOutlineSource.h:36
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOutlineSource::SetBoxTypeToOriented
void SetBoxTypeToOriented()
Definition: vtkOutlineSource.h:53
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkOutlineSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkOutlineSource.h:95
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkSetVectorMacro
#define vtkSetVectorMacro(name, type, count)
Definition: vtkSetGet.h:406
vtkOutlineSource::vtkOutlineSource
vtkOutlineSource()
vtkOutlineSource::GenerateFaces
int GenerateFaces
Definition: vtkOutlineSource.h:94
vtkSetVector6Macro
#define vtkSetVector6Macro(name, type)
Definition: vtkSetGet.h:360
vtkOutlineSource::~vtkOutlineSource
~vtkOutlineSource()
Definition: vtkOutlineSource.h:90
vtkOutlineSource::SetBoxTypeToAxisAligned
void SetBoxTypeToAxisAligned()
Definition: vtkOutlineSource.h:51
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44