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 
29 #include "vtkInteractionWidgetsModule.h" // For export macro
31 
34 {
35 public:
36 
39 
41 
43  void PrintSelf(ostream& os, vtkIndent indent);
45 
46  virtual int InterpolateLine( vtkRenderer *ren,
48  int idx1, int idx2 );
49 
51 
56  vtkSetClampMacro(MaximumCurveError, double, 0.0, VTK_DOUBLE_MAX);
57  vtkGetMacro(MaximumCurveError, double);
59 
61 
63  vtkSetClampMacro(MaximumCurveLineSegments, int, 1, 1000);
64  vtkGetMacro(MaximumCurveLineSegments, int);
66 
68 
76  virtual void GetSpan( int nodeIndex, vtkIntArray *nodeIndices,
79 
80 protected:
83 
84  void ComputeMidpoint( double p1[3], double p2[3], double mid[3] )
85  {
86  mid[0] = (p1[0] + p2[0])/2;
87  mid[1] = (p1[1] + p2[1])/2;
88  mid[2] = (p1[2] + p2[2])/2;
89  }
90 
93 
94 private:
96  void operator=(const vtkBezierContourLineInterpolator&); //Not implemented
97 };
98 
99 #endif
virtual void GetSpan(int nodeIndex, vtkIntArray *nodeIndices, vtkContourRepresentation *rep)
#define VTK_DOUBLE_MAX
Definition: vtkType.h:140
abstract specification for renderers
Definition: vtkRenderer.h:62
virtual int InterpolateLine(vtkRenderer *ren, vtkContourRepresentation *rep, int idx1, int idx2)=0
represent the vtkContourWidget
#define VTKINTERACTIONWIDGETS_EXPORT
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
Interpolates supplied nodes with bezier line segments.
a simple class to control print indentation
Definition: vtkIndent.h:38
Defines API for interpolating/modifying nodes from a vtkContourRepresentation.
void PrintSelf(ostream &os, vtkIndent indent)
void ComputeMidpoint(double p1[3], double p2[3], double mid[3])
static vtkObject * New()