VTK  9.4.20241226
vtkContourLineInterpolator.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
20#ifndef vtkContourLineInterpolator_h
21#define vtkContourLineInterpolator_h
22
23#include "vtkInteractionWidgetsModule.h" // For export macro
24#include "vtkObject.h"
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkRenderer;
29class vtkIntArray;
30
31class VTKINTERACTIONWIDGETS_EXPORT vtkContourLineInterpolator : public vtkObject
32{
33public:
35
39 void PrintSelf(ostream& os, vtkIndent indent) override;
41
47 virtual int InterpolateLine(
48 vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) = 0;
49
57 virtual int UpdateNode(
58 vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node), int vtkNotUsed(idx));
59
75 virtual void GetSpan(int nodeIndex, vtkIntArray* nodeIndices, vtkContourRepresentation* rep);
76
77protected:
80
81private:
83 void operator=(const vtkContourLineInterpolator&) = delete;
84};
85
86VTK_ABI_NAMESPACE_END
87#endif
Defines API for interpolating/modifying nodes from a vtkContourRepresentation.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
virtual int UpdateNode(vtkRenderer *, vtkContourRepresentation *, double *vtkNotUsed(node), int vtkNotUsed(idx))
The interpolator is given a chance to update the node.
virtual int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2)=0
Subclasses that wish to interpolate a line segment must implement this.
~vtkContourLineInterpolator() override
virtual void GetSpan(int nodeIndex, vtkIntArray *nodeIndices, vtkContourRepresentation *rep)
Span of the interpolator.
represent the vtkContourWidget
a simple class to control print indentation
Definition vtkIndent.h:108
dynamic, self-adjusting array of int
abstract base class for most VTK objects
Definition vtkObject.h:162
abstract specification for renderers