VTK: IO/Image/vtkTGAReader.h Source File

| VTK 9.3.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
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
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkImageReader2
Superclass of binary file readers.
Definition: vtkImageReader2.h:57
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTGAReader
read PNG files
Definition: vtkTGAReader.h:25
vtkTGAReader::vtkTGAReader
vtkTGAReader()=default
vtkTGAReader::GetFileExtensions
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkTGAReader.h:41
vtkTGAReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTGAReader::GetDescriptiveName
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkTGAReader.h:46
vtkTGAReader::CanReadFile
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a valid TGA file?
vtkTGAReader::New
static vtkTGAReader * New()
vtkTGAReader::~vtkTGAReader
~vtkTGAReader() override=default
vtkTGAReader::ExecuteInformation
void ExecuteInformation() override
vtkTGAReader::ExecuteDataWithInformation
void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkImageReader2.h
VTK_FILEPATH
#define VTK_FILEPATH
Definition: vtkWrappingHints.h:34