VTK  9.5.2
vtkOCCTReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2019-2021 Kitware SAS
3// SPDX-FileCopyrightText: Copyright 2021-2022 Michael Migliore, Mathieu Westphal
4// SPDX-License-Identifier: BSD-3-Clause
20
21#ifndef vtkOCCTReader_h
22#define vtkOCCTReader_h
23
25
26#include "vtkIOOCCTModule.h" // For export macro
27
28#include <memory> // For std::unique_ptr
29
30VTK_ABI_NAMESPACE_BEGIN
31
33
34class VTKIOOCCT_EXPORT vtkOCCTReader : public vtkMultiBlockDataSetAlgorithm
35{
36public:
37 static vtkOCCTReader* New();
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
41 enum Format : unsigned int
42 {
45 };
46
48
53 vtkSetClampMacro(FileFormat, unsigned int, Format::STEP, Format::IGES);
55
57
62 vtkGetMacro(LinearDeflection, double);
63 vtkSetMacro(LinearDeflection, double);
65
67
72 vtkGetMacro(AngularDeflection, double);
73 vtkSetMacro(AngularDeflection, double);
75
77
82 vtkGetMacro(RelativeDeflection, bool);
83 vtkSetMacro(RelativeDeflection, bool);
84 vtkBooleanMacro(RelativeDeflection, bool);
86
88
92 vtkGetMacro(ReadWire, bool);
93 vtkSetMacro(ReadWire, bool);
94 vtkBooleanMacro(ReadWire, bool);
96
98
104
105protected:
107 ~vtkOCCTReader() override;
108
110
111private:
112 vtkOCCTReader(const vtkOCCTReader&) = delete;
113 void operator=(const vtkOCCTReader&) = delete;
114
115 class vtkInternals;
116 std::unique_ptr<vtkInternals> Internals;
117
118 double LinearDeflection = 0.1;
119 double AngularDeflection = 0.5;
120 bool RelativeDeflection = false;
121 bool ReadWire = false;
122 unsigned int FileFormat = Format::STEP;
123 char* FileName = nullptr;
124};
125
126VTK_ABI_NAMESPACE_END
127#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
vtkGetFilePathMacro(FileName)
Get/Set the file name.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
Get/Set the file name.
static vtkOCCTReader * New()
~vtkOCCTReader() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.