#include <vtkPiecewiseFunction.h>
Inheritance diagram for vtkPiecewiseFunction:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkDataObject * | MakeObject () |
void | Initialize () |
void | DeepCopy (vtkDataObject *f) |
void | ShallowCopy (vtkDataObject *f) |
int | GetDataObjectType () |
int | GetSize () |
void | AddPoint (float x, float val) |
void | RemovePoint (float x) |
void | RemoveAllPoints () |
void | AddSegment (float x1, float val1, float x2, float val2) |
float | GetValue (float x) |
float * | GetDataPointer () |
float * | GetRange () |
void | GetTable (float x1, float x2, int size, float *table, int stride=1) |
void | BuildFunctionFromTable (float x1, float x2, int size, float *table, int stride=1) |
virtual void | SetClamping (int) |
virtual int | GetClamping () |
virtual void | ClampingOn () |
virtual void | ClampingOff () |
const char * | GetType () |
unsigned long | GetMTime () |
float | GetFirstNonZeroValue () |
Static Public Methods | |
vtkPiecewiseFunction * | New () |
int | IsTypeOf (const char *type) |
vtkPiecewiseFunction * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkPiecewiseFunction () | |
~vtkPiecewiseFunction () | |
vtkPiecewiseFunction (const vtkPiecewiseFunction &) | |
void | operator= (const vtkPiecewiseFunction &) |
void | IncreaseArraySize () |
int | InsertPoint (float x, float val) |
void | MovePoints (int index, int down) |
Protected Attributes | |
int | ArraySize |
int | Clamping |
float * | Function |
int | FunctionSize |
float | FunctionRange [2] |
Defines a piecewise linear function mapping. Used for transfer functions in volume rendering.
Definition at line 60 of file vtkPiecewiseFunction.h.
|
|
|
|
|
Definition at line 143 of file vtkPiecewiseFunction.h. |
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkDataObject. |
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataObject. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataObject. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataObject. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataObject. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkDataObject. |
|
Create concrete instance of this data object. Reimplemented from vtkDataObject. |
|
Reimplemented from vtkDataObject. |
|
Reimplemented from vtkDataObject. |
|
Shallow and Deep copy. These copy the data, but not any of the pipeline connections. Reimplemented from vtkDataObject. |
|
Return what type of dataset this is. Reimplemented from vtkDataObject. Definition at line 73 of file vtkPiecewiseFunction.h. |
|
Get the number of points used to specify the function |
|
Add/Remove points to/from the function. If a duplicate point is added then the function value is changed at that location. |
|
|
|
Removes all points from the function. |
|
Add a line segment to the function. All points defined between the two points specified are removed from the function. |
|
Returns the value of the function at the specified location using the specified interpolation. Returns zero if the specified location is outside the min and max points of the function. |
|
Returns a pointer to the data stored in the table. Definition at line 96 of file vtkPiecewiseFunction.h. |
|
Returns the min and max point locations of the function. |
|
Fills in an array of function values evaluated at regular intervals. Parameter "stride" is used to step through the output "table". It is used by vtkColorTransferFunction to fill in an rgb table using three separate piecewise functions and three separate calls to GetTable(). |
|
Constructs a piecewise function from a table. Function range is is set to [x1, x2], function size is set to size, and function points are regularly spaced between x1 and x2. Parameter "stride" is is step through the input table. It is used by vtkColorTransferFunction to construct 3 piecewise functions from an rgb table. |
|
When zero range clamping is Off, GetValue() returns 0.0 when a value is requested outside of the points specified. When zero range clamping is On, GetValue() returns the value at the value at the lowest point for a request below all points specified and returns the value at the highest point for a request above all points specified. On is the default. |
|
|
|
|
|
|
|
Return the type of function: Function Types: 0 : Constant (No change in slope between end points) 1 : NonDecreasing (Always increasing or zero slope) 2 : NonIncreasing (Always decreasing or zero slope) 3 : Varied (Contains both decreasing and increasing slopes) |
|
Get the mtime of this object - override to consider the mtime of the source as well. Reimplemented from vtkDataObject. |
|
Returns the first point location which precedes a non-zero segment of the function. Note that the value at this point may be zero. |
|
Definition at line 144 of file vtkPiecewiseFunction.h. |
|
|
|
|
|
|
|
Definition at line 147 of file vtkPiecewiseFunction.h. |
|
Definition at line 153 of file vtkPiecewiseFunction.h. |
|
Definition at line 156 of file vtkPiecewiseFunction.h. |
|
Definition at line 159 of file vtkPiecewiseFunction.h. |
|
Definition at line 162 of file vtkPiecewiseFunction.h. |