VTK
dox/Filters/Sources/vtkOutlineSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkOutlineSource.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00029 #ifndef __vtkOutlineSource_h
00030 #define __vtkOutlineSource_h
00031 
00032 #include "vtkFiltersSourcesModule.h" // For export macro
00033 #include "vtkPolyDataAlgorithm.h"
00034 
00035 #define VTK_BOX_TYPE_AXIS_ALIGNED 0
00036 #define VTK_BOX_TYPE_ORIENTED     1
00037 
00038 class VTKFILTERSSOURCES_EXPORT vtkOutlineSource : public vtkPolyDataAlgorithm
00039 {
00040 public:
00041   static vtkOutlineSource *New();
00042   vtkTypeMacro(vtkOutlineSource,vtkPolyDataAlgorithm);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00049   vtkSetMacro(BoxType,int);
00050   vtkGetMacro(BoxType,int);
00051   void SetBoxTypeToAxisAligned()
00052     {this->SetBoxType(VTK_BOX_TYPE_AXIS_ALIGNED);}
00053   void SetBoxTypeToOriented()
00054     {this->SetBoxType(VTK_BOX_TYPE_ORIENTED);}
00056 
00058 
00059   vtkSetVector6Macro(Bounds,double);
00060   vtkGetVectorMacro(Bounds,double,6);
00062 
00064 
00068   vtkSetVectorMacro(Corners,double,24);
00069   vtkGetVectorMacro(Corners,double,24);
00071 
00073 
00074   vtkSetMacro(GenerateFaces, int);
00075   vtkBooleanMacro(GenerateFaces, int);
00076   vtkGetMacro(GenerateFaces, int);
00078 
00079 protected:
00080   vtkOutlineSource();
00081   ~vtkOutlineSource() {}
00082 
00083   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00084   int   BoxType;
00085   int   GenerateFaces;
00086   double Bounds[6];
00087   double Corners[24];
00088 
00089 private:
00090   vtkOutlineSource(const vtkOutlineSource&);  // Not implemented.
00091   void operator=(const vtkOutlineSource&);  // Not implemented.
00092 };
00093 
00094 #endif