VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkTexture Class Reference

handles properties associated with a texture map More...

#include <vtkTexture.h>

Inheritance diagram for vtkTexture:
[legend]
Collaboration diagram for vtkTexture:
[legend]

Public Types

typedef vtkImageAlgorithm Superclass
 
enum  VTKTextureBlendingMode {
  VTK_TEXTURE_BLENDING_MODE_NONE = 0, VTK_TEXTURE_BLENDING_MODE_REPLACE, VTK_TEXTURE_BLENDING_MODE_MODULATE, VTK_TEXTURE_BLENDING_MODE_ADD,
  VTK_TEXTURE_BLENDING_MODE_ADD_SIGNED, VTK_TEXTURE_BLENDING_MODE_INTERPOLATE, VTK_TEXTURE_BLENDING_MODE_SUBTRACT
}
 
- Public Types inherited from vtkImageAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkTextureNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void Render (vtkRenderer *ren)
 
virtual void PostRender (vtkRenderer *)
 
virtual void ReleaseGraphicsResources (vtkWindow *)
 
virtual void Load (vtkRenderer *)
 
unsigned char * MapScalarsToColors (vtkDataArray *scalars)
 
virtual int IsTranslucent ()
 
virtual int GetTextureUnit ()
 
virtual int GetRepeat ()
 
virtual void SetRepeat (int)
 
virtual void RepeatOn ()
 
virtual void RepeatOff ()
 
virtual int GetEdgeClamp ()
 
virtual void SetEdgeClamp (int)
 
virtual void EdgeClampOn ()
 
virtual void EdgeClampOff ()
 
virtual int GetInterpolate ()
 
virtual void SetInterpolate (int)
 
virtual void InterpolateOn ()
 
virtual void InterpolateOff ()
 
virtual void SetQuality (int)
 
virtual int GetQuality ()
 
void SetQualityToDefault ()
 
void SetQualityTo16Bit ()
 
void SetQualityTo32Bit ()
 
virtual int GetMapColorScalarsThroughLookupTable ()
 
virtual void SetMapColorScalarsThroughLookupTable (int)
 
virtual void MapColorScalarsThroughLookupTableOn ()
 
virtual void MapColorScalarsThroughLookupTableOff ()
 
vtkImageDataGetInput ()
 
void SetLookupTable (vtkScalarsToColors *)
 
virtual vtkScalarsToColorsGetLookupTable ()
 
virtual vtkUnsignedCharArrayGetMappedScalars ()
 
void SetTransform (vtkTransform *transform)
 
virtual vtkTransformGetTransform ()
 
virtual int GetBlendingMode ()
 
virtual void SetBlendingMode (int)
 
virtual bool GetPremultipliedAlpha ()
 
virtual void SetPremultipliedAlpha (bool)
 
virtual void PremultipliedAlphaOn ()
 
virtual void PremultipliedAlphaOff ()
 
virtual int GetRestrictPowerOf2ImageSmaller ()
 
virtual void SetRestrictPowerOf2ImageSmaller (int)
 
virtual void RestrictPowerOf2ImageSmallerOn ()
 
virtual void RestrictPowerOf2ImageSmallerOff ()
 
- Public Member Functions inherited from vtkImageAlgorithm
vtkImageAlgorithmNewInstance () const
 
vtkImageDataGetOutput ()
 
vtkImageDataGetOutput (int)
 
virtual void SetOutput (vtkDataObject *d)
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
vtkDataObjectGetInput (int port)
 
vtkDataObjectGetInput ()
 
vtkImageDataGetImageDataInput (int port)
 
virtual void AddInputData (vtkDataObject *)
 
virtual void AddInputData (int, vtkDataObject *)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformationGetInputInformation (int port, int index)
 
vtkInformationGetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void UpdateDataObject ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformationGetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
intGetUpdateExtent ()
 
intGetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 
void SetProgressObserver (vtkProgressObserver *)
 
virtual vtkProgressObserverGetProgressObserver ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkTextureNew ()
 
static int IsTypeOf (const char *type)
 
static vtkTextureSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkImageAlgorithm
static int IsTypeOf (const char *type)
 
static vtkImageAlgorithmSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static vtkInformationInformationVectorKeyINPUT_REQUIRED_FIELDS ()
 
static vtkInformationStringVectorKeyINPUT_REQUIRED_DATA_TYPE ()
 
static vtkInformationInformationVectorKeyINPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyCAN_PRODUCE_SUB_EXTENT ()
 
static vtkInformationIntegerKeyCAN_HANDLE_PIECE_REQUEST ()
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkTexture ()
 
 ~vtkTexture ()
 
virtual void ExecuteData (vtkDataObject *)
 
- Protected Member Functions inherited from vtkImageAlgorithm
 vtkImageAlgorithm ()
 
 ~vtkImageAlgorithm ()
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual void CopyInputArrayAttributesToOutput (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual void ExecuteDataWithInformation (vtkDataObject *output, vtkInformation *outInfo)
 
virtual void Execute ()
 
virtual void AllocateOutputData (vtkImageData *out, vtkInformation *outInfo, int *uExtent)
 
virtual vtkImageDataAllocateOutputData (vtkDataObject *out, vtkInformation *outInfo)
 
virtual void CopyAttributeData (vtkImageData *in, vtkImageData *out, vtkInformationVector **inputVector)
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

int Repeat
 
int EdgeClamp
 
int Interpolate
 
int Quality
 
int MapColorScalarsThroughLookupTable
 
vtkScalarsToColorsLookupTable
 
vtkUnsignedCharArrayMappedScalars
 
vtkTransformTransform
 
int BlendingMode
 
int RestrictPowerOf2ImageSmaller
 
int SelfAdjustingTableRange
 
bool PremultipliedAlpha
 
vtkTimeStamp TranslucentComputationTime
 
int TranslucentCachedResult
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
vtkProgressObserverProgressObserver
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

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.)

Warning
Currently only 2D texture maps are supported, even though the data pipeline supports 1,2, and 3D texture coordinates.
Some renderers such as old OpenGL require that the texture map dimensions are a power of two in each direction. If a non-power of two texture map is used, it is automatically resampled to a power of two in one or more directions, at the cost of an expensive computation. If the OpenGL implementation is recent enough (OpenGL>=2.0 or extension GL_ARB_texture_non_power_of_two exists) there is no such restriction and no extra computational cost.
See also
vtkActor vtkRenderer vtkOpenGLTexture
Examples:
vtkTexture (Examples)
Tests:
vtkTexture (Tests)

Definition at line 69 of file vtkTexture.h.

Member Typedef Documentation

Definition at line 73 of file vtkTexture.h.

Member Enumeration Documentation

Used to specify how the texture will blend its RGB and Alpha values with other textures and the fragment the texture is rendered upon.

Enumerator
VTK_TEXTURE_BLENDING_MODE_NONE 
VTK_TEXTURE_BLENDING_MODE_REPLACE 
VTK_TEXTURE_BLENDING_MODE_MODULATE 
VTK_TEXTURE_BLENDING_MODE_ADD 
VTK_TEXTURE_BLENDING_MODE_ADD_SIGNED 
VTK_TEXTURE_BLENDING_MODE_INTERPOLATE 
VTK_TEXTURE_BLENDING_MODE_SUBTRACT 

Definition at line 177 of file vtkTexture.h.

Constructor & Destructor Documentation

vtkTexture::vtkTexture ( )
protected
vtkTexture::~vtkTexture ( )
protected

Member Function Documentation

static vtkTexture* vtkTexture::New ( )
static
static int vtkTexture::IsTypeOf ( const char *  type)
static
virtual int vtkTexture::IsA ( const char *  name)
virtual

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 vtkImageAlgorithm.

Reimplemented in vtkOpenGLTexture, and vtkOpenGLTexture.

static vtkTexture* vtkTexture::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkTexture::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkImageAlgorithm.

Reimplemented in vtkOpenGLTexture, and vtkOpenGLTexture.

vtkTexture* vtkTexture::NewInstance ( ) const
void vtkTexture::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

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 vtkImageAlgorithm.

Reimplemented in vtkOpenGLTexture, and vtkOpenGLTexture.

virtual void vtkTexture::Render ( vtkRenderer ren)
virtual

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.

Reimplemented in vtkOpenGLTexture.

virtual void vtkTexture::PostRender ( vtkRenderer )
inlinevirtual

Cleans up after the texture rendering to restore the state of the graphics context.

Reimplemented in vtkOpenGLTexture, and vtkOpenGLTexture.

Definition at line 83 of file vtkTexture.h.

virtual void vtkTexture::ReleaseGraphicsResources ( vtkWindow )
inlinevirtual

Release any graphics resources that are being consumed by this texture. The parameter window could be used to determine which graphic resources to release.

Reimplemented in vtkOpenGLTexture, and vtkOpenGLTexture.

Definition at line 88 of file vtkTexture.h.

virtual void vtkTexture::Load ( vtkRenderer )
inlinevirtual

Abstract interface to renderer. Each concrete subclass of vtkTexture will load its data into graphics system in response to this method invocation.

Reimplemented in vtkOpenGLTexture, and vtkOpenGLTexture.

Definition at line 93 of file vtkTexture.h.

virtual int vtkTexture::GetRepeat ( )
virtual

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

virtual void vtkTexture::SetRepeat ( int  )
virtual

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

virtual void vtkTexture::RepeatOn ( )
virtual

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

virtual void vtkTexture::RepeatOff ( )
virtual

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

virtual int vtkTexture::GetEdgeClamp ( )
virtual

Turn on/off the clamping of the texture map when the texture coords extend beyond the [0,1] range. Only used when Repeat is off, and edge clamping is supported by the graphics card.

virtual void vtkTexture::SetEdgeClamp ( int  )
virtual

Turn on/off the clamping of the texture map when the texture coords extend beyond the [0,1] range. Only used when Repeat is off, and edge clamping is supported by the graphics card.

virtual void vtkTexture::EdgeClampOn ( )
virtual

Turn on/off the clamping of the texture map when the texture coords extend beyond the [0,1] range. Only used when Repeat is off, and edge clamping is supported by the graphics card.

virtual void vtkTexture::EdgeClampOff ( )
virtual

Turn on/off the clamping of the texture map when the texture coords extend beyond the [0,1] range. Only used when Repeat is off, and edge clamping is supported by the graphics card.

virtual int vtkTexture::GetInterpolate ( )
virtual

Turn on/off linear interpolation of the texture map when rendering.

virtual void vtkTexture::SetInterpolate ( int  )
virtual

Turn on/off linear interpolation of the texture map when rendering.

virtual void vtkTexture::InterpolateOn ( )
virtual

Turn on/off linear interpolation of the texture map when rendering.

virtual void vtkTexture::InterpolateOff ( )
virtual

Turn on/off linear interpolation of the texture map when rendering.

virtual void vtkTexture::SetQuality ( int  )
virtual

Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.

virtual int vtkTexture::GetQuality ( )
virtual

Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.

void vtkTexture::SetQualityToDefault ( )
inline

Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.

Definition at line 124 of file vtkTexture.h.

void vtkTexture::SetQualityTo16Bit ( )
inline

Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.

Definition at line 126 of file vtkTexture.h.

void vtkTexture::SetQualityTo32Bit ( )
inline

Force texture quality to 16-bit or 32-bit. This might not be supported on all machines.

Definition at line 128 of file vtkTexture.h.

virtual int vtkTexture::GetMapColorScalarsThroughLookupTable ( )
virtual

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.

virtual void vtkTexture::SetMapColorScalarsThroughLookupTable ( int  )
virtual

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.

virtual void vtkTexture::MapColorScalarsThroughLookupTableOn ( )
virtual

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.

virtual void vtkTexture::MapColorScalarsThroughLookupTableOff ( )
virtual

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.

vtkImageData* vtkTexture::GetInput ( )

Get the input as a vtkImageData object. This method is for backwards compatibility.

void vtkTexture::SetLookupTable ( vtkScalarsToColors )

Specify the lookup table to convert scalars if necessary

virtual vtkScalarsToColors* vtkTexture::GetLookupTable ( )
virtual

Specify the lookup table to convert scalars if necessary

virtual vtkUnsignedCharArray* vtkTexture::GetMappedScalars ( )
virtual

Get Mapped Scalars

unsigned char* vtkTexture::MapScalarsToColors ( vtkDataArray scalars)

Map scalar values into color scalars.

void vtkTexture::SetTransform ( vtkTransform transform)

Set a transform on the texture which allows one to scale, rotate and translate the texture.

virtual vtkTransform* vtkTexture::GetTransform ( )
virtual

Set a transform on the texture which allows one to scale, rotate and translate the texture.

virtual int vtkTexture::GetBlendingMode ( )
virtual

Used to specify how the texture will blend its RGB and Alpha values with other textures and the fragment the texture is rendered upon.

virtual void vtkTexture::SetBlendingMode ( int  )
virtual

Used to specify how the texture will blend its RGB and Alpha values with other textures and the fragment the texture is rendered upon.

virtual bool vtkTexture::GetPremultipliedAlpha ( )
virtual

Whether the texture colors are premultiplied by alpha. Initial value is false.

virtual void vtkTexture::SetPremultipliedAlpha ( bool  )
virtual

Whether the texture colors are premultiplied by alpha. Initial value is false.

virtual void vtkTexture::PremultipliedAlphaOn ( )
virtual

Whether the texture colors are premultiplied by alpha. Initial value is false.

virtual void vtkTexture::PremultipliedAlphaOff ( )
virtual

Whether the texture colors are premultiplied by alpha. Initial value is false.

virtual int vtkTexture::GetRestrictPowerOf2ImageSmaller ( )
virtual

When the texture is forced to be a power of 2, the default behavior is for the "new" image's dimensions to be greater than or equal to with respects to the original. Setting RestrictPowerOf2ImageSmaller to be 1 (or ON) with force the new image's dimensions to be less than or equal to with respects to the original.

virtual void vtkTexture::SetRestrictPowerOf2ImageSmaller ( int  )
virtual

When the texture is forced to be a power of 2, the default behavior is for the "new" image's dimensions to be greater than or equal to with respects to the original. Setting RestrictPowerOf2ImageSmaller to be 1 (or ON) with force the new image's dimensions to be less than or equal to with respects to the original.

virtual void vtkTexture::RestrictPowerOf2ImageSmallerOn ( )
virtual

When the texture is forced to be a power of 2, the default behavior is for the "new" image's dimensions to be greater than or equal to with respects to the original. Setting RestrictPowerOf2ImageSmaller to be 1 (or ON) with force the new image's dimensions to be less than or equal to with respects to the original.

virtual void vtkTexture::RestrictPowerOf2ImageSmallerOff ( )
virtual

When the texture is forced to be a power of 2, the default behavior is for the "new" image's dimensions to be greater than or equal to with respects to the original. Setting RestrictPowerOf2ImageSmaller to be 1 (or ON) with force the new image's dimensions to be less than or equal to with respects to the original.

virtual int vtkTexture::IsTranslucent ( )
virtual

Is this Texture Translucent? returns false (0) if the texture is either fully opaque or has only fully transparent pixels and fully opaque pixels and the Interpolate flag is turn off.

Reimplemented in vtkOpenGLTexture.

virtual int vtkTexture::GetTextureUnit ( )
inlinevirtual

Return the texture unit used for this texture

Reimplemented in vtkOpenGLTexture.

Definition at line 222 of file vtkTexture.h.

virtual void vtkTexture::ExecuteData ( vtkDataObject output)
inlineprotectedvirtual

This method is the old style execute method, provided for the sake of backwards compatibility with older filters and readers.

Reimplemented from vtkImageAlgorithm.

Definition at line 230 of file vtkTexture.h.

Member Data Documentation

int vtkTexture::Repeat
protected

Definition at line 234 of file vtkTexture.h.

int vtkTexture::EdgeClamp
protected

Definition at line 235 of file vtkTexture.h.

int vtkTexture::Interpolate
protected

Definition at line 236 of file vtkTexture.h.

int vtkTexture::Quality
protected

Definition at line 237 of file vtkTexture.h.

int vtkTexture::MapColorScalarsThroughLookupTable
protected

Definition at line 238 of file vtkTexture.h.

vtkScalarsToColors* vtkTexture::LookupTable
protected

Definition at line 239 of file vtkTexture.h.

vtkUnsignedCharArray* vtkTexture::MappedScalars
protected

Definition at line 240 of file vtkTexture.h.

vtkTransform* vtkTexture::Transform
protected

Definition at line 241 of file vtkTexture.h.

int vtkTexture::BlendingMode
protected

Definition at line 243 of file vtkTexture.h.

int vtkTexture::RestrictPowerOf2ImageSmaller
protected

Definition at line 244 of file vtkTexture.h.

int vtkTexture::SelfAdjustingTableRange
protected

Definition at line 246 of file vtkTexture.h.

bool vtkTexture::PremultipliedAlpha
protected

Definition at line 247 of file vtkTexture.h.

vtkTimeStamp vtkTexture::TranslucentComputationTime
protected

Definition at line 250 of file vtkTexture.h.

int vtkTexture::TranslucentCachedResult
protected

Definition at line 251 of file vtkTexture.h.


The documentation for this class was generated from the following file: