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]);
139 void GetTable(
double x1,
double x2,
int size,
float *table,
int stride=1,
int logIncrements=0 );
140 void GetTable(
double x1,
double x2,
int size,
double *table,
int stride=1,
int logIncrements=0 );
149 void BuildFunctionFromTable(
double x1,
double x2,
int size,
150 double *table,
int stride=1 );
171 vtkSetMacro(UseLogScale,
bool)
172 vtkGetMacro(UseLogScale,
bool)
173 vtkBooleanMacro(UseLogScale,
bool)
184 const char *GetType();
190 double GetFirstNonZeroValue();
214 vtkBooleanMacro(AllowDuplicateScalars,
vtkTypeBool);
221 int EstimateMinNumberOfSamples(
double const & x1,
double const & x2);
230 void SortAndUpdateRange();
237 double FindMinimumXDistance();
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()