VTK  9.5.20251031
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
24VTK_ABI_NAMESPACE_BEGIN
25class VTKIOIMAGE_EXPORT vtkTGAReader : public vtkImageReader2
26{
27public:
28 static vtkTGAReader* New();
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
35 int CanReadFile(VTK_FILEPATH const char* fname) override;
36
42 const char* GetFileExtensions() override { return ".tga"; }
43
47 const char* GetDescriptiveName() override { return "Targa"; }
48
49protected:
50 vtkTGAReader() = default;
51 ~vtkTGAReader() override = default;
52
53 void ExecuteInformation() override;
55
56private:
57 vtkTGAReader(const vtkTGAReader&) = delete;
58 void operator=(const vtkTGAReader&) = delete;
59};
60VTK_ABI_NAMESPACE_END
61#endif
general representation of visualization data
Superclass of binary file readers.
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
read PNG files
vtkTGAReader()=default
int CanReadFile(const char *fname) override
Is the given file a valid TGA file?
static vtkTGAReader * New()
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.
const char * GetFileExtensions() override
Get the file extensions for this format.
~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