generate texture coordinates by mapping points to plane
More...
#include <vtkTextureMapToPlane.h>
Inherits vtkDataSetAlgorithm.
|
virtual int | IsA (const char *type) |
|
vtkTextureMapToPlane * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
|
virtual void | SetOrigin (double, double, double) |
|
virtual void | SetOrigin (double[3]) |
|
virtual double * | GetOrigin () |
|
virtual void | GetOrigin (double data[3]) |
|
|
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 () |
|
generate texture coordinates by mapping points to plane
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
- vtkPlaneSource vtkTextureMapToCylinder vtkTextureMapToSphere vtkThresholdTextureCoords
- Examples:
- vtkTextureMapToPlane (Examples)
- Tests:
- vtkTextureMapToPlane (Tests)
Definition at line 51 of file vtkTextureMapToPlane.h.
vtkTextureMapToPlane::vtkTextureMapToPlane |
( |
| ) |
|
|
protected |
vtkTextureMapToPlane::~vtkTextureMapToPlane |
( |
| ) |
|
|
inlineprotected |
static int vtkTextureMapToPlane::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkTextureMapToPlane::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkTextureMapToPlane::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkTextureMapToPlane::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
Construct with s,t range=(0,1) and automatic plane generation turned on.
virtual void vtkTextureMapToPlane::SetOrigin |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane.
virtual void vtkTextureMapToPlane::SetOrigin |
( |
double |
[3] | ) |
|
|
virtual |
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane.
virtual double* vtkTextureMapToPlane::GetOrigin |
( |
| ) |
|
|
virtual |
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane.
virtual void vtkTextureMapToPlane::GetOrigin |
( |
double |
data[3] | ) |
|
|
virtual |
Specify a point defining the origin of the plane. Used in conjunction with the Point1 and Point2 ivars to specify a map plane.
virtual void vtkTextureMapToPlane::SetPoint1 |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
Specify a point defining the first axis of the plane.
virtual void vtkTextureMapToPlane::SetPoint1 |
( |
double |
[3] | ) |
|
|
virtual |
Specify a point defining the first axis of the plane.
virtual double* vtkTextureMapToPlane::GetPoint1 |
( |
| ) |
|
|
virtual |
Specify a point defining the first axis of the plane.
virtual void vtkTextureMapToPlane::GetPoint1 |
( |
double |
data[3] | ) |
|
|
virtual |
Specify a point defining the first axis of the plane.
virtual void vtkTextureMapToPlane::SetPoint2 |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
Specify a point defining the second axis of the plane.
virtual void vtkTextureMapToPlane::SetPoint2 |
( |
double |
[3] | ) |
|
|
virtual |
Specify a point defining the second axis of the plane.
virtual double* vtkTextureMapToPlane::GetPoint2 |
( |
| ) |
|
|
virtual |
Specify a point defining the second axis of the plane.
virtual void vtkTextureMapToPlane::GetPoint2 |
( |
double |
data[3] | ) |
|
|
virtual |
Specify a point defining the second axis of the plane.
virtual void vtkTextureMapToPlane::SetNormal |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
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.
virtual void vtkTextureMapToPlane::SetNormal |
( |
double |
[3] | ) |
|
|
virtual |
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.
virtual double* vtkTextureMapToPlane::GetNormal |
( |
| ) |
|
|
virtual |
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.
virtual void vtkTextureMapToPlane::GetNormal |
( |
double |
data[3] | ) |
|
|
virtual |
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.
virtual void vtkTextureMapToPlane::SetSRange |
( |
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
Specify s-coordinate range for texture s-t coordinate pair.
void vtkTextureMapToPlane::SetSRange |
( |
double |
[2] | ) |
|
Specify s-coordinate range for texture s-t coordinate pair.
virtual double* vtkTextureMapToPlane::GetSRange |
( |
| ) |
|
|
virtual |
Specify s-coordinate range for texture s-t coordinate pair.
virtual void vtkTextureMapToPlane::GetSRange |
( |
double |
data[2] | ) |
|
|
virtual |
Specify s-coordinate range for texture s-t coordinate pair.
virtual void vtkTextureMapToPlane::SetTRange |
( |
double |
, |
|
|
double |
|
|
) |
| |
|
virtual |
Specify t-coordinate range for texture s-t coordinate pair.
void vtkTextureMapToPlane::SetTRange |
( |
double |
[2] | ) |
|
Specify t-coordinate range for texture s-t coordinate pair.
virtual double* vtkTextureMapToPlane::GetTRange |
( |
| ) |
|
|
virtual |
Specify t-coordinate range for texture s-t coordinate pair.
virtual void vtkTextureMapToPlane::GetTRange |
( |
double |
data[2] | ) |
|
|
virtual |
Specify t-coordinate range for texture s-t coordinate pair.
virtual void vtkTextureMapToPlane::SetAutomaticPlaneGeneration |
( |
int |
| ) |
|
|
virtual |
Turn on/off automatic plane generation.
virtual int vtkTextureMapToPlane::GetAutomaticPlaneGeneration |
( |
| ) |
|
|
virtual |
Turn on/off automatic plane generation.
virtual void vtkTextureMapToPlane::AutomaticPlaneGenerationOn |
( |
| ) |
|
|
virtual |
Turn on/off automatic plane generation.
virtual void vtkTextureMapToPlane::AutomaticPlaneGenerationOff |
( |
| ) |
|
|
virtual |
Turn on/off automatic plane generation.
int vtkTextureMapToPlane::RequestData |
( |
vtkInformation * |
, |
|
|
vtkInformationVector ** |
, |
|
|
vtkInformationVector * |
|
|
) |
| |
|
protected |
void vtkTextureMapToPlane::ComputeNormal |
( |
vtkDataSet * |
output | ) |
|
|
protected |
double vtkTextureMapToPlane::Origin[3] |
|
protected |
double vtkTextureMapToPlane::Point1[3] |
|
protected |
double vtkTextureMapToPlane::Point2[3] |
|
protected |
double vtkTextureMapToPlane::Normal[3] |
|
protected |
double vtkTextureMapToPlane::SRange[2] |
|
protected |
double vtkTextureMapToPlane::TRange[2] |
|
protected |
int vtkTextureMapToPlane::AutomaticPlaneGeneration |
|
protected |
The documentation for this class was generated from the following file: