VTK  9.3.1
vtkHyperTreeGridAxisReflection.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
23 #ifndef vtkHyperTreeGridAxisReflection_h
24 #define vtkHyperTreeGridAxisReflection_h
25 
26 #include "vtkFiltersHyperTreeModule.h" // For export macro
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkHyperTreeGrid;
31 
32 class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridAxisReflection : public vtkHyperTreeGridAlgorithm
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
43  {
44  USE_X_MIN = 0,
45  USE_Y_MIN = 1,
46  USE_Z_MIN = 2,
47  USE_X_MAX = 3,
48  USE_Y_MAX = 4,
49  USE_Z_MAX = 5,
50  USE_X = 6,
51  USE_Y = 7,
52  USE_Z = 8
53  };
54 
56 
59  vtkSetClampMacro(Plane, int, 0, 8);
60  vtkGetMacro(Plane, int);
61  void SetPlaneToX() { this->SetPlane(USE_X); }
62  void SetPlaneToY() { this->SetPlane(USE_Y); }
63  void SetPlaneToZ() { this->SetPlane(USE_Z); }
64  void SetPlaneToXMin() { this->SetPlane(USE_X_MIN); }
65  void SetPlaneToYMin() { this->SetPlane(USE_Y_MIN); }
66  void SetPlaneToZMin() { this->SetPlane(USE_Z_MIN); }
67  void SetPlaneToXMax() { this->SetPlane(USE_X_MAX); }
68  void SetPlaneToYMax() { this->SetPlane(USE_Y_MAX); }
69  void SetPlaneToZMax() { this->SetPlane(USE_Z_MAX); }
71 
73 
77  vtkSetMacro(Center, double);
78  vtkGetMacro(Center, double);
80 
81 protected:
84 
88  int FillOutputPortInformation(int, vtkInformation*) override;
89 
94 
98  int Plane;
99 
104  double Center;
105 
106 private:
108  void operator=(const vtkHyperTreeGridAxisReflection&) = delete;
109 };
110 
111 VTK_ABI_NAMESPACE_END
112 #endif /* vtkHyperTreeGridAxisReflection */
void SetPlaneToZMin()
Set the normal of the plane to use as mirror.
void SetPlaneToYMin()
Set the normal of the plane to use as mirror.
int FillOutputPortInformation(int, vtkInformation *) override
Define default input and output port types.
Store vtkAlgorithm input/output information.
AxisReflectionPlane
Specify unique identifiers of available reflection planes.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
void SetPlaneToXMin()
Set the normal of the plane to use as mirror.
a simple class to control print indentation
Definition: vtkIndent.h:28
void SetPlaneToXMax()
Set the normal of the plane to use as mirror.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double Center
Position of the plane relative to given axis Only used if the reflection plane is X...
void SetPlaneToZ()
Set the normal of the plane to use as mirror.
void SetPlaneToX()
Set the normal of the plane to use as mirror.
Superclass for algorithms that produce a hyper tree grid as output.
void SetPlaneToYMax()
Set the normal of the plane to use as mirror.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:54
int Plane
Required type of plane reflection.
void SetPlaneToY()
Set the normal of the plane to use as mirror.
void SetPlaneToZMax()
Set the normal of the plane to use as mirror.
virtual int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *)=0
Main routine to process individual trees in the grid This is pure virtual method to be implemented by...