VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkImageMagnify Class Reference

magnify an image by an integer value More...

#include <vtkImageMagnify.h>

Inheritance diagram for vtkImageMagnify:
Inheritance graph
[legend]
Collaboration diagram for vtkImageMagnify:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkThreadedImageAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkImageMagnifyNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetMagnificationFactors (int, int, int)
virtual void SetMagnificationFactors (int[3])
virtual intGetMagnificationFactors ()
virtual void GetMagnificationFactors (int &, int &, int &)
virtual void GetMagnificationFactors (int[3])
virtual void SetInterpolate (int)
virtual int GetInterpolate ()
virtual void InterpolateOn ()
virtual void InterpolateOff ()

Static Public Member Functions

static vtkImageMagnifyNew ()
static int IsTypeOf (const char *type)
static vtkImageMagnifySafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkImageMagnify ()
 ~vtkImageMagnify ()
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void ThreadedRequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int outExt[6], int id)
void InternalRequestUpdateExtent (int *inExt, int *outExt)

Protected Attributes

int MagnificationFactors [3]
int Interpolate

Detailed Description

magnify an image by an integer value

vtkImageMagnify maps each pixel of the input onto a nxmx... region of the output. Location (0,0,...) remains in the same place. The magnification occurs via pixel replication, or if Interpolate is on, by bilinear interpolation. Initially, interpolation is off and magnification factors are set to 1 in all directions.

Examples:
vtkImageMagnify (Examples)
Tests:
vtkImageMagnify (Tests)

Definition at line 37 of file vtkImageMagnify.h.


Member Typedef Documentation

Reimplemented from vtkThreadedImageAlgorithm.

Definition at line 41 of file vtkImageMagnify.h.


Constructor & Destructor Documentation

vtkImageMagnify::~vtkImageMagnify ( ) [inline, protected]

Definition at line 61 of file vtkImageMagnify.h.


Member Function Documentation

static vtkImageMagnify* vtkImageMagnify::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkAlgorithm.

static int vtkImageMagnify::IsTypeOf ( const char *  name) [static]

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

virtual int vtkImageMagnify::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 vtkThreadedImageAlgorithm.

Reimplemented from vtkThreadedImageAlgorithm.

virtual vtkObjectBase* vtkImageMagnify::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkThreadedImageAlgorithm.

Reimplemented from vtkThreadedImageAlgorithm.

void vtkImageMagnify::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 vtkThreadedImageAlgorithm.

virtual void vtkImageMagnify::SetMagnificationFactors ( int  ,
int  ,
int   
) [virtual]

Set/Get the integer magnification factors in the i-j-k directions. Initially, factors are set to 1 in all directions.

virtual void vtkImageMagnify::SetMagnificationFactors ( int  [3]) [virtual]

Set/Get the integer magnification factors in the i-j-k directions. Initially, factors are set to 1 in all directions.

Set/Get the integer magnification factors in the i-j-k directions. Initially, factors are set to 1 in all directions.

virtual void vtkImageMagnify::GetMagnificationFactors ( int ,
int ,
int  
) [virtual]

Set/Get the integer magnification factors in the i-j-k directions. Initially, factors are set to 1 in all directions.

virtual void vtkImageMagnify::GetMagnificationFactors ( int  [3]) [virtual]

Set/Get the integer magnification factors in the i-j-k directions. Initially, factors are set to 1 in all directions.

virtual void vtkImageMagnify::SetInterpolate ( int  ) [virtual]

Turn interpolation on and off (pixel replication is used when off). Initially, interpolation is off.

virtual int vtkImageMagnify::GetInterpolate ( ) [virtual]

Turn interpolation on and off (pixel replication is used when off). Initially, interpolation is off.

virtual void vtkImageMagnify::InterpolateOn ( ) [virtual]

Turn interpolation on and off (pixel replication is used when off). Initially, interpolation is off.

virtual void vtkImageMagnify::InterpolateOff ( ) [virtual]

Turn interpolation on and off (pixel replication is used when off). Initially, interpolation is off.

Subclasses can reimplement this method to translate the update extent requests from each output port into update extent requests for the input connections.

Reimplemented from vtkImageAlgorithm.

virtual int vtkImageMagnify::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Subclasses can reimplement this method to collect information from their inputs and set information for their outputs.

Reimplemented from vtkImageAlgorithm.

void vtkImageMagnify::ThreadedRequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector,
vtkImageData ***  inData,
vtkImageData **  outData,
int  extent[6],
int  threadId 
) [protected, virtual]

If the subclass does not define an Execute method, then the task will be broken up, multiple threads will be spawned, and each thread will call this method. It is public so that the thread functions can call this method.

Reimplemented from vtkThreadedImageAlgorithm.

void vtkImageMagnify::InternalRequestUpdateExtent ( int inExt,
int outExt 
) [protected]

Member Data Documentation

Definition at line 61 of file vtkImageMagnify.h.

Definition at line 64 of file vtkImageMagnify.h.


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