VTK  9.3.1
vtkLASReader.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
19 #ifndef vtkLASReader_h
20 #define vtkLASReader_h
21 
22 #include <vtkIOLASModule.h> // For export macro
23 
24 #include <vtkPolyDataAlgorithm.h>
25 
26 namespace liblas
27 {
28 class Header;
29 class Reader;
30 };
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 
34 class VTKIOLAS_EXPORT vtkLASReader : public vtkPolyDataAlgorithm
35 {
36 public:
37  vtkLASReader(const vtkLASReader&) = delete;
38  void operator=(const vtkLASReader&) = delete;
39  static vtkLASReader* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
46  vtkSetFilePathMacro(FileName);
47  vtkGetFilePathMacro(FileName);
48 
49 protected:
50  vtkLASReader();
51  ~vtkLASReader() override;
52 
56  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
57  vtkInformationVector* outputVector) override;
58 
62  void ReadPointRecordData(liblas::Reader& reader, vtkPolyData* pointsPolyData);
63 
64  char* FileName;
65 };
66 
67 VTK_ABI_NAMESPACE_END
68 #endif // vtkLASReader_h
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
char * FileName
Definition: vtkLASReader.h:64
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.