VTK
vtkBezierContourLineInterpolator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBezierContourLineInterpolator.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 =========================================================================*/
26 #ifndef __vtkBezierContourLineInterpolator_h
27 #define __vtkBezierContourLineInterpolator_h
28 
30 
33 {
34 public:
35 
38 
40 
42  void PrintSelf(ostream& os, vtkIndent indent);
44 
45  virtual int InterpolateLine( vtkRenderer *ren,
47  int idx1, int idx2 );
48 
50 
55  vtkSetClampMacro(MaximumCurveError, double, 0.0, VTK_DOUBLE_MAX);
56  vtkGetMacro(MaximumCurveError, double);
58 
60 
62  vtkSetClampMacro(MaximumCurveLineSegments, int, 1, 1000);
63  vtkGetMacro(MaximumCurveLineSegments, int);
65 
67 
75  virtual void GetSpan( int nodeIndex, vtkIntArray *nodeIndices,
78 
79 protected:
82 
83  void ComputeMidpoint( double p1[3], double p2[3], double mid[3] )
84  {
85  mid[0] = (p1[0] + p2[0])/2;
86  mid[1] = (p1[1] + p2[1])/2;
87  mid[2] = (p1[2] + p2[2])/2;
88  }
89 
92 
93 private:
95  void operator=(const vtkBezierContourLineInterpolator&); //Not implemented
96 };
97 
98 #endif