vtk
Class vtkTextureMapToSphere

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkSource
                  extended byvtk.vtkDataSetSource
                      extended byvtk.vtkDataSetToDataSetFilter
                          extended byvtk.vtkTextureMapToSphere
All Implemented Interfaces:
java.io.Serializable

public class vtkTextureMapToSphere
extends vtkDataSetToDataSetFilter
implements java.io.Serializable

vtkTextureMapToSphere - generate texture coordinates by mapping points to sphere. 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). JavaBean wrapper for vtkTextureMapToSphere object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkTextureMapToPlane, vtkTextureMapToCylinder, vtkTextureMapToBox, vtkTransformTexture, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkTextureMapToSphere()
           
protected vtkTextureMapToSphere(int dmy)
           
 
Method Summary
 void automaticSphereGenerationOff()
          Turn on/off automatic sphere generation.
 void automaticSphereGenerationOn()
          Turn on/off automatic sphere generation.
 int getAutomaticSphereGeneration()
          Turn on/off automatic sphere generation.
 double[] getCenter()
          Specify a point defining the center of the sphere.
 java.lang.String getClassName()
          Return the class name as a string.
 int getPreventSeam()
          Control how the texture coordinates are generated.
 vtkTextureMapToSphere getThisTextureMapToSphere()
           
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void preventSeamOff()
          Control how the texture coordinates are generated.
 void preventSeamOn()
          Control how the texture coordinates are generated.
 void setAutomaticSphereGeneration(int id0)
          Turn on/off automatic sphere generation.
 void setCenter(double[] id0)
          Specify a point defining the center of the sphere.
 void setCenter(double id0, double id1, double id2)
          Specify a point defining the center of the sphere.
 void setPreventSeam(int id0)
          Control how the texture coordinates are generated.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
Methods inherited from class vtk.vtkDataSetToDataSetFilter
computeInputUpdateExtents, getInput, getOutput, getOutput, getPolyDataOutput, getRectilinearGridOutput, getStructuredGridOutput, getStructuredPointsOutput, getThisDataSetToDataSetFilter, getUnstructuredGridOutput, setInput
 
Methods inherited from class vtk.vtkDataSetSource
getThisDataSetSource, setOutput
 
Methods inherited from class vtk.vtkSource
getNumberOfOutputs, getOutputIndex, getReleaseDataFlag, getThisSource, inRegisterLoop, propagateUpdateExtent, releaseDataFlagOff, releaseDataFlagOn, setReleaseDataFlag, triggerAsynchronousUpdate, unRegister, unRegisterAllOutputs, update, updateData, updateInformation, updateWholeExtent
 
Methods inherited from class vtk.vtkProcessObject
abortExecuteOff, abortExecuteOn, getAbortExecute, getErrorCode, getNumberOfInputs, getProgress, getProgressMaxValue, getProgressMinValue, getProgressText, getThisProcessObject, removeAllInputs, setAbortExecute, setProgress, setProgressText, squeezeInputArray, updateProgress
 
Methods inherited from class vtk.vtkObject
AddObserver, breakOnError, debugOff, debugOn, getDebug, getGlobalWarningDisplay, getMTime, getThisObject, globalWarningDisplayOff, globalWarningDisplayOn, hasObserver, hasObserver, invokeEvent, invokeEvent, modified, Print, PrintRevisions, register, removeObserver, removeObservers, removeObservers, setDebug, setGlobalWarningDisplay
 
Methods inherited from class vtk.vtkObjectBase
addPropertyChangeListener, finalize, getReferenceCount, getThisObjectBase, isTypeOf, removePropertyChangeListener, setReferenceCount, VTKDelete
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changes

protected java.beans.PropertyChangeSupport changes
Constructor Detail

vtkTextureMapToSphere

public vtkTextureMapToSphere()

vtkTextureMapToSphere

protected vtkTextureMapToSphere(int dmy)
Method Detail

getThisTextureMapToSphere

public vtkTextureMapToSphere getThisTextureMapToSphere()

getClassName

public java.lang.String getClassName()
Description copied from class: vtkObjectBase
Return the class name as a string. This method is defined in all subclasses of vtkObjectBase with the vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
getClassName in class vtkDataSetToDataSetFilter

isA

public int isA(java.lang.String id0)
Description copied from class: vtkObjectBase
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 vtkTypeRevisionMacro found in vtkSetGet.h.

Overrides:
isA in class vtkDataSetToDataSetFilter

setCenter

public void setCenter(double id0,
                      double id1,
                      double id2)
Specify a point defining the center of the sphere.


setCenter

public void setCenter(double[] id0)
Specify a point defining the center of the sphere.


getCenter

public double[] getCenter()
Specify a point defining the center of the sphere.


setAutomaticSphereGeneration

public void setAutomaticSphereGeneration(int id0)
Turn on/off automatic sphere generation. This means it automatically finds the sphere center.


getAutomaticSphereGeneration

public int getAutomaticSphereGeneration()
Turn on/off automatic sphere generation. This means it automatically finds the sphere center.


automaticSphereGenerationOn

public void automaticSphereGenerationOn()
Turn on/off automatic sphere generation. This means it automatically finds the sphere center.


automaticSphereGenerationOff

public void automaticSphereGenerationOff()
Turn on/off automatic sphere generation. This means it automatically finds the sphere center.


setPreventSeam

public void setPreventSeam(int id0)
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.


getPreventSeam

public int getPreventSeam()
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.


preventSeamOn

public void preventSeamOn()
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.


preventSeamOff

public void preventSeamOff()
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.


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkDataSetToDataSetFilter


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.