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

Hybrid/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 =========================================================================*/
00036 #ifndef __vtkPolyDataSourceWidget_h
00037 #define __vtkPolyDataSourceWidget_h
00038 
00039 #include "vtk3DWidget.h"
00040 
00041 class vtkPolyDataSource;
00042 
00043 class VTK_HYBRID_EXPORT vtkPolyDataSourceWidget : public vtk3DWidget
00044 {
00045  public:
00046   vtkTypeRevisionMacro(vtkPolyDataSourceWidget, vtk3DWidget);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00051   virtual void PlaceWidget();
00052 
00057   virtual void PlaceWidget(double bounds[6]) = 0;
00058 
00060 
00061   void PlaceWidget(double xmin, double xmax, double ymin, double ymax, 
00062                    double zmin, double zmax)
00063     {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
00065 
00072   virtual vtkPolyDataSource* GetPolyDataSource() = 0;
00073 
00077   virtual void UpdatePlacement() = 0;
00078 
00079 protected:
00082   vtkPolyDataSourceWidget();
00083 
00084 private:
00085   // this copy constructor and assignment operator are deliberately not
00086   // implemented so that any "accidental" invocation of a copy (pass by value)
00087   // or assignment will trigger linker errors; the class is not meant to
00088   // be used in these ways.  I couldn't resist adding this explanation. :)
00089   vtkPolyDataSourceWidget(const vtkPolyDataSourceWidget&);  // Not implemented.
00090   void operator=(const vtkPolyDataSourceWidget&);  // Not implemented.
00091 };
00092 
00093 #endif