VTK  9.2.6
vtkReflectionFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkReflectionFilter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
27
28#ifndef vtkReflectionFilter_h
29#define vtkReflectionFilter_h
30
32#include "vtkFiltersGeneralModule.h" // For export macro
33
35class vtkDataSet;
36
37class VTKFILTERSGENERAL_EXPORT vtkReflectionFilter : public vtkDataObjectAlgorithm
38{
39public:
41
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
57
59
62 vtkSetClampMacro(Plane, int, 0, 8);
63 vtkGetMacro(Plane, int);
64 void SetPlaneToX() { this->SetPlane(USE_X); }
65 void SetPlaneToY() { this->SetPlane(USE_Y); }
66 void SetPlaneToZ() { this->SetPlane(USE_Z); }
74
76
80 vtkSetMacro(Center, double);
81 vtkGetMacro(Center, double);
83
85
89 vtkSetMacro(CopyInput, vtkTypeBool);
90 vtkGetMacro(CopyInput, vtkTypeBool);
91 vtkBooleanMacro(CopyInput, vtkTypeBool);
93
95
102 vtkSetMacro(FlipAllInputArrays, bool);
103 vtkGetMacro(FlipAllInputArrays, bool);
104 vtkBooleanMacro(FlipAllInputArrays, bool);
106
107protected:
110
117
121 virtual int RequestDataInternal(vtkDataSet* input, vtkUnstructuredGrid* output, double bounds[6]);
122
126 virtual int ComputeBounds(vtkDataObject* input, double bounds[6]);
127
132 vtkDataSet* input, vtkUnstructuredGrid* output, vtkIdType cellId, vtkIdType numInputPoints);
133
135 int FillInputPortInformation(int port, vtkInformation* info) override;
136
137 void FlipTuple(double* tuple, int* mirrorDir, int nComp);
138
139 int Plane;
140 double Center;
143
144private:
146 void operator=(const vtkReflectionFilter&) = delete;
147};
148
149#endif
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:63
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
virtual vtkIdType ReflectNon3DCell(vtkDataSet *input, vtkUnstructuredGrid *output, vtkIdType cellId, vtkIdType numInputPoints)
Generate new, non-3D cell and return the generated cells id.
void SetPlaneToY()
Set the normal of the plane to use as mirror.
void SetPlaneToZMin()
Set the normal of the plane to use as mirror.
virtual int RequestDataInternal(vtkDataSet *input, vtkUnstructuredGrid *output, double bounds[6])
Actual implementation for reflection.
void SetPlaneToX()
Set the normal of the plane to use as mirror.
void SetPlaneToYMin()
Set the normal of the plane to use as mirror.
void FlipTuple(double *tuple, int *mirrorDir, int nComp)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetPlane(int)
Set the normal of the plane to use as mirror.
void SetPlaneToXMax()
Set the normal of the plane to use as mirror.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetPlaneToZMax()
Set the normal of the plane to use as mirror.
void SetPlaneToYMax()
Set the normal of the plane to use as mirror.
virtual int ComputeBounds(vtkDataObject *input, double bounds[6])
Internal method to compute bounds.
static vtkReflectionFilter * New()
void SetPlaneToZ()
Set the normal of the plane to use as mirror.
int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetPlaneToXMin()
Set the normal of the plane to use as mirror.
~vtkReflectionFilter() override
dataset represents arbitrary combinations of all possible cell types
int vtkTypeBool
Definition vtkABI.h:69
int vtkIdType
Definition vtkType.h:332