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]);
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 );
155 void BuildFunctionFromTable(
double x1,
double x2,
int size,
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();
220 vtkBooleanMacro(AllowDuplicateScalars,
vtkTypeBool);
227 int EstimateMinNumberOfSamples(
double const & x1,
double const & x2);
236 void SortAndUpdateRange();
243 double FindMinimumXDistance();
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
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
vtkTypeBool AllowDuplicateScalars
general representation of visualization data
vtkPiecewiseFunctionInternals * Internal
virtual void DeepCopy(vtkDataObject *src)
Shallow and Deep copy.
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.