VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkExtractEdges.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractEdges.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 =========================================================================*/
31 #ifndef __vtkExtractEdges_h
32 #define __vtkExtractEdges_h
33 
34 #include "vtkFiltersExtractionModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 
37 class vtkIncrementalPointLocator;
38 
39 class VTKFILTERSEXTRACTION_EXPORT vtkExtractEdges : public vtkPolyDataAlgorithm
40 {
41 public:
42  static vtkExtractEdges *New();
43  vtkTypeMacro(vtkExtractEdges,vtkPolyDataAlgorithm);
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
49  void SetLocator(vtkIncrementalPointLocator *locator);
50  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
52 
54  void CreateDefaultLocator();
55 
57  unsigned long GetMTime();
58 
59 protected:
61  ~vtkExtractEdges();
62 
63  // Usual data generation method
64  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
65 
66  virtual int FillInputPortInformation(int port, vtkInformation *info);
67 
68  vtkIncrementalPointLocator *Locator;
69 private:
70  vtkExtractEdges(const vtkExtractEdges&); // Not implemented.
71  void operator=(const vtkExtractEdges&); // Not implemented.
72 };
73 
74 #endif
75 
76 
vtkIncrementalPointLocator * Locator
extract cell edges from any type of data