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
45class 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
80
86 virtual void UpdatePlacement() = 0;
87
88protected:
94
95private:
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
an abstract superclass for 3D widgets
Definition: vtk3DWidget.h:68
a simple class to control print indentation
Definition: vtkIndent.h:40
Superclass for algorithms that produce only polydata as output.
abstract PolyDataSource-based 3D widget
virtual void UpdatePlacement()=0
If you've made changes to the underlying vtkPolyDataSource AFTER your initial call to PlaceWidget(),...
void PlaceWidget(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Convenience method brought over from vtkPlaneWidget.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual vtkPolyDataAlgorithm * GetPolyDataAlgorithm()=0
Returns underlying vtkPolyDataAlgorithm that determines geometry.
vtkPolyDataSourceWidget()
Empty constructor that calls the parent constructor.
virtual void PlaceWidget()
Overrides vtk3DWidget PlaceWidget() so that it doesn't complain if there's no Input and no Prop3D.
virtual void PlaceWidget(double bounds[6])=0
We have to redeclare this abstract, PlaceWidget() requires it.