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 
vtkX3D::value
@ value
Definition: vtkX3D.h:220
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSynchronizedTemplates2D::GenerateValues
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
Definition: vtkSynchronizedTemplates2D.h:95
vtkX3D::range
@ range
Definition: vtkX3D.h:238
vtkSynchronizedTemplates2D
generate isoline(s) from a structured points set
Definition: vtkSynchronizedTemplates2D.h:40
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSynchronizedTemplates2D::GenerateValues
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
Definition: vtkSynchronizedTemplates2D.h:102
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPolyDataAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkObject::GetMTime
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkContourValues
helper object to manage setting and generating contour values
Definition: vtkContourValues.h:35
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSynchronizedTemplates2D::GetNumberOfContours
int GetNumberOfContours()
Get the number of contours in the list of contour values.
Definition: vtkSynchronizedTemplates2D.h:88
vtkSynchronizedTemplates2D::GetValues
void GetValues(double *contourValues)
Fill a supplied list with contour values.
Definition: vtkSynchronizedTemplates2D.h:74
vtkContourValues.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkSynchronizedTemplates2D::GetValue
double GetValue(int i)
Get the ith contour value.
Definition: vtkSynchronizedTemplates2D.h:61
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkSynchronizedTemplates2D::GetValues
double * GetValues()
Get a pointer to an array of contour values.
Definition: vtkSynchronizedTemplates2D.h:67
vtkSynchronizedTemplates2D::SetNumberOfContours
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Definition: vtkSynchronizedTemplates2D.h:82
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44