42 #ifndef vtkContourFilter_h
43 #define vtkContourFilter_h
45 #include "vtkFiltersCoreModule.h"
51 VTK_ABI_NAMESPACE_BEGIN
81 void SetValue(
int i,
double value);
82 double GetValue(
int i);
84 void GetValues(
double* contourValues);
85 void SetNumberOfContours(
int number);
86 int GetNumberOfContours();
87 void GenerateValues(
int numContours,
double range[2]);
88 void GenerateValues(
int numContours,
double rangeStart,
double rangeEnd);
89 void SetContourValues(
const std::vector<double>& values);
90 std::vector<double> GetContourValues();
111 vtkSetMacro(ComputeNormals,
int);
112 vtkGetMacro(ComputeNormals,
int);
113 vtkBooleanMacro(ComputeNormals,
int);
170 void CreateDefaultLocator();
177 vtkSetMacro(ArrayComponent,
int);
178 vtkGetMacro(ArrayComponent,
int);
200 vtkSetMacro(OutputPointsPrecision,
int);
201 vtkGetMacro(OutputPointsPrecision,
int);
213 vtkSetMacro(FastMode,
bool);
214 vtkGetMacro(FastMode,
bool);
215 vtkBooleanMacro(FastMode,
bool);
261 static void InternalProgressCallbackFunction(
262 vtkObject* caller,
unsigned long eid,
void* clientData,
void* callData);
347 int numContours =
static_cast<int>(values.size());
349 for (
int i = 0; i < numContours; i++)
362 std::vector<double> contours;
364 contours.reserve(numContours);
365 for (
int i = 0; i < numContours; i++)
367 contours.push_back(this->
GetValue(i));
372 VTK_ABI_NAMESPACE_END
generate isosurface from 3D image data (volume)
abstract base class for most VTK objects
generate isosurfaces/isolines from scalar values (specialized for unstructured grids) ...
vtkTypeBool UseScalarTree
vtkIncrementalPointLocator * Locator
vtkTypeUInt32 vtkMTimeType
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
generate isosurface from structured grids
vtkNew< vtkContourValues > ContourValues
void ReportReferences(vtkGarbageCollector *) override
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
Abstract class in support of both point location and point insertion.
void SetInputArray(const std::string &name)
Sets the name of the input array to be used for generating the isosurfaces.
vtkNew< vtkCallbackCommand > InternalProgressCallbackCommand
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
double GetValue(int i)
Get the ith contour value.
void SetInputArrayToProcess(const char *name, int fieldAssociation, int component=vtkArrayComponents::AllComponents)
Set the input data arrays that this algorithm will process.
Detect and break reference loops.
generate isosurface from structured points
vtkNew< vtkGridSynchronizedTemplates3D > GridSynchronizedTemplates
vtkNew< vtkContour3DLinearGrid > Contour3DLinearGrid
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetValue(int i, double value)
Methods to set / get contour values.
fast generation of isosurface from 3D linear cells
double * GetValues()
Return a pointer to a list of contour values.
supports function callbacks
Superclass for algorithms that produce only polydata as output.
void GenerateValues(int numContours, double range[2])
Generate numContours equally spaced contour values between specified range.
generate isosurfaces/isolines from scalar values
a simple class to control print indentation
vtkTypeBool ComputeScalars
int GetNumberOfContours()
Get the number of contours in the list of contour values.
generate isoline(s) from a structured points (image) dataset
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkScalarTree * ScalarTree
vtkNew< vtkFlyingEdges3D > FlyingEdges3D
organize data according to scalar values (used to accelerate contouring operations) ...
vtkTypeBool GenerateTriangles
generate isosurface from rectilinear grid
std::vector< double > GetContourValues()
Convenience method to get all of the contour values at once.
vtkNew< vtkContourGrid > ContourGrid
double GetValue(int i)
Get the ith contour value.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int OutputPointsPrecision
vtkTypeBool ComputeGradients
int GetNumberOfContours()
Return the number of contours in the.
vtkNew< vtkSynchronizedTemplates2D > SynchronizedTemplates2D
vtkNew< vtkFlyingEdges2D > FlyingEdges2D
generate isoline(s) from a structured points set
void SetValue(int i, double value)
Set the ith contour value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double * GetValues()
Get a pointer to an array of contour values.
void SetNumberOfContours(int number)
Set the number of contours to place into the list.
vtkNew< vtkRectilinearSynchronizedTemplates > RectilinearSynchronizedTemplates
void SetContourValues(const std::vector< double > &values)
Convenience method to set all of the contour values at once.
vtkNew< vtkSynchronizedTemplates3D > SynchronizedTemplates3D