VTK  9.1.0
vtkContourLineInterpolator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkContourLineInterpolator.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=========================================================================*/
32#ifndef vtkContourLineInterpolator_h
33#define vtkContourLineInterpolator_h
34
35#include "vtkInteractionWidgetsModule.h" // For export macro
36#include "vtkObject.h"
37
38class vtkRenderer;
40class vtkIntArray;
41
42class VTKINTERACTIONWIDGETS_EXPORT vtkContourLineInterpolator : public vtkObject
43{
44public:
46
50 void PrintSelf(ostream& os, vtkIndent indent) override;
52
58 virtual int InterpolateLine(
59 vtkRenderer* ren, vtkContourRepresentation* rep, int idx1, int idx2) = 0;
60
68 virtual int UpdateNode(
69 vtkRenderer*, vtkContourRepresentation*, double* vtkNotUsed(node), int vtkNotUsed(idx));
70
86 virtual void GetSpan(int nodeIndex, vtkIntArray* nodeIndices, vtkContourRepresentation* rep);
87
88protected:
91
92private:
94 void operator=(const vtkContourLineInterpolator&) = delete;
95};
96
97#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:113
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:149
abstract base class for most VTK objects
Definition: vtkObject.h:73
abstract specification for renderers
Definition: vtkRenderer.h:173