#include <vtkTextureMapToSphere.h>
Inheritance diagram for vtkTextureMapToSphere:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetCenter (float, float, float) |
virtual void | SetCenter (float[3]) |
virtual float * | GetCenter () |
virtual void | GetCenter (float data[3]) |
virtual void | SetAutomaticSphereGeneration (int) |
virtual int | GetAutomaticSphereGeneration () |
virtual void | AutomaticSphereGenerationOn () |
virtual void | AutomaticSphereGenerationOff () |
virtual void | SetPreventSeam (int) |
virtual int | GetPreventSeam () |
virtual void | PreventSeamOn () |
virtual void | PreventSeamOff () |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkTextureMapToSphere * | SafeDownCast (vtkObject *o) |
vtkTextureMapToSphere * | New () |
Protected Methods | |
vtkTextureMapToSphere () | |
~vtkTextureMapToSphere () | |
vtkTextureMapToSphere (const vtkTextureMapToSphere &) | |
void | operator= (const vtkTextureMapToSphere &) |
void | Execute () |
Protected Attributes | |
float | Center [3] |
int | AutomaticSphereGeneration |
int | PreventSeam |
vtkTextureMapToSphere is a filter that generates 2D texture coordinates by mapping input dataset points onto a sphere. The sphere can either be user specified or generated automatically. (The sphere is generated automatically by computing the center (i.e., averaged coordinates) of the sphere.) Note that the generated texture coordinates range between (0,1). The s-coordinate lies in the angular direction around the z-axis, measured counter-clockwise from the x-axis. The t-coordinate lies in the angular direction measured down from the north pole towards the south pole.
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 Center (0,0,0) and the PreventSeam ivar is set to true. The sphere center is automatically computed. 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 sphere generation. This means it automatically finds the sphere center. |
|
Specify a point defining the center of the sphere. |
|
Control how the texture coordinates are generated. If PreventSeam is set, the s-coordinate ranges from 0->1 and 1->0 corresponding to the theta angle variation between 0->180 and 180->0 degrees. Otherwise, the s-coordinate ranges from 0->1 between 0->360 degrees. |