VTK
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 #ifndef vtkReflectionFilter_h
28 #define vtkReflectionFilter_h
29 
30 #include "vtkFiltersGeneralModule.h" // For export macro
31 #include "vtkDataObjectAlgorithm.h"
33 class vtkDataSet;
34 
36 {
37 public:
38  static vtkReflectionFilter *New();
39 
41  void PrintSelf(ostream &os, vtkIndent indent);
42 
43 //BTX
45  {
46  USE_X_MIN = 0,
47  USE_Y_MIN = 1,
48  USE_Z_MIN = 2,
49  USE_X_MAX = 3,
50  USE_Y_MAX = 4,
51  USE_Z_MAX = 5,
52  USE_X = 6,
53  USE_Y = 7,
54  USE_Z = 8
55  };
56 //ETX
57 
59 
60  vtkSetClampMacro(Plane, int, 0, 8);
61  vtkGetMacro(Plane, int);
62  void SetPlaneToX() { this->SetPlane(USE_X); };
63  void SetPlaneToY() { this->SetPlane(USE_Y); };
64  void SetPlaneToZ() { this->SetPlane(USE_Z); };
65  void SetPlaneToXMin() { this->SetPlane(USE_X_MIN); };
66  void SetPlaneToYMin() { this->SetPlane(USE_Y_MIN); };
67  void SetPlaneToZMin() { this->SetPlane(USE_Z_MIN); };
68  void SetPlaneToXMax() { this->SetPlane(USE_X_MAX); };
69  void SetPlaneToYMax() { this->SetPlane(USE_Y_MAX); };
70  void SetPlaneToZMax() { this->SetPlane(USE_Z_MAX); };
72 
74 
76  vtkSetMacro(Center, double);
77  vtkGetMacro(Center, double);
79 
81 
83  vtkSetMacro(CopyInput, int);
84  vtkGetMacro(CopyInput, int);
85  vtkBooleanMacro(CopyInput, int);
87 
88 protected:
91 
93 
95  virtual int RequestDataObject(vtkInformation*,
99 
101 
102  virtual int RequestDataInternal(vtkDataSet* input, vtkUnstructuredGrid* output,
103  double bounds[6]);
105 
107  virtual int ComputeBounds(vtkDataObject* input, double bounds[6]);
108 
111 
112  int Plane;
113  double Center;
115 
116  void FlipVector(double tuple[3], int mirrorDir[3]);
117 
118 private:
119  vtkReflectionFilter(const vtkReflectionFilter&); // Not implemented
120  void operator=(const vtkReflectionFilter&); // Not implemented
121 };
122 
123 #endif
124 
125 
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
reflects a data set across a plane
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
static vtkDataObjectAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
dataset represents arbitrary combinations of all possible cell types
#define VTKFILTERSGENERAL_EXPORT
virtual int FillInputPortInformation(int port, vtkInformation *info)
Superclass for algorithms that produce only data object as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64