#include <vtkTextureMapToPlane.h>
Inheritance diagram for vtkTextureMapToPlane:
vtkTextureMapToPlane is a filter that generates 2D texture coordinates by mapping input dataset points onto a plane. The plane can either be user specified or generated automatically. (A least squares method is used to generate the plane automatically.)
There are two ways you can specify the plane. The first is to provide a plane normal. In this case the points are projected to a plane, and the points are then mapped into the user specified s-t coordinate range. For more control, you can specify a plane with three points: an origin and two points defining the two axes of the plane. (This is compatible with the vtkPlaneSource.) Using the second method, the SRange and TRange vectors are ignored, since the presumption is that the user does not want to scale the texture coordinates; and you can adjust the origin and axes points to achieve the texture coordinate scaling you need. Note also that using the three point method the axes do not have to be orthogonal.
Definition at line 50 of file vtkTextureMapToPlane.h.
virtual void | SetOrigin (double, double, double) |
virtual void | SetOrigin (double[3]) |
virtual double * | GetOrigin () |
virtual void | GetOrigin (double data[3]) |
static vtkTextureMapToPlane * | New () |
Public Types | |
typedef vtkDataSetAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetPoint1 (double, double, double) |
virtual void | SetPoint1 (double[3]) |
virtual double * | GetPoint1 () |
virtual void | GetPoint1 (double data[3]) |
virtual void | SetPoint2 (double, double, double) |
virtual void | SetPoint2 (double[3]) |
virtual double * | GetPoint2 () |
virtual void | GetPoint2 (double data[3]) |
virtual void | SetNormal (double, double, double) |
virtual void | SetNormal (double[3]) |
virtual double * | GetNormal () |
virtual void | GetNormal (double data[3]) |
virtual void | SetSRange (double, double) |
void | SetSRange (double[2]) |
virtual double * | GetSRange () |
virtual void | GetSRange (double data[2]) |
virtual void | SetTRange (double, double) |
void | SetTRange (double[2]) |
virtual double * | GetTRange () |
virtual void | GetTRange (double data[2]) |
virtual void | SetAutomaticPlaneGeneration (int) |
virtual int | GetAutomaticPlaneGeneration () |
virtual void | AutomaticPlaneGenerationOn () |
virtual void | AutomaticPlaneGenerationOff () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkTextureMapToPlane * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkTextureMapToPlane () | |
~vtkTextureMapToPlane () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | ComputeNormal (vtkDataSet *output) |
Protected Attributes | |
double | Origin [3] |
double | Point1 [3] |
double | Point2 [3] |
double | Normal [3] |
double | SRange [2] |
double | TRange [2] |
int | AutomaticPlaneGeneration |
|
Reimplemented from vtkDataSetAlgorithm. Definition at line 53 of file vtkTextureMapToPlane.h. |
|
|
|
Definition at line 108 of file vtkTextureMapToPlane.h. |
|
Reimplemented from vtkDataSetAlgorithm. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkDataSetAlgorithm. |
|
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 vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkDataSetAlgorithm. |
|
Reimplemented from vtkDataSetAlgorithm. |
|
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 vtkDataSetAlgorithm. |
|
Construct with s,t range=(0,1) and automatic plane generation turned on. Reimplemented from vtkDataSetAlgorithm. |
|
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane. |
|
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane. |
|
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane. |
|
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane. |
|
Specify a point defining the first axis of the plane. |
|
Specify a point defining the first axis of the plane. |
|
Specify a point defining the first axis of the plane. |
|
Specify a point defining the first axis of the plane. |
|
Specify a point defining the second axis of the plane. |
|
Specify a point defining the second axis of the plane. |
|
Specify a point defining the second axis of the plane. |
|
Specify a point defining the second axis of the plane. |
|
Specify plane normal. An alternative way to specify a map plane. Using this method, the object will scale the resulting texture coordinate between the SRange and TRange specified. |
|
Specify plane normal. An alternative way to specify a map plane. Using this method, the object will scale the resulting texture coordinate between the SRange and TRange specified. |
|
Specify plane normal. An alternative way to specify a map plane. Using this method, the object will scale the resulting texture coordinate between the SRange and TRange specified. |
|
Specify plane normal. An alternative way to specify a map plane. Using this method, the object will scale the resulting texture coordinate between the SRange and TRange specified. |
|
Specify s-coordinate range for texture s-t coordinate pair. |
|
Specify s-coordinate range for texture s-t coordinate pair. |
|
Specify s-coordinate range for texture s-t coordinate pair. |
|
Specify s-coordinate range for texture s-t coordinate pair. |
|
Specify t-coordinate range for texture s-t coordinate pair. |
|
Specify t-coordinate range for texture s-t coordinate pair. |
|
Specify t-coordinate range for texture s-t coordinate pair. |
|
Specify t-coordinate range for texture s-t coordinate pair. |
|
Turn on/off automatic plane generation. |
|
Turn on/off automatic plane generation. |
|
Turn on/off automatic plane generation. |
|
Turn on/off automatic plane generation. |
|
This is called by the superclass. This is the method you should override. Reimplemented from vtkDataSetAlgorithm. |
|
|
|
Definition at line 113 of file vtkTextureMapToPlane.h. |
|
Definition at line 114 of file vtkTextureMapToPlane.h. |
|
Definition at line 115 of file vtkTextureMapToPlane.h. |
|
Definition at line 116 of file vtkTextureMapToPlane.h. |
|
Definition at line 117 of file vtkTextureMapToPlane.h. |
|
Definition at line 118 of file vtkTextureMapToPlane.h. |
|
Definition at line 119 of file vtkTextureMapToPlane.h. |