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

vtkPolyDataSourceWidget.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPolyDataSourceWidget.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 =========================================================================*/
00048 #ifndef __vtkPolyDataSourceWidget_h
00049 #define __vtkPolyDataSourceWidget_h
00050 
00051 #include "vtk3DWidget.h"
00052 
00053 class vtkPolyDataSource;
00054 
00055 class VTK_HYBRID_EXPORT vtkPolyDataSourceWidget : public vtk3DWidget
00056 {
00057  public:
00058   vtkTypeRevisionMacro(vtkPolyDataSourceWidget, vtk3DWidget);
00059   void PrintSelf(ostream& os, vtkIndent indent);
00060 
00063   virtual void PlaceWidget();
00064 
00069   virtual void PlaceWidget(double bounds[6]) = 0;
00070 
00072 
00073   void PlaceWidget(double xmin, double xmax, double ymin, double ymax, 
00074                    double zmin, double zmax)
00075     {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
00077 
00084   virtual vtkPolyDataSource* GetPolyDataSource() = 0;
00085 
00089   virtual void UpdatePlacement() = 0;
00090 
00091 protected:
00094   vtkPolyDataSourceWidget();
00095 
00096 private:
00097   // this copy constructor and assignment operator are deliberately not
00098   // implemented so that any "accidental" invocation of a copy (pass by value)
00099   // or assignment will trigger linker errors; the class is not meant to
00100   // be used in these ways.  I couldn't resist adding this explanation. :)
00101   vtkPolyDataSourceWidget(const vtkPolyDataSourceWidget&);  // Not implemented.
00102   void operator=(const vtkPolyDataSourceWidget&);  // Not implemented.
00103 };
00104 
00105 #endif