VTK
vtkPolyDataSourceWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataSourceWidget.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
37 #ifndef vtkPolyDataSourceWidget_h
38 #define vtkPolyDataSourceWidget_h
39 
40 #include "vtkInteractionWidgetsModule.h" // For export macro
41 #include "vtk3DWidget.h"
42 
44 
45 class VTKINTERACTIONWIDGETS_EXPORT vtkPolyDataSourceWidget : public vtk3DWidget
46 {
47  public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
55  virtual void PlaceWidget();
56 
63  virtual void PlaceWidget(double bounds[6]) = 0;
64 
68  void PlaceWidget(double xmin, double xmax, double ymin, double ymax,
69  double zmin, double zmax)
70  {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
71 
79  virtual vtkPolyDataAlgorithm* GetPolyDataAlgorithm() = 0;
80 
86  virtual void UpdatePlacement() = 0;
87 
88 protected:
94 
95 private:
96  // this copy constructor and assignment operator are deliberately not
97  // implemented so that any "accidental" invocation of a copy (pass by value)
98  // or assignment will trigger linker errors; the class is not meant to
99  // be used in these ways. I couldn't resist adding this explanation. :)
100  vtkPolyDataSourceWidget(const vtkPolyDataSourceWidget&) VTK_DELETE_FUNCTION;
101  void operator=(const vtkPolyDataSourceWidget&) VTK_DELETE_FUNCTION;
102 };
103 
104 #endif
abstract PolyDataSource-based 3D widget
void PlaceWidget(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Convenience method brought over from vtkPlaneWidget.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
an abstract superclass for 3D widgets
Definition: vtk3DWidget.h:67
virtual void PlaceWidget()
This method is used to initially place the widget.