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 
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 
112 
114 
117  vtkSetMacro(GenerateCutScalars,int);
118  vtkGetMacro(GenerateCutScalars,int);
119  vtkBooleanMacro(GenerateCutScalars,int);
121 
123 
128 
132 
133 protected:
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 
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkFiltersGenericModule.h
vtkGenericCutter::SetNumberOfContours
void SetNumberOfContours(int number)
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkGenericCutter::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
vtkGenericCutter::GetValues
void GetValues(double *contourValues)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkGenericCutter
cut a vtkGenericDataSet with an implicit function or scalar data
Definition: vtkGenericCutter.h:62
vtkGenericCutter::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
vtkGenericCutter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::range
GLenum GLint * range
Definition: vtkgl.h:14180
vtkGenericCutter::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *)
vtkPolyDataAlgorithm.h
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:58
vtkgl::value
GLsizei const GLfloat * value
Definition: vtkgl.h:12021
vtkGenericCutter::CutFunction
vtkImplicitFunction * CutFunction
Definition: vtkGenericCutter.h:143
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkGenericCutter::SetValue
void SetValue(int i, double value)
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGenericCutter::SecondaryPD
vtkPointData * SecondaryPD
Definition: vtkGenericCutter.h:150
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
VTKFILTERSGENERIC_EXPORT
#define VTKFILTERSGENERIC_EXPORT
Definition: vtkFiltersGenericModule.h:15
vtkGenericCutter::~vtkGenericCutter
~vtkGenericCutter()
vtkGenericCutter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkGenericCutter.h:144
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGenericCutter::GenerateCutScalars
int GenerateCutScalars
Definition: vtkGenericCutter.h:146
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkGenericCutter::GenerateValues
void GenerateValues(int numContours, double range[2])
vtkGenericCutter::GetValue
double GetValue(int i)
vtkGenericCutter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkGenericCutter::SecondaryCD
vtkCellData * SecondaryCD
Definition: vtkGenericCutter.h:151
vtkGenericCutter::vtkGenericCutter
vtkGenericCutter(vtkImplicitFunction *cf=NULL)
vtkGenericCutter::GetValues
double * GetValues()
vtkGenericCutter::InternalPD
vtkPointData * InternalPD
Definition: vtkGenericCutter.h:149
vtkGenericCutter::GetMTime
unsigned long GetMTime()
vtkGenericCutter::SetCutFunction
virtual void SetCutFunction(vtkImplicitFunction *)
vtkGenericCutter::New
static vtkGenericCutter * New()
vtkGenericCutter::CreateDefaultLocator
void CreateDefaultLocator()
vtkGenericCutter::GetNumberOfContours
int GetNumberOfContours()
vtkGenericCutter::ContourValues
vtkContourValues * ContourValues
Definition: vtkGenericCutter.h:145
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44