VTK
vtkSynchronizedTemplates2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSynchronizedTemplates2D.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 =========================================================================*/
30 #ifndef vtkSynchronizedTemplates2D_h
31 #define vtkSynchronizedTemplates2D_h
32 
33 #include "vtkFiltersCoreModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
36 #include "vtkContourValues.h" // Needed for direct access to ContourValues
37 
38 class vtkImageData;
39 
40 class VTKFILTERSCORE_EXPORT vtkSynchronizedTemplates2D : public vtkPolyDataAlgorithm
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
50  vtkMTimeType GetMTime() VTK_OVERRIDE;
51 
56  void SetValue(int i, double value) {this->ContourValues->SetValue(i,value);}
57 
61  double GetValue(int i) {return this->ContourValues->GetValue(i);}
62 
67  double *GetValues() {return this->ContourValues->GetValues();}
68 
74  void GetValues(double *contourValues) {
75  this->ContourValues->GetValues(contourValues);}
76 
82  void SetNumberOfContours(int number) {
83  this->ContourValues->SetNumberOfContours(number);}
84 
89  return this->ContourValues->GetNumberOfContours();}
90 
95  void GenerateValues(int numContours, double range[2]) {
96  this->ContourValues->GenerateValues(numContours, range);}
97 
102  void GenerateValues(int numContours, double rangeStart, double rangeEnd)
103  {this->ContourValues->GenerateValues(numContours, rangeStart, rangeEnd);}
104 
106 
110  vtkSetMacro(ComputeScalars,int);
111  vtkGetMacro(ComputeScalars,int);
112  vtkBooleanMacro(ComputeScalars,int);
114 
116 
119  vtkSetMacro(ArrayComponent, int);
120  vtkGetMacro(ArrayComponent, int);
122 
123 protected:
125  ~vtkSynchronizedTemplates2D() VTK_OVERRIDE;
126 
127  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
128  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
129  vtkContourValues *ContourValues;
130 
131  int ComputeScalars;
132  int ArrayComponent;
133 
134 private:
135  vtkSynchronizedTemplates2D(const vtkSynchronizedTemplates2D&) VTK_DELETE_FUNCTION;
136  void operator=(const vtkSynchronizedTemplates2D&) VTK_DELETE_FUNCTION;
137 };
138 
139 
140 #endif
141 
helper object to manage setting and generating contour values
double * GetValues()
Get a pointer to an array of contour values.
Store vtkAlgorithm input/output information.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
double GetValue(int i)
Get the ith contour value.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Store zero or more vtkInformation instances.
int GetNumberOfContours()
Get the number of contours in the list of contour values.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
generate isoline(s) from a structured points set
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.