NAME
vtkTextureMapToBox - generate 3D texture coordinates by mapping points into bounding box
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkTextureMapToBox.h"
class VTK_EXPORT vtkTextureMapToBox : public vtkDataSetToDataSetFilter
vtkTextureMapToBox();
static vtkTextureMapToBox *New() {return new vtkTextureMapToBox;};
const char *GetClassName() {return "vtkTextureMapToBox";};
void PrintSelf(ostream& os, vtkIndent indent);
void SetBox(float *box);
void SetBox(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax);
float *GetBox();
void GetBox(float data[6]);
void SetRRange(float, float);
void SetRRange(float *);
float *GetRRange();
void GetRRange(float data[2]);
void SetSRange(float, float);
void SetSRange(float *);
float *GetSRange();
void GetSRange(float data[2]);
void SetTRange(float, float);
void SetTRange(float *);
float *GetTRange();
void GetTRange(float data[2]);
void SetAutomaticBoxGeneration(int);
int GetAutomaticBoxGeneration();
void AutomaticBoxGenerationOn();
void AutomaticBoxGenerationOff();
DESCRIPTION
vtkTextureMapToBox is a filter that generates 3D texture coordinates by mapping input dataset points onto a bounding box. The bounding box can either be user specified or generated automatically. If the box is generated automatically, all points will lie inside of it. If a point lies outside the bounding box (only for manual box specification), its generated texture coordinate will be mapped into the r-s-t texture coordinate range.
SEE ALSO
vtkTextureMapToPlane vtkTextureMapToCylinder vtkTextureMapToSphere vtkThresholdTextureCoords
SUMMARY
void SetRRange(float, float)
void SetRRange(float *)
Specify r-coordinate range for texture r-s-t coordinate triplet.
void SetSRange(float, float)
void SetSRange(float *)
Specify s-coordinate range for texture r-s-t coordinate triplet.
void SetTRange(float, float)
void SetTRange(float *)
Specify t-coordinate range for texture r-s-t coordinate triplet.
void SetAutomaticBoxGeneration(int)
Turn on/off automatic bounding box generation.
vtkTextureMapToBox()
Construct with r-s-t range=(0,1) and automatic box generation turned on.
void SetBox(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax)
Specify the bounding box to map into.