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 "vtkPolyDataAlgorithm.h"
52 
53 class vtkContourValues;
54 
57 class vtkPointData;
58 class vtkCellData;
59 
61 {
62 public:
64  void PrintSelf(ostream& os, vtkIndent indent);
65 
68  static vtkGenericCutter *New();
69 
72  void SetValue(int i, double value);
73 
75  double GetValue(int i);
76 
79  double *GetValues();
80 
84  void GetValues(double *contourValues);
85 
89  void SetNumberOfContours(int number);
90 
92  int GetNumberOfContours();
93 
96  void GenerateValues(int numContours, double range[2]);
97 
100  void GenerateValues(int numContours, double rangeStart, double rangeEnd);
101 
104  unsigned long GetMTime();
105 
107 
108  virtual void SetCutFunction(vtkImplicitFunction*);
109  vtkGetObjectMacro(CutFunction,vtkImplicitFunction);
111 
113 
116  vtkSetMacro(GenerateCutScalars,int);
117  vtkGetMacro(GenerateCutScalars,int);
118  vtkBooleanMacro(GenerateCutScalars,int);
120 
122 
124  void SetLocator(vtkIncrementalPointLocator *locator);
125  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
127 
130  void CreateDefaultLocator();
131 
132 protected:
134  ~vtkGenericCutter();
135 
137 
141 
146 
147  // Used internal by vtkGenericAdaptorCell::Contour()
151 
152 private:
153  vtkGenericCutter(const vtkGenericCutter&); // Not implemented.
154  void operator=(const vtkGenericCutter&); // Not implemented.
155 };
156 
157 #endif
158 
159 
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:35
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
represent and manipulate cell attribute data
Definition: vtkCellData.h:36
vtkCellData * SecondaryCD
Abstract class in support of both point location and point insertion.
vtkImplicitFunction * CutFunction
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:37
vtkPointData * SecondaryPD
#define VTK_GENERIC_FILTERING_EXPORT
Store zero or more vtkInformation instances.