42 #ifndef vtkPiecewiseFunction_h
43 #define vtkPiecewiseFunction_h
48 class vtkPiecewiseFunctionInternals;
70 int AddPoint(
double x,
double y );
71 int AddPoint(
double x,
double y,
double midpoint,
double sharpness );
72 int RemovePoint(
double x );
76 void RemoveAllPoints();
82 void AddSegment(
double x1,
double y1,
double x2,
double y2 );
86 double GetValue(
double x );
92 int GetNodeValue(
int index,
double val[4] );
93 int SetNodeValue(
int index,
double val[4] );
102 double *GetDataPointer();
103 void FillFromDataPointer(
int,
double*);
108 vtkGetVector2Macro( Range,
double );
113 int AdjustRange(
double range[2]);
118 void GetTable(
double x1,
double x2,
int size,
float *table,
int stride=1 );
119 void GetTable(
double x1,
double x2,
int size,
double *table,
int stride=1 );
127 void BuildFunctionFromTable(
double x1,
double x2,
int size,
128 double *table,
int stride=1 );
138 vtkSetMacro( Clamping,
int );
139 vtkGetMacro( Clamping,
int );
140 vtkBooleanMacro( Clamping,
int );
148 const char *GetType();
152 double GetFirstNonZeroValue();
170 vtkSetMacro(AllowDuplicateScalars,
int);
171 vtkGetMacro(AllowDuplicateScalars,
int);
172 vtkBooleanMacro(AllowDuplicateScalars,
int);
197 void SortAndUpdateRange();
static vtkDataObject * GetData(vtkInformation *info)
static vtkDataObject * New()
#define VTK_PIECEWISE_FUNCTION
Defines a 1D piecewise function.
virtual void Initialize()
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
general representation of visualization data
vtkPiecewiseFunctionInternals * Internal
virtual void DeepCopy(vtkDataObject *src)
int AllowDuplicateScalars
#define VTKCOMMONDATAMODEL_EXPORT
virtual void ShallowCopy(vtkDataObject *src)