Go to the documentation of this file.
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);
224 void SortAndUpdateRange();
231 double FindMinimumXDistance();
234 vtkPiecewiseFunctionInternals *Internal;
248 int AllowDuplicateScalars;
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)
a simple class to control print indentation
Defines a 1D piecewise function.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
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 * New()