43 #ifndef vtkPiecewiseFunction_h 
   44 #define vtkPiecewiseFunction_h 
   46 #include "vtkCommonDataModelModule.h"  
   49 class vtkPiecewiseFunctionInternals;
 
   77   int AddPoint( 
double x, 
double y );
 
   78   int AddPoint( 
double x, 
double y, 
double midpoint, 
double sharpness );
 
   79   int RemovePoint( 
double x );
 
   85   void RemoveAllPoints();
 
   93   void AddSegment( 
double x1, 
double y1, 
double x2, 
double y2 );
 
   99   double GetValue( 
double x );
 
  108   int GetNodeValue( 
int index, 
double val[4] );
 
  109   int SetNodeValue( 
int index, 
double val[4] );
 
  120   double *GetDataPointer();
 
  121   void FillFromDataPointer(
int, 
double*);
 
  128   vtkGetVector2Macro( Range, 
double );
 
  136   int AdjustRange(
double range[2]);
 
  143   void GetTable( 
double x1, 
double x2, 
int size, 
float *table, 
int stride=1 );
 
  144   void GetTable( 
double x1, 
double x2, 
int size, 
double *table, 
int stride=1 );
 
  153   void BuildFunctionFromTable( 
double x1, 
double x2, 
int size,
 
  154                                double *table, 
int stride=1 );
 
  166   vtkGetMacro( Clamping, 
int );
 
  178   const char  *GetType();
 
  184   double GetFirstNonZeroValue();
 
  207   vtkGetMacro(AllowDuplicateScalars, 
int);
 
  215   int EstimateMinNumberOfSamples(
double const & x1, 
double const & x2);
 
  219   ~vtkPiecewiseFunction() VTK_OVERRIDE;
 
  224   void SortAndUpdateRange();
 
  231   double FindMinimumXDistance();
 
  234   vtkPiecewiseFunctionInternals *Internal;
 
  248   int AllowDuplicateScalars;
 
  251   vtkPiecewiseFunction(const vtkPiecewiseFunction&) VTK_DELETE_FUNCTION;
 
  252   void operator=(const vtkPiecewiseFunction&) VTK_DELETE_FUNCTION;
 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses. 
 
static vtkDataObject * New()
 
#define VTK_PIECEWISE_FUNCTION
 
Defines a 1D piecewise function. 
 
virtual void Initialize()
Restore data object to initial state,. 
 
int GetDataObjectType() override
Return what type of dataset this is. 
 
a simple class to control print indentation 
 
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection. 
 
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection. 
 
general representation of visualization data 
 
virtual void DeepCopy(vtkDataObject *src)
Shallow and Deep copy. 
 
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.