#include <vtkRotationFilter.h>
The vtkRotationFilter duplicates a data set by rotation about one of the 3 axis of the dataset's reference. Since it converts data sets into unstructured grids, it is not efficient for structured data sets.
Definition at line 36 of file vtkRotationFilter.h.
Public Types | |
enum | RotationAxis { USE_X = 0, USE_Y = 1, USE_Z = 2 } |
typedef vtkUnstructuredGridAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetAxis (int) |
virtual int | GetAxis () |
void | SetAxisToX () |
void | SetAxisToY () |
void | SetAxisToZ () |
virtual void | SetAngle (double) |
virtual double | GetAngle () |
virtual void | SetCenter (double, double, double) |
virtual void | SetCenter (double[3]) |
virtual double * | GetCenter () |
virtual void | GetCenter (double &, double &, double &) |
virtual void | GetCenter (double[3]) |
virtual void | SetNumberOfCopies (int) |
virtual int | GetNumberOfCopies () |
virtual void | SetCopyInput (int) |
virtual int | GetCopyInput () |
virtual void | CopyInputOn () |
virtual void | CopyInputOff () |
Static Public Member Functions | |
static vtkRotationFilter * | New () |
static int | IsTypeOf (const char *type) |
static vtkRotationFilter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkRotationFilter () | |
~vtkRotationFilter () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
Protected Attributes | |
int | Axis |
double | Angle |
double | Center [3] |
int | NumberOfCopies |
int | CopyInput |
vtkRotationFilter::vtkRotationFilter | ( | ) | [protected] |
vtkRotationFilter::~vtkRotationFilter | ( | ) | [protected] |
static vtkRotationFilter* vtkRotationFilter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkUnstructuredGridAlgorithm.
virtual const char* vtkRotationFilter::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkUnstructuredGridAlgorithm.
static int vtkRotationFilter::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 vtkUnstructuredGridAlgorithm.
virtual int vtkRotationFilter::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 vtkUnstructuredGridAlgorithm.
static vtkRotationFilter* vtkRotationFilter::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkUnstructuredGridAlgorithm.
void vtkRotationFilter::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 vtkUnstructuredGridAlgorithm.
virtual void vtkRotationFilter::SetAxis | ( | int | ) | [virtual] |
Set the axis of rotation to use. It is set by default to Z.
virtual int vtkRotationFilter::GetAxis | ( | ) | [virtual] |
Set the axis of rotation to use. It is set by default to Z.
void vtkRotationFilter::SetAxisToX | ( | ) | [inline] |
Set the axis of rotation to use. It is set by default to Z.
Definition at line 56 of file vtkRotationFilter.h.
void vtkRotationFilter::SetAxisToY | ( | ) | [inline] |
Set the axis of rotation to use. It is set by default to Z.
Definition at line 57 of file vtkRotationFilter.h.
void vtkRotationFilter::SetAxisToZ | ( | ) | [inline] |
Set the axis of rotation to use. It is set by default to Z.
Definition at line 58 of file vtkRotationFilter.h.
virtual void vtkRotationFilter::SetAngle | ( | double | ) | [virtual] |
Set the rotation angle to use.
virtual double vtkRotationFilter::GetAngle | ( | ) | [virtual] |
Set the rotation angle to use.
virtual void vtkRotationFilter::SetCenter | ( | double | , | |
double | , | |||
double | ||||
) | [virtual] |
Set the rotation center coordinates.
virtual void vtkRotationFilter::SetCenter | ( | double | [3] | ) | [virtual] |
Set the rotation center coordinates.
virtual double* vtkRotationFilter::GetCenter | ( | ) | [virtual] |
Set the rotation center coordinates.
virtual void vtkRotationFilter::GetCenter | ( | double & | , | |
double & | , | |||
double & | ||||
) | [virtual] |
Set the rotation center coordinates.
virtual void vtkRotationFilter::GetCenter | ( | double | [3] | ) | [virtual] |
Set the rotation center coordinates.
virtual void vtkRotationFilter::SetNumberOfCopies | ( | int | ) | [virtual] |
Set the number of copies to create. The source will be rotated N times and a new polydata copy of the original created at each angular position All copies will be appended to form a single output
virtual int vtkRotationFilter::GetNumberOfCopies | ( | ) | [virtual] |
Set the number of copies to create. The source will be rotated N times and a new polydata copy of the original created at each angular position All copies will be appended to form a single output
virtual void vtkRotationFilter::SetCopyInput | ( | int | ) | [virtual] |
If on (the default), copy the input geometry to the output. If off, the output will only contain the rotation.
virtual int vtkRotationFilter::GetCopyInput | ( | ) | [virtual] |
If on (the default), copy the input geometry to the output. If off, the output will only contain the rotation.
virtual void vtkRotationFilter::CopyInputOn | ( | ) | [virtual] |
If on (the default), copy the input geometry to the output. If off, the output will only contain the rotation.
virtual void vtkRotationFilter::CopyInputOff | ( | ) | [virtual] |
If on (the default), copy the input geometry to the output. If off, the output will only contain the rotation.
virtual int vtkRotationFilter::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkUnstructuredGridAlgorithm.
virtual int vtkRotationFilter::FillInputPortInformation | ( | int | port, | |
vtkInformation * | info | |||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkUnstructuredGridAlgorithm.
int vtkRotationFilter::Axis [protected] |
Definition at line 97 of file vtkRotationFilter.h.
double vtkRotationFilter::Angle [protected] |
Definition at line 98 of file vtkRotationFilter.h.
double vtkRotationFilter::Center[3] [protected] |
Definition at line 99 of file vtkRotationFilter.h.
int vtkRotationFilter::NumberOfCopies [protected] |
Definition at line 100 of file vtkRotationFilter.h.
int vtkRotationFilter::CopyInput [protected] |
Definition at line 101 of file vtkRotationFilter.h.