#include <vtkWarpScalar.h>
Inheritance diagram for vtkWarpScalar:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetScaleFactor (float) |
virtual float | GetScaleFactor () |
virtual void | SetUseNormal (int) |
virtual int | GetUseNormal () |
virtual void | UseNormalOn () |
virtual void | UseNormalOff () |
virtual void | SetNormal (float, float, float) |
virtual void | SetNormal (float[3]) |
virtual float * | GetNormal () |
virtual void | GetNormal (float data[3]) |
virtual void | SetXYPlane (int) |
virtual int | GetXYPlane () |
virtual void | XYPlaneOn () |
virtual void | XYPlaneOff () |
Static Public Methods | |
vtkWarpScalar * | New () |
int | IsTypeOf (const char *type) |
vtkWarpScalar * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkWarpScalar () | |
~vtkWarpScalar () | |
vtkWarpScalar (const vtkWarpScalar &) | |
void | operator= (const vtkWarpScalar &) |
void | Execute () |
float * | DataNormal (int id, vtkNormals *normals=NULL) |
float * | InstanceNormal (int id, vtkNormals *normals=NULL) |
float * | ZNormal (int id, vtkNormals *normals=NULL) |
Protected Attributes | |
float | ScaleFactor |
int | UseNormal |
float | Normal [3] |
int | XYPlane |
float *(vtkWarpScalar::* | PointNormal )(int id, vtkNormals *normals) |
vtkWarpScalar is a filter that modifies point coordinates by moving points along point normals by the scalar amount times the scale factor. Useful for creating carpet or x-y-z plots.
If normals are not present in data, the Normal instance variable will be used as the direction along which to warp the geometry. If normals are present but you would like to use the Normal instance variable, set the UseNormal boolean to true.
If XYPlane boolean is set true, then the z-value is considered to be a scalar value (still scaled by scale factor), and the displacement is along the z-axis. If scalars are also present, these are copied through and can be used to color the surface.
Note that the filter passes both its point data and cell data to its output, except for normals, since these are distorted by the warping.
|
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 vtkPointSetToPointSetFilter. |
|
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 vtkPointSetToPointSetFilter. |
|
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 vtkPointSetToPointSetFilter. |
|
Instantiate object with no start, end, or progress methods. Reimplemented from vtkPointSetSource. |
|
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 vtkSource. |
|
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 vtkPointSetToPointSetFilter. |
|
Normal (i.e., direction) along which to warp geometry. Only used if UseNormal boolean set to true or no normals available in data. |
|
Specify value to scale displacement. |
|
Turn on/off use of user specified normal. If on, data normals will be ignored and instance variable Normal will be used instead. |
|
Turn on/off flag specifying that input data is x-y plane. If x-y plane, then the z value is used to warp the surface in the z-axis direction (times the scale factor) and scalars are used to color the surface. |