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   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00040 #ifndef __vtkPolyDataSourceWidget_h
00041 #define __vtkPolyDataSourceWidget_h
00042 
00043 #include "vtk3DWidget.h"
00044 
00045 class vtkPolyDataSource;
00046 
00047 class VTK_HYBRID_EXPORT vtkPolyDataSourceWidget : public vtk3DWidget
00048 {
00049  public:
00050   vtkTypeRevisionMacro(vtkPolyDataSourceWidget, vtk3DWidget);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052 
00055   virtual void PlaceWidget();
00056 
00061   virtual void PlaceWidget(float bounds[6]) = 0;
00062 
00064 
00065   void PlaceWidget(float xmin, float xmax, float ymin, float ymax, 
00066                    float zmin, float zmax)
00067     {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
00069 
00076   virtual vtkPolyDataSource* GetPolyDataSource() = 0;
00077 
00081   virtual void UpdatePlacement() = 0;
00082 
00083 protected:
00086   vtkPolyDataSourceWidget();
00087 
00088 private:
00089   // this copy constructor and assignment operator are deliberately not
00090   // implemented so that any "accidental" invocation of a copy (pass by value)
00091   // or assignment will trigger linker errors; the class is not meant to
00092   // be used in these ways.  I couldn't resist adding this explanation. :)
00093   vtkPolyDataSourceWidget(const vtkPolyDataSourceWidget&);  // Not implemented.
00094   void operator=(const vtkPolyDataSourceWidget&);  // Not implemented.
00095 };
00096 
00097 #endif