VTK
|
magnify an image by an integer value More...
#include <vtkImageMagnify.h>
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.
Definition at line 37 of file vtkImageMagnify.h.
Reimplemented from vtkThreadedImageAlgorithm.
Definition at line 41 of file vtkImageMagnify.h.
vtkImageMagnify::vtkImageMagnify | ( | ) | [protected] |
vtkImageMagnify::~vtkImageMagnify | ( | ) | [inline, protected] |
Definition at line 61 of file vtkImageMagnify.h.
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.
static vtkImageMagnify* vtkImageMagnify::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkThreadedImageAlgorithm.
virtual vtkObjectBase* vtkImageMagnify::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkThreadedImageAlgorithm.
vtkImageMagnify* vtkImageMagnify::NewInstance | ( | ) | const |
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.
virtual int* vtkImageMagnify::GetMagnificationFactors | ( | ) | [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 & | , |
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.
virtual int vtkImageMagnify::RequestUpdateExtent | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [protected, virtual] |
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] |
int vtkImageMagnify::MagnificationFactors[3] [protected] |
Definition at line 61 of file vtkImageMagnify.h.
int vtkImageMagnify::Interpolate [protected] |
Definition at line 64 of file vtkImageMagnify.h.