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*);
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,
148 const char *GetType();
152 double GetFirstNonZeroValue();
197 void SortAndUpdateRange();
static vtkDataObject * GetData(vtkInformation *info)
static vtkDataObject * New()
#define VTK_PIECEWISE_FUNCTION
Defines a 1D piecewise function.
#define vtkGetMacro(name, type)
virtual void Initialize()
GLenum GLsizei GLenum GLenum const GLvoid * table
GLint GLint GLint GLint GLint GLint y
#define vtkTypeMacro(thisClass, superclass)
GLint GLint GLint GLint GLint x
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
#define vtkGetVector2Macro(name, type)
#define vtkBooleanMacro(name, type)
general representation of visualization data
vtkPiecewiseFunctionInternals * Internal
virtual void DeepCopy(vtkDataObject *src)
int AllowDuplicateScalars
#define VTKCOMMONDATAMODEL_EXPORT
virtual void ShallowCopy(vtkDataObject *src)
#define vtkSetMacro(name, type)