vtk
Class vtkTexture

java.lang.Object
  extended byvtk.vtkObjectBase
      extended byvtk.vtkObject
          extended byvtk.vtkProcessObject
              extended byvtk.vtkTexture
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vtkOpenGLTexture

public class vtkTexture
extends vtkProcessObject
implements java.io.Serializable

vtkTexture - handles properties associated with a texture map. vtkTexture is an object that handles loading and binding of texture maps. It obtains its data from an input image data dataset type. Thus you can create visualization pipelines to read, process, and construct textures. Note that textures will only work if texture coordinates are also defined, and if the rendering system supports texture. Instances of vtkTexture are associated with actors via the actor's SetTexture() method. Actors can share texture maps (this is encouraged to save memory resources.) JavaBean wrapper for vtkTexture object.

Author:
vtk2jbean Automatic JavaBean wrapper for VTK.
See Also:
vtkActor, vtkRenderer, Serialized Form

Field Summary
protected  java.beans.PropertyChangeSupport changes
           
 
Fields inherited from class vtk.vtkObjectBase
vtkId
 
Constructor Summary
  vtkTexture()
           
protected vtkTexture(int dmy)
           
 
Method Summary
 java.lang.String getClassName()
          Return the class name as a string.
 vtkImageData getInput()
          This process object accepts image data as input.
 int getInterpolate()
          Turn on/off linear interpolation of the texture map when rendering.
 vtkLookupTable getLookupTable()
          Specify the lookup table to convert scalars if necessary
 int getMapColorScalarsThroughLookupTable()
          Turn on/off the mapping of color scalars through the lookup table.
 vtkUnsignedCharArray getMappedScalars()
          Get Mapped Scalars
 int getQuality()
          Force texture quality to 16-bit or 32-bit.
 int getRepeat()
          Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range.
 vtkTexture getThisTexture()
           
 void interpolateOff()
          Turn on/off linear interpolation of the texture map when rendering.
 void interpolateOn()
          Turn on/off linear interpolation of the texture map when rendering.
 int isA(java.lang.String id0)
          Return 1 if this class is the same type of (or a subclass of) the named class.
 void load(vtkRenderer id0)
          Abstract interface to renderer.
 void mapColorScalarsThroughLookupTableOff()
          Turn on/off the mapping of color scalars through the lookup table.
 void mapColorScalarsThroughLookupTableOn()
          Turn on/off the mapping of color scalars through the lookup table.
 void releaseGraphicsResources(vtkWindow id0)
          Release any graphics resources that are being consumed by this texture.
 void render(vtkRenderer id0)
          Renders a texture map.
 void repeatOff()
          Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range.
 void repeatOn()
          Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range.
 void setInput(vtkImageData id0)
          This process object accepts image data as input.
 void setInterpolate(int id0)
          Turn on/off linear interpolation of the texture map when rendering.
 void setLookupTable(vtkLookupTable id0)
          Specify the lookup table to convert scalars if necessary
 void setMapColorScalarsThroughLookupTable(int id0)
          Turn on/off the mapping of color scalars through the lookup table.
 void setQuality(int id0)
          Force texture quality to 16-bit or 32-bit.
 void setQualityTo16Bit()
          Force texture quality to 16-bit or 32-bit.
 void setQualityTo32Bit()
          Force texture quality to 16-bit or 32-bit.
 void setQualityToDefault()
          Force texture quality to 16-bit or 32-bit.
 void setRepeat(int id0)
          Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range.
protected  void VTKCastInit()
           
 void VTKInit()
           
 
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, unRegister
 
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

vtkTexture

public vtkTexture()

vtkTexture

protected vtkTexture(int dmy)
Method Detail

getThisTexture

public vtkTexture getThisTexture()

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 vtkProcessObject

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 vtkProcessObject

render

public void render(vtkRenderer id0)
Renders a texture map. It first checks the object's modified time to make sure the texture maps Input is valid, then it invokes the Load() method.


releaseGraphicsResources

public void releaseGraphicsResources(vtkWindow id0)
Release any graphics resources that are being consumed by this texture. The parameter window could be used to determine which graphic resources to release.


load

public void load(vtkRenderer id0)
Abstract interface to renderer. Each concrete subclass of vtkTexture will load its data into graphics system in response to this method invocation.


getRepeat

public int getRepeat()
Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range.


setRepeat

public void setRepeat(int id0)
Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range.


repeatOn

public void repeatOn()
Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range.


repeatOff

public void repeatOff()
Turn on/off the repetition of the texture map when the texture coords extend beyond the [0,1] range.


getInterpolate

public int getInterpolate()
Turn on/off linear interpolation of the texture map when rendering.


setInterpolate

public void setInterpolate(int id0)
Turn on/off linear interpolation of the texture map when rendering.


interpolateOn

public void interpolateOn()
Turn on/off linear interpolation of the texture map when rendering.


interpolateOff

public void interpolateOff()
Turn on/off linear interpolation of the texture map when rendering.


setQuality

public void setQuality(int id0)
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.


getQuality

public int getQuality()
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.


setQualityToDefault

public void setQualityToDefault()
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.


setQualityTo16Bit

public void setQualityTo16Bit()
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.


setQualityTo32Bit

public void setQualityTo32Bit()
Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.


getMapColorScalarsThroughLookupTable

public int getMapColorScalarsThroughLookupTable()
Turn on/off the mapping of color scalars through the lookup table. The default is Off. If Off, unsigned char scalars will be used directly as texture. If On, scalars will be mapped through the lookup table to generate 4-component unsigned char scalars. This ivar does not affect other scalars like unsigned short, float, etc. These scalars are always mapped through lookup tables.


setMapColorScalarsThroughLookupTable

public void setMapColorScalarsThroughLookupTable(int id0)
Turn on/off the mapping of color scalars through the lookup table. The default is Off. If Off, unsigned char scalars will be used directly as texture. If On, scalars will be mapped through the lookup table to generate 4-component unsigned char scalars. This ivar does not affect other scalars like unsigned short, float, etc. These scalars are always mapped through lookup tables.


mapColorScalarsThroughLookupTableOn

public void mapColorScalarsThroughLookupTableOn()
Turn on/off the mapping of color scalars through the lookup table. The default is Off. If Off, unsigned char scalars will be used directly as texture. If On, scalars will be mapped through the lookup table to generate 4-component unsigned char scalars. This ivar does not affect other scalars like unsigned short, float, etc. These scalars are always mapped through lookup tables.


mapColorScalarsThroughLookupTableOff

public void mapColorScalarsThroughLookupTableOff()
Turn on/off the mapping of color scalars through the lookup table. The default is Off. If Off, unsigned char scalars will be used directly as texture. If On, scalars will be mapped through the lookup table to generate 4-component unsigned char scalars. This ivar does not affect other scalars like unsigned short, float, etc. These scalars are always mapped through lookup tables.


setInput

public void setInput(vtkImageData id0)
This process object accepts image data as input.


getInput

public vtkImageData getInput()
This process object accepts image data as input.


setLookupTable

public void setLookupTable(vtkLookupTable id0)
Specify the lookup table to convert scalars if necessary


getLookupTable

public vtkLookupTable getLookupTable()
Specify the lookup table to convert scalars if necessary


getMappedScalars

public vtkUnsignedCharArray getMappedScalars()
Get Mapped Scalars


VTKInit

public void VTKInit()
Overrides:
VTKInit in class vtkObject

VTKCastInit

protected void VTKCastInit()
Overrides:
VTKCastInit in class vtkProcessObject


Copyright © 2004 Sydney ViSLAB. All Rights Reserved.