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
35
36#include "vtkContourValues.h" // Needed for direct access to ContourValues
37
38class vtkImageData;
39
40class VTKFILTERSCORE_EXPORT vtkSynchronizedTemplates2D : public vtkPolyDataAlgorithm
41{
42public:
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
123protected:
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
134private:
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
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
generate isoline(s) from a structured points set
int GetNumberOfContours()
Get the number of contours in the list of contour values.
void GetValues(double *contourValues)
Fill a supplied list with contour values.
void GenerateValues(int numContours, double rangeStart, double rangeEnd)
Generate numContours equally spaced contour values between specified range.
vtkMTimeType GetMTime() override
Because we delegate to vtkContourValues.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
double * GetValues()
Get a pointer to an array of contour values.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkSynchronizedTemplates2D * New()
double GetValue(int i)
Get the ith contour value.
~vtkSynchronizedTemplates2D() override
@ info
Definition: vtkX3D.h:376
@ value
Definition: vtkX3D.h:220
@ port
Definition: vtkX3D.h:447
@ range
Definition: vtkX3D.h:238
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248