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 =========================================================================*/
36 #ifndef __vtkPolyDataSourceWidget_h
37 #define __vtkPolyDataSourceWidget_h
38 
39 #include "vtk3DWidget.h"
40 
42 class vtkPolyDataSource;
43 
45 {
46  public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
52  virtual void PlaceWidget();
53 
58  virtual void PlaceWidget(double bounds[6]) = 0;
59 
61 
62  void PlaceWidget(double xmin, double xmax, double ymin, double ymax,
63  double zmin, double zmax)
64  {this->Superclass::PlaceWidget(xmin,xmax,ymin,ymax,zmin,zmax);}
66 
68 
74  virtual vtkPolyDataSource* GetPolyDataSource();
75  virtual vtkPolyDataAlgorithm* GetPolyDataAlgorithm() = 0;
77 
81  virtual void UpdatePlacement() = 0;
82 
83 protected:
87 
88 private:
89  // this copy constructor and assignment operator are deliberately not
90  // implemented so that any "accidental" invocation of a copy (pass by value)
91  // or assignment will trigger linker errors; the class is not meant to
92  // be used in these ways. I couldn't resist adding this explanation. :)
93  vtkPolyDataSourceWidget(const vtkPolyDataSourceWidget&); // Not implemented.
94  void operator=(const vtkPolyDataSourceWidget&); // Not implemented.
95 };
96 
97 #endif
abstract PolyDataSource-based 3D widget
void PlaceWidget(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:37
abstract class whose subclasses generate polygonal data
#define VTK_WIDGETS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
an abstract superclass for 3D widgets
Definition: vtk3DWidget.h:66
virtual void PlaceWidget()