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 =========================================================================*/
00052 #ifndef __vtkPolyDataSourceWidget_h
00053 #define __vtkPolyDataSourceWidget_h
00054 
00055 #include "vtk3DWidget.h"
00056 
00057 class vtkPolyDataSource;
00058 
00059 class VTK_HYBRID_EXPORT vtkPolyDataSourceWidget : public vtk3DWidget
00060 {
00061  public:
00062   vtkTypeRevisionMacro(vtkPolyDataSourceWidget, vtk3DWidget);
00063   void PrintSelf(ostream& os, vtkIndent indent);
00064 
00067   virtual void PlaceWidget();
00068 
00073   virtual void PlaceWidget(float bounds[6]) = 0;
00074 
00076 
00077   void PlaceWidget(float xmin, float xmax, float ymin, float ymax, 
00078                    float zmin, float zmax)
00079     {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
00081 
00088   virtual vtkPolyDataSource* GetPolyDataSource() = 0;
00089 
00093   virtual void UpdatePlacement() = 0;
00094 
00095 protected:
00098   vtkPolyDataSourceWidget();
00099 
00100 private:
00101   // this copy constructor and assignment operator are deliberately not
00102   // implemented so that any "accidental" invocation of a copy (pass by value)
00103   // or assignment will trigger linker errors; the class is not meant to
00104   // be used in these ways.  I couldn't resist adding this explanation. :)
00105   vtkPolyDataSourceWidget(const vtkPolyDataSourceWidget&);  // Not implemented.
00106   void operator=(const vtkPolyDataSourceWidget&);  // Not implemented.
00107 };
00108 
00109 #endif