Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkImageFlip Class Reference

This flips an axis of an image. Right becomes left ... More...

#include <vtkImageFlip.h>

Inheritance diagram for vtkImageFlip:

Inheritance graph
[legend]
Collaboration diagram for vtkImageFlip:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void SetFilteredAxes (int axis)
virtual void SetFilteredAxis (int)
virtual int GetFilteredAxis ()
virtual void SetPreserveImageExtent (int)
virtual int GetPreserveImageExtent ()
virtual void PreserveImageExtentOn ()
virtual void PreserveImageExtentOff ()

Static Public Methods

vtkImageFlip * New ()
int IsTypeOf (const char *type)
vtkImageFlip * SafeDownCast (vtkObject *o)

Protected Methods

 vtkImageFlip ()
 ~vtkImageFlip ()
void ExecuteInformation (vtkImageData *inData, vtkImageData *outData)
void ComputeInputUpdateExtent (int inExt[6], int outExt[6])
void ExecuteInformation ()
void ThreadedExecute (vtkImageData *inData, vtkImageData *outData, int outExt[6], int id)

Protected Attributes

int FilteredAxis
int PreserveImageExtent

Detailed Description

This flips an axis of an image. Right becomes left ...

Date:
2001/11/13 14:32:35
Revision:
1.30
Thanks:
Thanks to C. Charles Law who developed this class.
vtkImageFlip will reflect the data along the filtered axis. If PreserveImageExtent is "On", then the image is shifted so that it has the same image extent, and the origin is shifted appropriately. When PreserveImageExtent is "off", The Origin is not changed, min and max of extent (of filtered axis) are negated, and are swapped. The default preserves the extent of the input.
Tests:
vtkImageFlip (Tests)

Definition at line 64 of file vtkImageFlip.h.


Constructor & Destructor Documentation

vtkImageFlip::vtkImageFlip   [protected]
 

vtkImageFlip::~vtkImageFlip   [inline, protected]
 

Definition at line 93 of file vtkImageFlip.h.


Member Function Documentation

vtkImageFlip* vtkImageFlip::New   [static]
 

Instantiate object with no start, end, or progress methods.

Reimplemented from vtkImageToImageFilter.

virtual const char* vtkImageFlip::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

int vtkImageFlip::IsTypeOf const char *    type [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 vtkImageToImageFilter.

virtual int vtkImageFlip::IsA const char *    type [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 vtkImageToImageFilter.

vtkImageFlip* vtkImageFlip::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageToImageFilter.

void vtkImageFlip::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 vtkImageToImageFilter.

virtual void vtkImageFlip::SetFilteredAxis int    [virtual]
 

Specify which axes will be flipped.

virtual int vtkImageFlip::GetFilteredAxis   [virtual]
 

Specify which axes will be flipped.

void vtkImageFlip::SetFilteredAxes int    axis [inline]
 

Specify which axes will be flipped. For compatibility with old scripts

Definition at line 80 of file vtkImageFlip.h.

virtual void vtkImageFlip::SetPreserveImageExtent int    [virtual]
 

If PreseveImageExtent is off, then extent of axis0 is simply multiplied by -1. If it is on, then the new image min (-imageMax0) is shifted to old image min (imageMin0).

virtual int vtkImageFlip::GetPreserveImageExtent   [virtual]
 

If PreseveImageExtent is off, then extent of axis0 is simply multiplied by -1. If it is on, then the new image min (-imageMax0) is shifted to old image min (imageMin0).

virtual void vtkImageFlip::PreserveImageExtentOn   [virtual]
 

If PreseveImageExtent is off, then extent of axis0 is simply multiplied by -1. If it is on, then the new image min (-imageMax0) is shifted to old image min (imageMin0).

virtual void vtkImageFlip::PreserveImageExtentOff   [virtual]
 

If PreseveImageExtent is off, then extent of axis0 is simply multiplied by -1. If it is on, then the new image min (-imageMax0) is shifted to old image min (imageMin0).

void vtkImageFlip::ExecuteInformation vtkImageData   inData,
vtkImageData   outData
[protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

void vtkImageFlip::ComputeInputUpdateExtent int    inExt[6],
int    outExt[6]
[protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

void vtkImageFlip::ExecuteInformation   [inline, protected, virtual]
 

Reimplemented from vtkImageToImageFilter.

Definition at line 100 of file vtkImageFlip.h.

void vtkImageFlip::ThreadedExecute vtkImageData   inData,
vtkImageData   outData,
int    outExt[6],
int    id
[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 vtkImageToImageFilter.


Member Data Documentation

int vtkImageFlip::FilteredAxis [protected]
 

Definition at line 95 of file vtkImageFlip.h.

int vtkImageFlip::PreserveImageExtent [protected]
 

Definition at line 96 of file vtkImageFlip.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 28 14:30:32 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001