VTK  9.3.0
vtkTGAReader.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
17 #ifndef vtkTGAReader_h
18 #define vtkTGAReader_h
19 
20 #include "vtkIOImageModule.h" // For export macro
21 #include "vtkImageReader2.h"
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKIOIMAGE_EXPORT vtkTGAReader : public vtkImageReader2
25 {
26 public:
27  static vtkTGAReader* New();
28  vtkTypeMacro(vtkTGAReader, vtkImageReader2);
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
34  int CanReadFile(VTK_FILEPATH const char* fname) override;
35 
41  const char* GetFileExtensions() override { return ".tga"; }
42 
46  const char* GetDescriptiveName() override { return "Targa"; }
47 
48 protected:
49  vtkTGAReader() = default;
50  ~vtkTGAReader() override = default;
51 
52  void ExecuteInformation() override;
53  void ExecuteDataWithInformation(vtkDataObject* output, vtkInformation* outInfo) override;
54 
55 private:
56  vtkTGAReader(const vtkTGAReader&) = delete;
57  void operator=(const vtkTGAReader&) = delete;
58 };
59 VTK_ABI_NAMESPACE_END
60 #endif
general representation of visualization data
Definition: vtkDataObject.h:55
Superclass of binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:29
Store vtkAlgorithm input/output information.
read PNG files
Definition: vtkTGAReader.h:25
vtkTGAReader()=default
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkTGAReader.h:41
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkTGAReader.h:46
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a valid TGA file?
static vtkTGAReader * New()
~vtkTGAReader() override=default
void ExecuteInformation() override
void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
#define VTK_FILEPATH