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]);
137 void GetTable(
double x1,
double x2,
int size,
float *table,
int stride=1 );
138 void GetTable(
double x1,
double x2,
int size,
double *table,
int stride=1 );
147 void BuildFunctionFromTable(
double x1,
double x2,
int size,
148 double *table,
int stride=1 );
160 vtkGetMacro( Clamping,
int );
172 const char *GetType();
178 double GetFirstNonZeroValue();
201 vtkGetMacro(AllowDuplicateScalars,
int);
209 int EstimateMinNumberOfSamples(
double const & x1,
double const & x2);
218 void SortAndUpdateRange();
225 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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
general representation of visualization data
vtkPiecewiseFunctionInternals * Internal
virtual void DeepCopy(vtkDataObject *src)
Shallow and Deep copy.
int AllowDuplicateScalars
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.