vtkTextureMapToPlane - generate texture coordinates by mapping points to plane
Super Class: vtkDataSetToDataSetFilter
Description:
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.
See Also:
vtkTextureMapToBox vtkPlaneSource vtkTextureMapToCylinder vtkTextureMapToSphere vtkThresholdTextureCoords
Methods:
Detailed Method Descriptions:
static vtkTextureMapToPlane *New () |
void SetOrigin (float ,float ,float ) | |
void SetOrigin (float *) | |
float *GetOrigin () |
void SetPoint1 (float ,float ,float ) | |
void SetPoint1 (float *) | |
float *GetPoint1 () |
void SetPoint2 (float ,float ,float ) | |
void SetPoint2 (float *) | |
float *GetPoint2 () |
void SetNormal (float ,float ,float ) | |
void SetNormal (float *) | |
float *GetNormal () |
void SetSRange (float ,float ) | |
void SetSRange (float *) | |
float *GetSRange () |
void SetTRange (float ,float ) | |
void SetTRange (float *) | |
float *GetTRange () |
void SetAutomaticPlaneGeneration (int ) | |
int GetAutomaticPlaneGeneration () | |
void AutomaticPlaneGenerationOn () | |
void AutomaticPlaneGenerationOff () |