Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkOutlineSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkOutlineSource.h,v $
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 =========================================================================*/
00038 #ifndef __vtkOutlineSource_h
00039 #define __vtkOutlineSource_h
00040 
00041 #include "vtkPolyDataSource.h"
00042 
00043 #define VTK_BOX_TYPE_AXIS_ALIGNED 0
00044 #define VTK_BOX_TYPE_ORIENTED     1
00045 
00046 class VTK_GRAPHICS_EXPORT vtkOutlineSource : public vtkPolyDataSource 
00047 {
00048 public:
00049   static vtkOutlineSource *New();
00050   vtkTypeRevisionMacro(vtkOutlineSource,vtkPolyDataSource);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052 
00054 
00057   vtkSetMacro(BoxType,int);
00058   vtkGetMacro(BoxType,int);
00059   void SetBoxTypeToAxisAligned() 
00060     {this->SetBoxType(VTK_BOX_TYPE_AXIS_ALIGNED);}
00061   void SetBoxTypeToOriented() 
00062     {this->SetBoxType(VTK_BOX_TYPE_ORIENTED);}
00064 
00066 
00067   vtkSetVector6Macro(Bounds,double);
00068   vtkGetVectorMacro(Bounds,double,6);
00070 
00072 
00076   vtkSetVectorMacro(Corners,double,24);
00077   vtkGetVectorMacro(Corners,double,24);
00079 
00080 protected:
00081   vtkOutlineSource();
00082   ~vtkOutlineSource() {}
00083 
00084   void Execute();
00085   int   BoxType;
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
00095 
00096