VTK  9.3.20240424
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
29VTK_ABI_NAMESPACE_BEGIN
31
32class VTKFILTERSHYPERTREE_EXPORT vtkHyperTreeGridAxisReflection : public vtkHyperTreeGridAlgorithm
33{
34public:
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
81protected:
84
89
94
98 int Plane;
99
104 double Center;
105
106private:
108 void operator=(const vtkHyperTreeGridAxisReflection&) = delete;
109};
110
111VTK_ABI_NAMESPACE_END
112#endif /* vtkHyperTreeGridAxisReflection */
general representation of visualization data
Superclass for algorithms that produce a hyper tree grid as output.
static vtkHyperTreeGridAxisReflection * New()
void SetPlaneToY()
Set the normal of the plane to use as mirror.
double Center
Position of the plane relative to given axis Only used if the reflection plane is X,...
int FillOutputPortInformation(int, vtkInformation *) override
For this algorithm the output is a vtkHyperTreeGrid instance.
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to extract cells based on reflectioned value.
void SetPlaneToZMax()
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.
void SetPlaneToYMin()
Set the normal of the plane to use as mirror.
void SetPlaneToX()
Set the normal of the plane to use as mirror.
void SetPlaneToXMax()
Set the normal of the plane to use as mirror.
void SetPlaneToXMin()
Set the normal of the plane to use as mirror.
~vtkHyperTreeGridAxisReflection() override
void SetPlaneToZMin()
Set the normal of the plane to use as mirror.
void SetPlaneToYMax()
Set the normal of the plane to use as mirror.
int Plane
Required type of plane reflection.
void SetPlaneToZ()
Set the normal of the plane to use as mirror.
AxisReflectionPlane
Specify unique identifiers of available reflection planes.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.