VTK
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 
38 class vtkRenderer;
40 class vtkIntArray;
41 
42 class VTKINTERACTIONWIDGETS_EXPORT vtkContourLineInterpolator : public vtkObject
43 {
44 public:
46 
50  void PrintSelf(ostream& os, vtkIndent indent);
52 
58  virtual int InterpolateLine( vtkRenderer *ren,
60  int idx1, int idx2 ) = 0;
61 
69  virtual int UpdateNode( vtkRenderer *,
71  double * vtkNotUsed(node), int vtkNotUsed(idx) );
72 
88  virtual void GetSpan( int nodeIndex, vtkIntArray *nodeIndices,
90 
91  protected:
94 
95 private:
96  vtkContourLineInterpolator(const vtkContourLineInterpolator&) VTK_DELETE_FUNCTION;
97  void operator=(const vtkContourLineInterpolator&) VTK_DELETE_FUNCTION;
98 };
99 
100 #endif
Defines API for interpolating/modifying nodes from a vtkContourRepresentation.
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.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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:40
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:46
abstract base class for most VTK objects
Definition: vtkObject.h:60
abstract specification for renderers
Definition: vtkRenderer.h:64