You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.0 KiB
C
65 lines
2.0 KiB
C
|
3 weeks ago
|
/*=========================================================================
|
||
|
|
|
||
|
|
Program: Visualization Toolkit
|
||
|
|
Module: vtkLinearContourLineInterpolator.h
|
||
|
|
|
||
|
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
||
|
|
All rights reserved.
|
||
|
|
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
|
||
|
|
|
||
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
||
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||
|
|
PURPOSE. See the above copyright notice for more information.
|
||
|
|
|
||
|
|
=========================================================================*/
|
||
|
|
/**
|
||
|
|
* @class vtkLinearContourLineInterpolator
|
||
|
|
* @brief Interpolates supplied nodes with line segments
|
||
|
|
*
|
||
|
|
* The line interpolator interpolates supplied nodes (see InterpolateLine)
|
||
|
|
* with line segments. The finess of the curve may be controlled using
|
||
|
|
* SetMaximumCurveError and SetMaximumNumberOfLineSegments.
|
||
|
|
*
|
||
|
|
* @sa
|
||
|
|
* vtkContourLineInterpolator
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef vtkLinearContourLineInterpolator_h
|
||
|
|
#define vtkLinearContourLineInterpolator_h
|
||
|
|
|
||
|
|
#include "vtkInteractionWidgetsModule.h" // For export macro
|
||
|
|
#include "vtkContourLineInterpolator.h"
|
||
|
|
|
||
|
|
class VTKINTERACTIONWIDGETS_EXPORT vtkLinearContourLineInterpolator
|
||
|
|
: public vtkContourLineInterpolator
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Instantiate this class.
|
||
|
|
*/
|
||
|
|
static vtkLinearContourLineInterpolator *New();
|
||
|
|
|
||
|
|
//@{
|
||
|
|
/**
|
||
|
|
* Standard methods for instances of this class.
|
||
|
|
*/
|
||
|
|
vtkTypeMacro(vtkLinearContourLineInterpolator,vtkContourLineInterpolator);
|
||
|
|
void PrintSelf(ostream& os, vtkIndent indent);
|
||
|
|
//@}
|
||
|
|
|
||
|
|
virtual int InterpolateLine( vtkRenderer *ren,
|
||
|
|
vtkContourRepresentation *rep,
|
||
|
|
int idx1, int idx2 );
|
||
|
|
|
||
|
|
protected:
|
||
|
|
vtkLinearContourLineInterpolator();
|
||
|
|
~vtkLinearContourLineInterpolator();
|
||
|
|
|
||
|
|
private:
|
||
|
|
vtkLinearContourLineInterpolator(const vtkLinearContourLineInterpolator&) VTK_DELETE_FUNCTION;
|
||
|
|
void operator=(const vtkLinearContourLineInterpolator&) VTK_DELETE_FUNCTION;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|