#include <vtkTextureMapToCylinder.h>
Inheritance diagram for vtkTextureMapToCylinder:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
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 | 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 Methods | |
int | IsTypeOf (const char *type) |
vtkTextureMapToCylinder * | SafeDownCast (vtkObject *o) |
vtkTextureMapToCylinder * | New () |
Protected Methods | |
vtkTextureMapToCylinder () | |
~vtkTextureMapToCylinder () | |
vtkTextureMapToCylinder (const vtkTextureMapToCylinder &) | |
void | operator= (const vtkTextureMapToCylinder &) |
void | Execute () |
Protected Attributes | |
float | Point1 [3] |
float | Point2 [3] |
int | AutomaticCylinderGeneration |
int | PreventSeam |
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).
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter. |
|
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. Reimplemented from vtkDataSetSource. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkSource. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkDataSetToDataSetFilter. |
|
Turn on/off automatic cylinder generation. This means it automatically finds the cylinder center and axis. |
|
Specify the first point defining the cylinder axis, |
|
Specify the second point defining the cylinder axis, |
|
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. |