Public Methods |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetOrigin (float, float, float) |
virtual void | SetOrigin (float[3]) |
virtual float * | GetOrigin () |
virtual void | GetOrigin (float data[3]) |
virtual void | SetPoint1 (float, float, float) |
virtual void | SetPoint1 (float[3]) |
virtual float * | GetPoint1 () |
virtual void | GetPoint1 (float data[3]) |
virtual void | SetPoint2 (float, float, float) |
virtual void | SetPoint2 (float[3]) |
virtual float * | GetPoint2 () |
virtual void | GetPoint2 (float data[3]) |
virtual void | SetNormal (float, float, float) |
virtual void | SetNormal (float[3]) |
virtual float * | GetNormal () |
virtual void | GetNormal (float data[3]) |
virtual void | SetSRange (float, float) |
void | SetSRange (float[2]) |
virtual float * | GetSRange () |
virtual void | GetSRange (float data[2]) |
virtual void | SetTRange (float, float) |
void | SetTRange (float[2]) |
virtual float * | GetTRange () |
virtual void | GetTRange (float data[2]) |
virtual void | SetAutomaticPlaneGeneration (int) |
virtual int | GetAutomaticPlaneGeneration () |
virtual void | AutomaticPlaneGenerationOn () |
virtual void | AutomaticPlaneGenerationOff () |
Static Public Methods |
int | IsTypeOf (const char *type) |
vtkTextureMapToPlane * | SafeDownCast (vtkObject *o) |
vtkTextureMapToPlane * | New () |
Protected Methods |
| vtkTextureMapToPlane () |
| ~vtkTextureMapToPlane () |
| vtkTextureMapToPlane (const vtkTextureMapToPlane &) |
void | operator= (const vtkTextureMapToPlane &) |
void | Execute () |
void | ComputeNormal () |
Protected Attributes |
float | Origin [3] |
float | Point1 [3] |
float | Point2 [3] |
float | Normal [3] |
float | SRange [2] |
float | TRange [2] |
int | AutomaticPlaneGeneration |
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.