VTK  9.3.20240418
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 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkRenderer;
29 class vtkIntArray;
30 
31 class VTKINTERACTIONWIDGETS_EXPORT vtkContourLineInterpolator : public vtkObject
32 {
33 public:
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 
77 protected:
80 
81 private:
83  void operator=(const vtkContourLineInterpolator&) = delete;
84 };
85 
86 VTK_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
Definition: vtkIntArray.h:144
abstract base class for most VTK objects
Definition: vtkObject.h:162
abstract specification for renderers
Definition: vtkRenderer.h:172