VTK  9.7.1
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
18 #ifndef vtkTGAReader_h
19 #define vtkTGAReader_h
20 
21 #include "vtkIOImageModule.h" // For export macro
22 #include "vtkImageReader2.h"
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class VTKIOIMAGE_EXPORT vtkTGAReader : public vtkImageReader2
26 {
27 public:
28  static vtkTGAReader* New();
29  vtkTypeMacro(vtkTGAReader, vtkImageReader2);
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
40  int CanReadFile(VTK_FILEPATH const char* fname) override;
41  int CanReadFile(vtkResourceStream* stream) override;
43 
49  const char* GetFileExtensions() override { return ".tga"; }
50 
54  const char* GetDescriptiveName() override { return "Targa"; }
55 
56 protected:
57  vtkTGAReader() = default;
58  ~vtkTGAReader() override = default;
59 
60  void ExecuteInformation() override;
61  void ExecuteDataWithInformation(vtkDataObject* output, vtkInformation* outInfo) override;
62 
63 private:
64  vtkTGAReader(const vtkTGAReader&) = delete;
65  void operator=(const vtkTGAReader&) = delete;
66 };
67 VTK_ABI_NAMESPACE_END
68 #endif
Abstract class used for custom streams.
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
read PNG files
Definition: vtkTGAReader.h:25
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkTGAReader.h:54
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void ExecuteInformation()
Superclass of binary file readers.
#define VTK_FILEPATH
virtual int CanReadFile(const char *fname)
Return non zero if the reader can read the given file name.
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkTGAReader.h:49
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:55