|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   37 #ifndef vtkPiecewiseFunction_h 
   38 #define vtkPiecewiseFunction_h 
   40 #include "vtkCommonDataModelModule.h"  
   43 class vtkPiecewiseFunctionInternals;
 
   71   int AddPoint(
double x, 
double y);
 
   72   int AddPoint(
double x, 
double y, 
double midpoint, 
double sharpness);
 
   73   int RemovePoint(
double x);
 
   79   void RemoveAllPoints();
 
   87   void AddSegment(
double x1, 
double y1, 
double x2, 
double y2);
 
   93   double GetValue(
double x);
 
  102   int GetNodeValue(
int index, 
double val[4]);
 
  103   int SetNodeValue(
int index, 
double val[4]);
 
  114   double* GetDataPointer();
 
  115   void FillFromDataPointer(
int, 
double*);
 
  122   vtkGetVector2Macro(
Range, 
double);
 
  130   int AdjustRange(
double range[2]);
 
  140     double x1, 
double x2, 
int size, 
float* table, 
int stride = 1, 
int logIncrements = 0);
 
  142     double x1, 
double x2, 
int size, 
double* table, 
int stride = 1, 
int logIncrements = 0);
 
  151   void BuildFunctionFromTable(
double x1, 
double x2, 
int size, 
double* table, 
int stride = 1);
 
  172   vtkSetMacro(UseLogScale, 
bool);
 
  173   vtkGetMacro(UseLogScale, 
bool);
 
  174   vtkBooleanMacro(UseLogScale, 
bool);
 
  185   const char* GetType();
 
  191   double GetFirstNonZeroValue();
 
  215   vtkBooleanMacro(AllowDuplicateScalars, 
vtkTypeBool);
 
  222   int EstimateMinNumberOfSamples(
double const& x1, 
double const& x2);
 
  231   void SortAndUpdateRange();
 
  238   double FindMinimumXDistance();
 
  
auto Range(IterablePtr iterable, Options &&... opts) -> typename detail::IterableTraits< typename detail::StripPointers< IterablePtr >::type >::RangeType
Generate an iterable STL proxy object for a VTK container.
virtual void Initialize()
Restore data object to initial state,.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void DeepCopy(vtkDataObject *src)
vtkPiecewiseFunctionInternals * Internal
a simple class to control print indentation
vtkTypeBool AllowDuplicateScalars
Defines a 1D piecewise function.
int GetDataObjectType() override
Return what type of dataset this is.
general representation of visualization data
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.
#define VTK_PIECEWISE_FUNCTION
static vtkDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
static vtkDataObject * New()