Go to the documentation of this file.
43 #ifndef vtkPiecewiseFunction_h
44 #define vtkPiecewiseFunction_h
46 #include "vtkCommonDataModelModule.h"
49 class vtkPiecewiseFunctionInternals;
78 int AddPoint(
double x,
double y,
double midpoint,
double sharpness );
93 void AddSegment(
double x1,
double y1,
double x2,
double y2 );
128 vtkGetVector2Macro( Range,
double );
145 void GetTable(
double x1,
double x2,
int size,
float *table,
int stride=1,
int logIncrements=0 );
146 void GetTable(
double x1,
double x2,
int size,
double *table,
int stride=1,
int logIncrements=0 );
156 double *table,
int stride=1 );
177 vtkSetMacro(UseLogScale,
bool)
178 vtkGetMacro(UseLogScale,
bool)
179 vtkBooleanMacro(UseLogScale,
bool)
190 const
char *GetType();
196 double GetFirstNonZeroValue();
203 void Initialize() override;
227 int EstimateMinNumberOfSamples(
double const & x1,
double const & x2);
236 void SortAndUpdateRange();
243 double FindMinimumXDistance();
246 vtkPiecewiseFunctionInternals *Internal;
void BuildFunctionFromTable(double x1, double x2, int size, double *table, int stride=1)
Constructs a piecewise function from a table.
int RemovePoint(double x)
int GetNodeValue(int index, double val[4])
For the node specified by index, set/get the location (X), value (Y), midpoint, and sharpness values ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int AdjustRange(double range[2])
Remove all points out of the new range, and make sure there is a point at each end of that range.
void GetTable(double x1, double x2, int size, double *table, int stride=1, int logIncrements=0)
void FillFromDataPointer(int, double *)
int AddPoint(double x, double y, double midpoint, double sharpness)
double * GetDataPointer()
Returns a pointer to the data stored in the table.
static vtkPiecewiseFunction * New()
void GetTable(double x1, double x2, int size, float *table, int stride=1, int logIncrements=0)
Fills in an array of function values evaluated at regular intervals.
a simple class to control print indentation
int SetNodeValue(int index, double val[4])
Defines a 1D piecewise function.
int GetSize()
Get the number of points used to specify the function.
int AddPoint(double x, double y)
Add/Remove points to/from the function.
int GetDataObjectType() override
Return what type of dataset this is.
void DeepCopy(vtkDataObject *f) override
double GetValue(double x)
Returns the value of the function at the specified location using the specified interpolation.
general representation of visualization data
void ShallowCopy(vtkDataObject *f) override
Shallow and Deep copy.
void RemoveAllPoints()
Removes all points from the function.
#define VTK_PIECEWISE_FUNCTION
void AddSegment(double x1, double y1, double x2, double y2)
Add a line segment to the function.