VTK
|
generate texture coordinates by mapping points to cylinder More...
#include <vtkTextureMapToCylinder.h>
Inherits vtkDataSetAlgorithm.
Public Types | |
typedef vtkDataSetAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkTextureMapToCylinder * | NewInstance () const |
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 | SetAutomaticCylinderGeneration (int) |
virtual int | GetAutomaticCylinderGeneration () |
virtual void | AutomaticCylinderGenerationOn () |
virtual void | AutomaticCylinderGenerationOff () |
virtual void | SetPreventSeam (int) |
virtual int | GetPreventSeam () |
virtual void | PreventSeamOn () |
virtual void | PreventSeamOff () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkTextureMapToCylinder * | SafeDownCast (vtkObjectBase *o) |
static vtkTextureMapToCylinder * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkTextureMapToCylinder () | |
~vtkTextureMapToCylinder () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
double | Point1 [3] |
double | Point2 [3] |
int | AutomaticCylinderGeneration |
int | PreventSeam |
generate texture coordinates by mapping points to cylinder
vtkTextureMapToCylinder is a filter that generates 2D texture coordinates by mapping input dataset points onto a cylinder. The cylinder can either be user specified or generated automatically. (The cylinder is generated automatically by computing the axis of the cylinder.) Note that the generated texture coordinates for the s-coordinate ranges from (0-1) (corresponding to angle of 0->360 around axis), while the mapping of the t-coordinate is controlled by the projection of points along the axis.
To specify a cylinder manually, you must provide two points that define the axis of the cylinder. The length of the axis will affect the t-coordinates.
A special ivar controls how the s-coordinate is generated. If PreventSeam is set to true, the s-texture varies from 0->1 and then 1->0 (corresponding to angles of 0->180 and 180->360).
Definition at line 57 of file vtkTextureMapToCylinder.h.
typedef vtkDataSetAlgorithm vtkTextureMapToCylinder::Superclass |
Definition at line 60 of file vtkTextureMapToCylinder.h.
|
protected |
|
inlineprotected |
Definition at line 100 of file vtkTextureMapToCylinder.h.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkTextureMapToCylinder* vtkTextureMapToCylinder::NewInstance | ( | ) | const |
void vtkTextureMapToCylinder::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
Create object with cylinder axis parallel to z-axis (points (0,0,-0.5) and (0,0,0.5)). The PreventSeam ivar is set to true. The cylinder is automatically generated.
|
virtual |
Specify the first point defining the cylinder axis,
|
virtual |
Specify the first point defining the cylinder axis,
|
virtual |
Specify the first point defining the cylinder axis,
|
virtual |
Specify the first point defining the cylinder axis,
|
virtual |
Specify the second point defining the cylinder axis,
|
virtual |
Specify the second point defining the cylinder axis,
|
virtual |
Specify the second point defining the cylinder axis,
|
virtual |
Specify the second point defining the cylinder axis,
|
virtual |
Turn on/off automatic cylinder generation. This means it automatically finds the cylinder center and axis.
|
virtual |
Turn on/off automatic cylinder generation. This means it automatically finds the cylinder center and axis.
|
virtual |
Turn on/off automatic cylinder generation. This means it automatically finds the cylinder center and axis.
|
virtual |
Turn on/off automatic cylinder generation. This means it automatically finds the cylinder center and axis.
|
virtual |
Control how the texture coordinates are generated. If PreventSeam is set, the s-coordinate ranges from 0->1 and 1->0 corresponding to the angle variation from 0->180 and 180->0. Otherwise, the s-coordinate ranges from 0->1 from 0->360 degrees.
|
virtual |
Control how the texture coordinates are generated. If PreventSeam is set, the s-coordinate ranges from 0->1 and 1->0 corresponding to the angle variation from 0->180 and 180->0. Otherwise, the s-coordinate ranges from 0->1 from 0->360 degrees.
|
virtual |
Control how the texture coordinates are generated. If PreventSeam is set, the s-coordinate ranges from 0->1 and 1->0 corresponding to the angle variation from 0->180 and 180->0. Otherwise, the s-coordinate ranges from 0->1 from 0->360 degrees.
|
virtual |
Control how the texture coordinates are generated. If PreventSeam is set, the s-coordinate ranges from 0->1 and 1->0 corresponding to the angle variation from 0->180 and 180->0. Otherwise, the s-coordinate ranges from 0->1 from 0->360 degrees.
|
protected |
|
protected |
Definition at line 104 of file vtkTextureMapToCylinder.h.
|
protected |
Definition at line 105 of file vtkTextureMapToCylinder.h.
|
protected |
Definition at line 106 of file vtkTextureMapToCylinder.h.
|
protected |
Definition at line 107 of file vtkTextureMapToCylinder.h.