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

transform (scale, rotate, translate) texture coordinates More...

#include <vtkTransformTextureCoords.h>

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

Public Types

typedef vtkDataSetAlgorithm Superclass
 
- Public Types inherited from vtkDataSetAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetPosition (double, double, double)
 
virtual void SetPosition (double[3])
 
virtual double * GetPosition ()
 
virtual void GetPosition (double data[3])
 
void AddPosition (double deltaR, double deltaS, double deltaT)
 
void AddPosition (double deltaPosition[3])
 
virtual void SetScale (double, double, double)
 
virtual void SetScale (double[3])
 
virtual double * GetScale ()
 
virtual void GetScale (double data[3])
 
virtual void SetOrigin (double, double, double)
 
virtual void SetOrigin (double[3])
 
virtual double * GetOrigin ()
 
virtual void GetOrigin (double data[3])
 
virtual void SetFlipR (int)
 
virtual int GetFlipR ()
 
virtual void FlipROn ()
 
virtual void FlipROff ()
 
virtual void SetFlipS (int)
 
virtual int GetFlipS ()
 
virtual void FlipSOn ()
 
virtual void FlipSOff ()
 
virtual void SetFlipT (int)
 
virtual int GetFlipT ()
 
virtual void FlipTOn ()
 
virtual void FlipTOff ()
 
- Public Member Functions inherited from vtkDataSetAlgorithm
vtkDataObjectGetInput ()
 
vtkPolyDataGetPolyDataOutput ()
 
vtkStructuredPointsGetStructuredPointsOutput ()
 
vtkImageDataGetImageDataOutput ()
 
vtkStructuredGridGetStructuredGridOutput ()
 
vtkUnstructuredGridGetUnstructuredGridOutput ()
 
vtkRectilinearGridGetRectilinearGridOutput ()
 
vtkDataSetGetOutput ()
 
vtkDataSetGetOutput (int)
 
void SetInput (vtkDataObject *)
 
void SetInput (int, vtkDataObject *)
 
void SetInput (vtkDataSet *)
 
void SetInput (int, vtkDataSet *)
 
void AddInput (vtkDataObject *)
 
void AddInput (vtkDataSet *)
 
void AddInput (int, vtkDataSet *)
 
void AddInput (int, vtkDataObject *)
 
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
- Public Member Functions inherited from vtkAlgorithm
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)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
virtual void Update ()
 
virtual void UpdateInformation ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
virtual double ComputePriority ()
 
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)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
 
virtual void DebugOff ()
 
unsigned char GetDebug ()
 
void SetDebug (unsigned char 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)
 
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 &os)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkTransformTextureCoordsSafeDownCast (vtkObject *o)
 
static vtkTransformTextureCoordsNew ()
 
- Static Public Member Functions inherited from vtkDataSetAlgorithm
static vtkDataSetAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkDataSetAlgorithmSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObject *o)
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static
vtkInformationInformationVectorKey
INPUT_REQUIRED_FIELDS ()
 
static
vtkInformationStringVectorKey
INPUT_REQUIRED_DATA_TYPE ()
 
static
vtkInformationInformationVectorKey
INPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyPRESERVES_DATASET ()
 
static vtkInformationIntegerKeyPRESERVES_GEOMETRY ()
 
static vtkInformationIntegerKeyPRESERVES_BOUNDS ()
 
static vtkInformationIntegerKeyPRESERVES_TOPOLOGY ()
 
static vtkInformationIntegerKeyPRESERVES_ATTRIBUTES ()
 
static vtkInformationIntegerKeyPRESERVES_RANGES ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObject *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

 vtkTransformTextureCoords ()
 
 ~vtkTransformTextureCoords ()
 
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkDataSetAlgorithm
 vtkDataSetAlgorithm ()
 
 ~vtkDataSetAlgorithm ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
vtkDataObjectGetInput (int port)
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestDataObject (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
- 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)
 
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 &os)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

double Origin [3]
 
double Position [3]
 
double Scale [3]
 
int FlipR
 
int FlipS
 
int FlipT
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
unsigned char Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
int 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

transform (scale, rotate, translate) texture coordinates

vtkTransformTextureCoords is a filter that operates on texture coordinates. It ingests any type of dataset, and outputs a dataset of the same type. The filter lets you scale, translate, and rotate texture coordinates. For example, by using the the Scale ivar, you can shift texture coordinates that range from (0->1) to range from (0->10) (useful for repeated patterns).

The filter operates on texture coordinates of dimension 1->3. The texture coordinates are referred to as r-s-t. If the texture map is two dimensional, the t-coordinate (and operations on the t-coordinate) are ignored.

See also
vtkTextureMapToPlane vtkTextureMapToCylinder vtkTextureMapToSphere vtkThresholdTextureCoords vtkTexture
Examples:
vtkTransformTextureCoords (Examples)
Tests:
vtkTransformTextureCoords (Tests)

Definition at line 45 of file vtkTransformTextureCoords.h.

Member Typedef Documentation

Definition at line 48 of file vtkTransformTextureCoords.h.

Constructor & Destructor Documentation

vtkTransformTextureCoords::vtkTransformTextureCoords ( )
protected
vtkTransformTextureCoords::~vtkTransformTextureCoords ( )
inlineprotected

Definition at line 112 of file vtkTransformTextureCoords.h.

Member Function Documentation

virtual const char* vtkTransformTextureCoords::GetClassName ( )
virtual

Reimplemented from vtkDataSetAlgorithm.

static int vtkTransformTextureCoords::IsTypeOf ( const char *  type)
static
virtual int vtkTransformTextureCoords::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 vtkDataSetAlgorithm.

static vtkTransformTextureCoords* vtkTransformTextureCoords::SafeDownCast ( vtkObject o)
static
void vtkTransformTextureCoords::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 vtkDataSetAlgorithm.

static vtkTransformTextureCoords* vtkTransformTextureCoords::New ( )
static

Create instance with Origin (0.5,0.5,0.5); Position (0,0,0); and Scale set to (1,1,1). Rotation of the texture coordinates is turned off.

virtual void vtkTransformTextureCoords::SetPosition ( double  ,
double  ,
double   
)
virtual

Set/Get the position of the texture map. Setting the position translates the texture map by the amount specified.

virtual void vtkTransformTextureCoords::SetPosition ( double  [3])
virtual

Set/Get the position of the texture map. Setting the position translates the texture map by the amount specified.

virtual double* vtkTransformTextureCoords::GetPosition ( )
virtual

Set/Get the position of the texture map. Setting the position translates the texture map by the amount specified.

virtual void vtkTransformTextureCoords::GetPosition ( double  data[3])
virtual

Set/Get the position of the texture map. Setting the position translates the texture map by the amount specified.

void vtkTransformTextureCoords::AddPosition ( double  deltaR,
double  deltaS,
double  deltaT 
)

Incrementally change the position of the texture map (i.e., does a translate or shift of the texture coordinates).

void vtkTransformTextureCoords::AddPosition ( double  deltaPosition[3])

Incrementally change the position of the texture map (i.e., does a translate or shift of the texture coordinates).

virtual void vtkTransformTextureCoords::SetScale ( double  ,
double  ,
double   
)
virtual

Set/Get the scale of the texture map. Scaling in performed independently on the r, s and t axes.

virtual void vtkTransformTextureCoords::SetScale ( double  [3])
virtual

Set/Get the scale of the texture map. Scaling in performed independently on the r, s and t axes.

virtual double* vtkTransformTextureCoords::GetScale ( )
virtual

Set/Get the scale of the texture map. Scaling in performed independently on the r, s and t axes.

virtual void vtkTransformTextureCoords::GetScale ( double  data[3])
virtual

Set/Get the scale of the texture map. Scaling in performed independently on the r, s and t axes.

virtual void vtkTransformTextureCoords::SetOrigin ( double  ,
double  ,
double   
)
virtual

Set/Get the origin of the texture map. This is the point about which the texture map is flipped (e.g., rotated). Since a typical texture map ranges from (0,1) in the r-s-t coordinates, the default origin is set at (0.5,0.5,0.5).

virtual void vtkTransformTextureCoords::SetOrigin ( double  [3])
virtual

Set/Get the origin of the texture map. This is the point about which the texture map is flipped (e.g., rotated). Since a typical texture map ranges from (0,1) in the r-s-t coordinates, the default origin is set at (0.5,0.5,0.5).

virtual double* vtkTransformTextureCoords::GetOrigin ( )
virtual

Set/Get the origin of the texture map. This is the point about which the texture map is flipped (e.g., rotated). Since a typical texture map ranges from (0,1) in the r-s-t coordinates, the default origin is set at (0.5,0.5,0.5).

virtual void vtkTransformTextureCoords::GetOrigin ( double  data[3])
virtual

Set/Get the origin of the texture map. This is the point about which the texture map is flipped (e.g., rotated). Since a typical texture map ranges from (0,1) in the r-s-t coordinates, the default origin is set at (0.5,0.5,0.5).

virtual void vtkTransformTextureCoords::SetFlipR ( int  )
virtual

Boolean indicates whether the texture map should be flipped around the s-axis. Note that the flips occur around the texture origin.

virtual int vtkTransformTextureCoords::GetFlipR ( )
virtual

Boolean indicates whether the texture map should be flipped around the s-axis. Note that the flips occur around the texture origin.

virtual void vtkTransformTextureCoords::FlipROn ( )
virtual

Boolean indicates whether the texture map should be flipped around the s-axis. Note that the flips occur around the texture origin.

virtual void vtkTransformTextureCoords::FlipROff ( )
virtual

Boolean indicates whether the texture map should be flipped around the s-axis. Note that the flips occur around the texture origin.

virtual void vtkTransformTextureCoords::SetFlipS ( int  )
virtual

Boolean indicates whether the texture map should be flipped around the s-axis. Note that the flips occur around the texture origin.

virtual int vtkTransformTextureCoords::GetFlipS ( )
virtual

Boolean indicates whether the texture map should be flipped around the s-axis. Note that the flips occur around the texture origin.

virtual void vtkTransformTextureCoords::FlipSOn ( )
virtual

Boolean indicates whether the texture map should be flipped around the s-axis. Note that the flips occur around the texture origin.

virtual void vtkTransformTextureCoords::FlipSOff ( )
virtual

Boolean indicates whether the texture map should be flipped around the s-axis. Note that the flips occur around the texture origin.

virtual void vtkTransformTextureCoords::SetFlipT ( int  )
virtual

Boolean indicates whether the texture map should be flipped around the t-axis. Note that the flips occur around the texture origin.

virtual int vtkTransformTextureCoords::GetFlipT ( )
virtual

Boolean indicates whether the texture map should be flipped around the t-axis. Note that the flips occur around the texture origin.

virtual void vtkTransformTextureCoords::FlipTOn ( )
virtual

Boolean indicates whether the texture map should be flipped around the t-axis. Note that the flips occur around the texture origin.

virtual void vtkTransformTextureCoords::FlipTOff ( )
virtual

Boolean indicates whether the texture map should be flipped around the t-axis. Note that the flips occur around the texture origin.

int vtkTransformTextureCoords::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
)
protectedvirtual

This is called within ProcessRequest when a request asks the algorithm to do its work. This is the method you should override to do whatever the algorithm is designed to do. This happens during the fourth pass in the pipeline execution process.

Reimplemented from vtkDataSetAlgorithm.

Member Data Documentation

double vtkTransformTextureCoords::Origin[3]
protected

Definition at line 116 of file vtkTransformTextureCoords.h.

double vtkTransformTextureCoords::Position[3]
protected

Definition at line 117 of file vtkTransformTextureCoords.h.

double vtkTransformTextureCoords::Scale[3]
protected

Definition at line 118 of file vtkTransformTextureCoords.h.

int vtkTransformTextureCoords::FlipR
protected

Definition at line 119 of file vtkTransformTextureCoords.h.

int vtkTransformTextureCoords::FlipS
protected

Definition at line 120 of file vtkTransformTextureCoords.h.

int vtkTransformTextureCoords::FlipT
protected

Definition at line 121 of file vtkTransformTextureCoords.h.


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