VTK  9.0.20201204
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 "vtk3DWidget.h"
41 #include "vtkInteractionWidgetsModule.h" // For export macro
42 
44 
45 class VTKINTERACTIONWIDGETS_EXPORT vtkPolyDataSourceWidget : public vtk3DWidget
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
55  void PlaceWidget() override;
56 
63  void PlaceWidget(double bounds[6]) override = 0;
64 
69  double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) override
70  {
71  this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
72  }
73 
81  virtual vtkPolyDataAlgorithm* GetPolyDataAlgorithm() = 0;
82 
88  virtual void UpdatePlacement() = 0;
89 
90 protected:
96 
97 private:
98  // this copy constructor and assignment operator are deliberately not
99  // implemented so that any "accidental" invocation of a copy (pass by value)
100  // or assignment will trigger linker errors; the class is not meant to
101  // be used in these ways. I couldn't resist adding this explanation. :)
103  void operator=(const vtkPolyDataSourceWidget&) = delete;
104 };
105 
106 #endif
vtk3DWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtk3DWidget
an abstract superclass for 3D widgets
Definition: vtk3DWidget.h:70
vtkPolyDataSourceWidget::PlaceWidget
void PlaceWidget(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) override
Convenience method brought over from vtkPlaneWidget.
Definition: vtkPolyDataSourceWidget.h:68
vtk3DWidget::PlaceWidget
virtual void PlaceWidget()
vtkPolyDataSourceWidget
abstract PolyDataSource-based 3D widget
Definition: vtkPolyDataSourceWidget.h:45
vtk3DWidget.h
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41