VTK  9.6.20260211
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
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
33
41 int CanReadFile(VTK_FILEPATH const char* fname) override;
42 int CanReadFile(vtkResourceStream* stream) override;
44
50 const char* GetFileExtensions() override { return ".tga"; }
51
55 const char* GetDescriptiveName() override { return "Targa"; }
56
57protected:
58 vtkTGAReader() = default;
59 ~vtkTGAReader() override = default;
60
61 void ExecuteInformation() override;
63
64private:
65 vtkTGAReader(const vtkTGAReader&) = delete;
66 void operator=(const vtkTGAReader&) = delete;
67};
68VTK_ABI_NAMESPACE_END
69#endif
general representation of visualization data
vtkImageReader2()
Return a descriptive name for the file format that might be useful in a GUI.
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
Abstract class used for custom streams.
vtkTGAReader()=default
int CanReadFile(const char *fname) override
Return 1 if, after a quick check of file header, it looks like the provided file or stream can be rea...
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(vtkResourceStream *stream) override
Return 1 if, after a quick check of file header, it looks like the provided file or stream can be rea...
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