VTK  9.4.20241218
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
23VTK_ABI_NAMESPACE_BEGIN
24class VTKIOIMAGE_EXPORT vtkTGAReader : public vtkImageReader2
25{
26public:
27 static vtkTGAReader* New();
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
48protected:
49 vtkTGAReader() = default;
50 ~vtkTGAReader() override = default;
51
52 void ExecuteInformation() override;
54
55private:
56 vtkTGAReader(const vtkTGAReader&) = delete;
57 void operator=(const vtkTGAReader&) = delete;
58};
59VTK_ABI_NAMESPACE_END
60#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
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.
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a valid TGA file?
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