ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vtkBoundedPlaneSource.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "qPCL.h" // needed for export macro
11 #include "vtkPolyDataAlgorithm.h"
12 class QPCL_ENGINE_LIB_API vtkBoundedPlaneSource : public vtkPolyDataAlgorithm {
13 public:
14  static vtkBoundedPlaneSource* New();
15  vtkTypeMacro(vtkBoundedPlaneSource, vtkPolyDataAlgorithm);
16  void PrintSelf(ostream& os, vtkIndent indent) override;
17 
19 
23  vtkSetVector3Macro(Center, double);
24  vtkGetVector3Macro(Center, double);
26 
28 
31  vtkSetVector3Macro(Normal, double);
32  vtkGetVector3Macro(Normal, double);
34 
36 
39  vtkSetVector6Macro(BoundingBox, double);
40  vtkGetVector6Macro(BoundingBox, double);
42 
43  enum RefinementModes { USE_RESOLUTION, USE_CELL_SIZE };
44 
48  vtkSetClampMacro(RefinementMode, int, USE_RESOLUTION, USE_CELL_SIZE);
49  vtkGetMacro(RefinementMode, int);
50 
52 
56  vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
57  vtkGetMacro(Resolution, int);
59 
61 
65  vtkSetMacro(CellSize, double);
66  vtkGetMacro(CellSize, double);
68 
70 
75  vtkSetClampMacro(Padding, double, 0, VTK_DOUBLE_MAX);
76  vtkGetMacro(Padding, double);
78 
79 protected:
81  ~vtkBoundedPlaneSource() override;
82 
83  int RequestData(vtkInformation*,
84  vtkInformationVector**,
85  vtkInformationVector*) override;
86 
87  double Center[3];
88  double Normal[3];
89  double BoundingBox[6];
92  double CellSize;
93  double Padding;
94 
95 private:
97  void operator=(const vtkBoundedPlaneSource&) = delete;
98 };
vtkBoundedPlaneSource::Padding
double Padding
Definition: vtkBoundedPlaneSource.h:93
QtCompat::endl
QTextStream & endl(QTextStream &stream)
Definition: QtCompat.h:718
vtkBoundedVolumeSource.h
vtkBoundedPlaneSource::CellSize
double CellSize
Definition: vtkBoundedPlaneSource.h:92
vtkBoundedPlaneSource
Definition: vtkBoundedPlaneSource.h:12
vtkBoundedPlaneSource::BoundingBox
double BoundingBox[6]
Definition: vtkBoundedPlaneSource.h:89
qPCL.h
vtkBoundedPlaneSource::~vtkBoundedPlaneSource
~vtkBoundedPlaneSource() override
Definition: vtkBoundedPlaneSource.cpp:36
vtkStandardNewMacro
vtkStandardNewMacro(vtkBoundedPlaneSource)
vtkBoundedPlaneSource::RefinementMode
int RefinementMode
Definition: vtkBoundedPlaneSource.h:90
vtkBoundedPlaneSource::Center
double Center[3]
Definition: vtkBoundedPlaneSource.h:87
vtkBoundedPlaneSource::Resolution
int Resolution
Definition: vtkBoundedPlaneSource.h:91
vtkBoundedPlaneSource::USE_RESOLUTION
@ USE_RESOLUTION
Definition: vtkBoundedPlaneSource.h:43
vtkBoundedPlaneSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Definition: vtkBoundedPlaneSource.cpp:88
image
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:184
vtkBoundedPlaneSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Definition: vtkBoundedPlaneSource.cpp:39
QPCL_ENGINE_LIB_API
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
vtkBoundedPlaneSource::RefinementModes
RefinementModes
Definition: vtkBoundedPlaneSource.h:43
CellSize
vtkIdType CellSize
Definition: VtkUtils.cpp:217
vtkBoundedVolumeSource::SetImageParameters
static bool SetImageParameters(vtkImageData *image, const vtkBoundingBox &bbox, const vtkVector3i &resolution)
Definition: vtkBoundedVolumeSource.cpp:97
vtkBoundedPlaneSource::Normal
double Normal[3]
Definition: vtkBoundedPlaneSource.h:88
vtkBoundedPlaneSource.h
cloudViewer::BoundingBox
BoundingBoxTpl< PointCoordinateType > BoundingBox
Default bounding-box type.
Definition: BoundingBox.h:304
vtkBoundedPlaneSource::vtkBoundedPlaneSource
vtkBoundedPlaneSource()
Definition: vtkBoundedPlaneSource.cpp:22