VTK
vtkGenericCutter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericCutter.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 =========================================================================*/
48 #ifndef vtkGenericCutter_h
49 #define vtkGenericCutter_h
50 
51 #include "vtkFiltersGenericModule.h" // For export macro
52 #include "vtkPolyDataAlgorithm.h"
53 
54 class vtkContourValues;
55 
58 class vtkPointData;
59 class vtkCellData;
60 
62 {
63 public:
65  void PrintSelf(ostream& os, vtkIndent indent);
66 
69  static vtkGenericCutter *New();
70 
73  void SetValue(int i, double value);
74 
76  double GetValue(int i);
77 
80  double *GetValues();
81 
85  void GetValues(double *contourValues);
86 
90  void SetNumberOfContours(int number);
91 
93  int GetNumberOfContours();
94 
97  void GenerateValues(int numContours, double range[2]);
98 
101  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
102 
105  unsigned long GetMTime();
106 
108 
109  virtual void SetCutFunction(vtkImplicitFunction*);
110  vtkGetObjectMacro(CutFunction,vtkImplicitFunction);
112 
114 
117  vtkSetMacro(GenerateCutScalars,int);
118  vtkGetMacro(GenerateCutScalars,int);
119  vtkBooleanMacro(GenerateCutScalars,int);
121 
123 
125  void SetLocator(vtkIncrementalPointLocator *locator);
126  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
128 
131  void CreateDefaultLocator();
132 
133 protected:
135  ~vtkGenericCutter();
136 
138 
142 
147 
148  // Used internal by vtkGenericAdaptorCell::Contour()
152 
153 private:
154  vtkGenericCutter(const vtkGenericCutter&); // Not implemented.
155  void operator=(const vtkGenericCutter&); // Not implemented.
156 };
157 
158 #endif
159 
160 
abstract interface for implicit functions
cut a vtkGenericDataSet with an implicit function or scalar data
helper object to manage setting and generating contour values
virtual int FillInputPortInformation(int port, vtkInformation *info)
represent and manipulate point attribute data
Definition: vtkPointData.h:36
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
vtkCellData * SecondaryCD
Abstract class in support of both point location and point insertion.
vtkImplicitFunction * CutFunction
#define VTKFILTERSGENERIC_EXPORT
vtkContourValues * ContourValues
vtkPointData * InternalPD
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
vtkIncrementalPointLocator * Locator
Superclass for algorithms that produce only polydata as output.
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPointData * SecondaryPD
Store zero or more vtkInformation instances.